GET /v1/models
List callable models, their capability tags and the endpoints each model offers; filter by capability or endpoint, or look up one model by ID.
Request
curl https://api.unioapi.com/v1/models \
-H "Authorization: Bearer $UNIO_API_KEY"Response (excerpt)
{
"object": "list",
"data": [
{
"id": "gpt-5.6-sol",
"object": "model",
"type": "model",
"owned_by": "openai",
"display_name": "GPT-5.6 Sol",
"created_at": "2026-11-01T00:00:00Z",
"capabilities": ["file.input", "image.input", "prompt_cache", "reasoning.effort", "service_tier", "stream", "text.input", "text.output", "tools.function"],
"protocols": ["openai"],
"endpoint_capabilities": ["openai.chat_completions", "openai.responses"],
"endpoints": ["openai.chat_completions", "openai.responses"],
"operations": ["openai.chat_completions", "openai.responses", "openai.responses.compact"],
"context_window": 1050000
},
{
"id": "claude-sonnet-5",
"object": "model",
"type": "model",
"owned_by": "anthropic",
"display_name": "Claude Sonnet 5",
"created_at": "2026-06-30T00:00:00Z",
"capabilities": ["file.input", "image.input", "prompt_cache", "stream", "text.input", "text.output", "tools.function"],
"protocols": ["anthropic"],
"endpoint_capabilities": ["anthropic.messages"],
"endpoints": ["anthropic.messages"],
"operations": ["anthropic.messages", "anthropic.messages.count_tokens"],
"context_window": 1000000
}
]
}Field semantics
- List scope: the models you can call right now, not filtered by the protocol of this request.
id: the model identifier to send, identical to the vendor's official model ID (the undated main model ID).owned_by: the vendor,openaioranthropic.created_at: the official release date; when the vendor has not published one, the date the model became available.endpoint_capabilities: the endpoints the model offers.endpointsis the same set in short form;operationsalso lists each endpoint's auxiliary operations (such asopenai.responses.compactandanthropic.messages.count_tokens).protocols: a compatibility field derived fromendpoint_capabilities(openai/anthropic); useendpoint_capabilitiesto decide whether a call will work.capabilities: capability tags such astext.input,image.input,file.input,tools.function,reasoning.effort,response_format.json_schema,prompt_cache,service_tierandstream, in alphabetical order.context_window: the context window in tokens, omitted when unknown.- Being listed does not guarantee capacity at this instant; if a call returns OpenAI-shape 503
server_is_overloadedor Anthropic-shape 529overloaded_error, retry later — see Errors.
Prices, service tiers and long-context rules are not part of this endpoint — see Models & Pricing and Billing & Usage.
Filtering
?capability= AND-filters on capability tags; repeat it or separate values with commas:
curl "https://api.unioapi.com/v1/models?capability=tools.function&capability=image.input" \
-H "Authorization: Bearer $UNIO_API_KEY"?endpoint= keeps only models that offer that endpoint:
curl "https://api.unioapi.com/v1/models?endpoint=openai.responses" \
-H "Authorization: Bearer $UNIO_API_KEY"GET /v1/models/{model}
Returns a single model object with the same fields as a list element. An unknown model returns 404
invalid_request_error with code model_not_found.
curl https://api.unioapi.com/v1/models/gpt-5.6-sol \
-H "Authorization: Bearer $UNIO_API_KEY"Billing note
This endpoint is free and creates no request record, but it shares request admission with other
/v1 endpoints — aggressive polling may get 429.
POST /v1/messages
Anthropic-compatible message generation, non-streaming and named SSE; speed, inference_geo and anthropic-beta work as officially documented.
Errors
HTTP status, type and code per protocol — the OpenAI shape (Chat Completions, Responses, /v1/models) and the Anthropic shape (Messages) — plus error events during streaming.