Skip to content
Sign in Create account

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

  • data array of object required

    Each item:

    • capabilities array of string
    • context_window integer or null
    • created integer required
    • id string required
    • object string required
      Value: "model"
    • owned_by string required
    • provider string required
    • provider_name string or null required
    • trial_locked boolean required
  • object string required
    Value: "list"
  • trial object required
    • is_trial boolean required
    • enforced boolean required
    • allowed_models object required

      Other keys: array of string

    • minimum_top_up_cents integer 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

  • error any

    One of

    • string
    • object

      Any keys are accepted.

  • error_code string
  • code string
  • message string
  • detail string
  • status any

    One of

    • string
    • integer
  • errors object

    Any 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

  • error any

    One of

    • string
    • object

      Any keys are accepted.

  • error_code string
  • code string
  • message string
  • detail string
  • status any

    One of

    • string
    • integer
  • errors object

    Any 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

  • error object required
    • code string required
      One of: "idempotency_key_conflict", "idempotency_request_in_progress", "idempotency_response_not_retained"
    • message string required
    • type string required
      Value: "idempotency_error"
410 The requested model is no longer available or is not a valid model ID for the selected provider.

application/json object

  • error object required
    • code string required
      One of: "model_retired", "model_unavailable"
    • message string required
    • param string required
      Value: "model"
    • type string required
      Value: "invalid_request_error"
    • suggested_model SuggestedModelId
413 Error response.

application/json GenericError

  • error any

    One of

    • string
    • object

      Any keys are accepted.

  • error_code string
  • code string
  • message string
  • detail string
  • status any

    One of

    • string
    • integer
  • errors object

    Any keys are accepted.

415 Error response.

application/json GenericError

  • error any

    One of

    • string
    • object

      Any keys are accepted.

  • error_code string
  • code string
  • message string
  • detail string
  • status any

    One of

    • string
    • integer
  • errors object

    Any keys are accepted.

422 Error response.

application/json GenericError

  • error any

    One of

    • string
    • object

      Any keys are accepted.

  • error_code string
  • code string
  • message string
  • detail string
  • status any

    One of

    • string
    • integer
  • errors object

    Any keys are accepted.

429 Error response.

application/json GenericError

  • error any

    One of

    • string
    • object

      Any keys are accepted.

  • error_code string
  • code string
  • message string
  • detail string
  • status any

    One of

    • string
    • integer
  • errors object

    Any keys are accepted.

text/html string

503 Error response.

application/json GenericError

  • error any

    One of

    • string
    • object

      Any keys are accepted.

  • error_code string
  • code string
  • message string
  • detail string
  • status any

    One of

    • string
    • integer
  • errors object

    Any keys are accepted.