GET /v1/models
Changed onList available models. The default response is intentionally minimal for OpenAI compatibility; use detailed=true for capabilities, supported service tiers, and pricing.
Request
- Base URLhttps://nano-gpt.com/api
- URLhttps://nano-gpt.com/api/v1/models
- Auth
- HTTP bearer
- or API key in header x-api-key
Query parameters
Returns detailed model information including capabilities, supported_service_tiers, and pricing. Inspect supported_service_tiers to discover whether a model accepts flex, fast, or the legacy priority alias; an empty array means only the default tier is available.
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.
Decision models are left out of this list by default because they reject plain chat requests. decisions lists only decision models; text,decisions lists chat models and decision models together.
Response
List of available models
Example response
{
"data": [
{
"id": "openai/gpt-6.1-sol",
"object": "model",
"created": 1790640000,
"owned_by": "openai",
"name": "GPT 6.1 Sol",
"description": "GPT-6.1 Sol supports complex coding and professional work with text and image input.",
"context_length": 1050000,
"max_output_tokens": 128000,
"pricing": {
"prompt": 2,
"completion": 10,
"currency": "USD",
"unit": "per_million_tokens"
}
}
]
}Changes
- breaking
the response property
//became nullable for the status - info
added the new optional
queryrequest parameteroutput_modalities - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status
- breaking