v1
latestOpenAPI 3.1.0MIT2026-07-262861121.0 KBList available models with optional detailed information including pricing
get/v1/models
Query parameters
detailedboolean
Returns detailed model information including pricing
sort'favorites' | 'mostused'
Example:favorites
Reorders the returned model list without adding or hiding models. favorites orders by the authenticated account's recent model usage and requires a valid API key; without one it falls back to normal ordering. mostused orders by global completed model usage and does not require authentication. Unused or unranked models remain after ranked models in normal catalog order. Invalid values are ignored.
Response
List of available models
Example response
{
"data": [
{
"id": "openai/gpt-5.2",
"owned_by": "openai",
"name": "GPT-4o Mini",
"description": "OpenAI's affordable and intelligent small model for fast, lightweight tasks",
"context_length": 128000,
"pricing": {
"prompt": 0.00015,
"completion": 0.0006
},
"distillationPolicy": {
"status": "allowed",
"label": "License permits distillation",
"basis": "permissive-open-weights",
"sourceUrl": "https://example.com/license-or-terms",
"note": "Short explanation of the policy signal."
}
}
]
}