List available models across all providers
GET /api/v1/models
Returns an OpenAI-style model list for active providers whose models pass the gateway's canonical-ID and routability checks. Each listed model may include provider, context-window, and capability metadata; the endpoint uses API-key gateway middleware.
Authenticate with an API key.
Responses
200 Active, routable canonical models in the OpenAI list shape; cached for up to 30 minutes.
application/json object
dataarray of object requiredEach item:
capabilitiesarray of stringcontext_windowinteger or nullcreatedinteger requiredidstring requiredobjectstring requiredValue:"model"owned_bystring requiredproviderstring requiredprovider_namestring or null requiredtrial_lockedboolean required
objectstring requiredValue:"list"trialobject requiredis_trialboolean requiredenforcedboolean requiredallowed_modelsobject requiredOther keys: array of string
minimum_top_up_centsinteger or null required
Generated sample
{
"data": [
{
"capabilities": [
"string"
],
"context_window": 0,
"created": 0,
"id": "string",
"object": "model",
"owned_by": "string",
"provider": "string",
"provider_name": "string",
"trial_locked": true
}
],
"object": "list",
"trial": {
"is_trial": true,
"enforced": true,
"allowed_models": {},
"minimum_top_up_cents": 0
}
}400 Error response.
application/json GenericError
erroranyOne of
- string
- object
Any keys are accepted.
error_codestringcodestringmessagestringdetailstringstatusanyOne of
- string
- integer
errorsobjectAny keys are accepted.
401 Missing, invalid, expired, or account-bound API key.
application/json object
Any keys are accepted.
402 Error response.
application/json GenericError
erroranyOne of
- string
- object
Any keys are accepted.
error_codestringcodestringmessagestringdetailstringstatusanyOne of
- string
- integer
errorsobjectAny keys are accepted.
403 The API key does not allow requests from this source IP address.
application/json object
Any keys are accepted.
409 The Idempotency-Key cannot be used for this request because it conflicts with another request (idempotency_key_conflict), is still in progress (idempotency_request_in_progress), or its response was not retained (idempotency_response_not_retained).
application/json IdempotencyError
errorobject requiredcodestring requiredOne of:"idempotency_key_conflict","idempotency_request_in_progress","idempotency_response_not_retained"messagestring requiredtypestring requiredValue:"idempotency_error"
410 The requested model is no longer available or is not a valid model ID for the selected provider.
application/json object
errorobject requiredcodestring requiredOne of:"model_retired","model_unavailable"messagestring requiredparamstring requiredValue:"model"typestring requiredValue:"invalid_request_error"suggested_modelSuggestedModelId
413 Error response.
application/json GenericError
erroranyOne of
- string
- object
Any keys are accepted.
error_codestringcodestringmessagestringdetailstringstatusanyOne of
- string
- integer
errorsobjectAny keys are accepted.
415 Error response.
application/json GenericError
erroranyOne of
- string
- object
Any keys are accepted.
error_codestringcodestringmessagestringdetailstringstatusanyOne of
- string
- integer
errorsobjectAny keys are accepted.
422 Error response.
application/json GenericError
erroranyOne of
- string
- object
Any keys are accepted.
error_codestringcodestringmessagestringdetailstringstatusanyOne of
- string
- integer
errorsobjectAny keys are accepted.
429 Error response.
application/json GenericError
erroranyOne of
- string
- object
Any keys are accepted.
error_codestringcodestringmessagestringdetailstringstatusanyOne of
- string
- integer
errorsobjectAny keys are accepted.
text/html string
503 Error response.
application/json GenericError
erroranyOne of
- string
- object
Any keys are accepted.
error_codestringcodestringmessagestringdetailstringstatusanyOne of
- string
- integer
errorsobjectAny keys are accepted.