Skip to content

Models

The model ID is one of the most important parameters when calling RouteAPI. The model in the request must be a model currently available to the account.

GET /v1/models

Example:

Terminal window
curl https://www.routeapi.ai/v1/models \
-H "Authorization: Bearer $ROUTEAPI_KEY"

Use the model ID when calling APIs, not the display name in the console.

{
"model": "gpt-4o"
}

If RouteAPI has model mapping configured, use the ID returned by the console or the model list API.

FieldDescription
idModel ID used for calls
nameDisplay name
context_lengthMaximum context length
input_priceInput price
output_priceOutput price
supports_streamWhether streaming output is supported
supports_toolsWhether tool calling is supported
supports_visionWhether image input is supported
supports_json_schemaWhether structured output is supported

When a request returns model unavailable, permission denied, or a service-side error, check in this order:

  1. Whether the model ID is spelled correctly.
  2. Whether the request parameters include optional parameters unsupported by the current model.
  • Fix model IDs in production applications and do not rely on display names.
  • Prepare alternative model options for key business flows.
  • Confirm model capabilities in advance for scenarios requiring tool calling or structured output.
  • Before launch, use the same Token to call the model list and make one real request.