Model list
MarkdownA catalog of models available to your key, with supported formats and prices.
Full guide
https://api.ailoot.ai/v1/modelscurl -s https://api.ailoot.ai/v1/models \
-H "Authorization: Bearer $AILOOT_API_KEY" | jq '.data[] | {id, formats: [.methods[].path]}'for m in client.models.list():
print(m.id){
"object": "list",
"data": [
{
"id": "claude-sonnet-5-5",
"type": "model",
"display_name": "claude-sonnet-5-5",
"methods": [
{
"endpoint": "messages",
"http_method": "POST",
"path": "/v1/messages",
"price_unit": "token",
"pricing": {
"currency": "USD",
"input_usd_per_token": 0.000002,
"output_usd_per_token": 0.00001,
"max_input_tokens": 1000000,
"max_output_tokens": 128000
}
}
]
}
]
}Authentication
- Authorizationheaderrequired
The key in the format
Bearer sk-…. The following headers also work:x-api-keyorx-goog-api-key.
Viewing the catalog does not incur a charge and is available with a zero balance as long as your key is valid; key restrictions still apply. Generation cannot start with a zero balance: you need enough funds for the reserve. For each model, the array methods describes the supported paths and prices.
Model fields
- idstring
Identifier for the field
modelin requests. - methods[].pathstring
Format path:
/v1/chat/completions,/v1/responses,/v1/messagesand so on. - methods[].pricingobject
Price in dollars per token (
input_usd_per_token,output_usd_per_token, cache) or per unit (unit_prices), plus context and response limits. - alias_ofstring
For an alias, the model it currently points to.
Other formats
The Anthropic SDK and Claude Code read the same GET /v1/models. Gemini clients can use GET /v1beta/models. Codex CLI automatically receives the list in its own format.