Models
Moth DocsReference
/modelsLists every chat, image, video and music model with its price, its limits and what it can do.
curl https://api.runmoth.ai/v1/models
{
"object": "list",
"data": [
{
"object": "model",
"created": 1790812800,
"owned_by": "gemini",
"id": "gemini-3.8-flash",
"type": "model",
"family": "gemini",
"modality": "chat",
"context_length": 1048576,
"privacy": "anonymized",
"status": "available",
"pricing": {
"input_usd_per_mtok": "0.375000",
"output_usd_per_mtok": "1.875000"
},
"capabilities": {
"tools": true,
"forced_tool_choice": true,
"sampling_params": true,
"web_search": false
},
"list_price": {
"input_usd_per_mtok": "0.750000",
"output_usd_per_mtok": "3.750000",
"source": "https://ai.google.dev/gemini-api/docs/pricing",
"checked": "2026-10-17",
"saving_pct": {
"input": 50,
"output": 50
}
}
}
]
}The list is public, so it needs no key, and a key sent with it must be valid. GET /models/{id} returns one entry in the same shape.
A chat model
idstringThe model ID you send as model.
modalitystringchat, image, video or music.
context_lengthintegerThe longest conversation the model takes, in tokens.
privacystringanonymized for every model in this list, since Sealed models are listed apart, as Anonymized and Sealed explains.
statusstringavailable, paused while its price can't be held, or busy while it rests after failing at its host.
pricingobjectMoth's price in dollars per million input and output tokens.
capabilitiesobjectWhether it takes tools, a forced tool choice, sampling settings and web search.
min_output_tokensintegerOn a model that reasons before it replies, the output tokens a call holds and may bill even when max_tokens is smaller, because its reasoning counts as output. The reply you see still stops at max_tokens, and a call's hold is its input plus the larger of the two. It is left out on models that don't reason first.
list_priceobjectThe maker's own price, the page it was read from, the date it was read and the saving in percent, rounded down, which is negative for a model that sells above its list price. It is left out when no maker price has been verified.
A media model
A media model's pricing has a unit of image, second or song and a unit_usd, its limits list max_images, durations, aspect_ratios and max_prompt_chars where they apply, and its list_price, when there is one, has a unit_usd and a single saving_pct.
Errors
401authentication_errorA key was sent and isn't valid, so send none to read the public list404not_found_error/models/{id} names no model429rate_limit_errorToo many reads from the key, so wait for retry-after