List models
Reads the OpenAI-compatible model list.
GET /v1/models
Used to discover available models during SDK migration. Query parameters can filter by modality, capability, or provider.
Back to Models and Providers endpoint listRequest parameters
| Field | Type | Required | Description |
|---|---|---|---|
modality | query | No | Filter by modality. |
capability | query | No | Filter by capability. |
provider | query | No | Filter by provider ID. |
exclude_mock | query | No | Whether to exclude mock or diagnostic models; defaults to true. |
available_only | query | No | Only return models available to the current tenant. |
Request examples
curl "https://api.globalrouter.com/v1/models?modality=chat&capability=streaming&provider=qwen&exclude_mock=true&available_only=true" \ -H "Authorization: Bearer $GR_API_KEY"
Response fields
| Field | Type | Required | Description |
|---|---|---|---|
object | string | No | OpenAI-style object type. |
data | array | Yes | Model list. |
data[] | object | Yes | Single model entry. |
data[].id | string | Yes | GlobalRouter model ID. |
data[].object | string | Yes | Always model. |
data[].vendor_id | string | Yes | Vendor ID. |
data[].vendor_name | string | Yes | Vendor name. |
data[].vendor | object | Yes | Vendor summary, including id and name. |
data[].vendor.id | string | Yes | Vendor ID. |
data[].vendor.name | string | Yes | Vendor name. |
data[].providers | array | Yes | Providers supporting this model. |
data[].providers[] | object | Yes | Single provider summary. |
data[].providers[].id | string | Yes | Provider ID。 |
data[].providers[].name | string | Yes | Provider name. |
data[].providers[].status | string | Yes | Provider status. |
data[].providers[].description | string | No | Provider description. |
data[].display_name | string | Yes | Model display name. |
data[].category | string | Yes | Model category. |
data[].subtype | string | No | Model subtype. |
data[].modality | string | Yes | Primary modality. |
data[].capabilities | array | Yes | Capability tags. |
data[].capabilities[] | string | Yes | Single capability tag. |
data[].tags | array | Yes | Model tags. |
data[].tags[] | string | Yes | Single model tag. |
data[].input_modalities | array | Yes | Supported input modalities. |
data[].input_modalities[] | string | Yes | Single input modality. |
data[].output_modalities | array | Yes | Supported output modalities. |
data[].output_modalities[] | string | Yes | Single output modality. |
data[].supported_parameters | array | Yes | Request parameters supported by the model. |
data[].supported_parameters[] | string | Yes | Single supported parameter. |
data[].execution_mode | string | Yes | Execution mode. |
data[].billing_unit | string | Yes | Billing unit. |
data[].context_window | integer | No | Context length. |
data[].input_price_per_1m | number | Yes | Price per million input tokens or per unit. |
data[].output_price_per_1m | number | Yes | Price per million output tokens or per unit. |
data[].default_timeout_seconds | integer | No | Default timeout. |
data[].provider_status | string | No | Default provider status. |
data[].provider_configured | boolean | Yes | Whether the provider is currently configured. |
data[].routable | boolean | Yes | Whether the model is currently routable. |
data[].provider_kind | string | Yes | Provider type, such as real or mock. |
data[].mock_provider | boolean | Yes | Whether this is a mock provider. |
data[].dev_only | boolean | Yes | Whether this is for development only. |
data[].diagnostic_only | boolean | Yes | Whether this is for diagnostics only. |
Response example
{
"object": "list",
"data": [
{
"id": "qwen3-32b",
"object": "model",
"vendor_id": "qwen",
"vendor_name": "Qwen",
"vendor": { "id": "qwen", "name": "Qwen" },
"providers": [
{ "id": "qwen", "name": "Qwen", "status": "healthy", "description": "Qwen model provider" }
],
"display_name": "Qwen3 32B",
"category": "chat",
"subtype": "chat-completions",
"modality": "chat",
"capabilities": ["streaming", "tool-call"],
"tags": ["chat", "streaming", "tool-call"],
"input_modalities": ["text"],
"output_modalities": ["text"],
"supported_parameters": ["temperature", "top_p", "max_tokens"],
"execution_mode": "sync",
"billing_unit": "token",
"context_window": 131072,
"input_price_per_1m": 0.4,
"output_price_per_1m": 1.2,
"default_timeout_seconds": 60,
"provider_status": "healthy",
"provider_configured": true,
"routable": true,
"provider_kind": "real",
"mock_provider": false,
"dev_only": false,
"diagnostic_only": false
}
]
}Errors
| HTTP | Code | Description |
|---|---|---|
| 401 | UNAUTHORIZED | Missing or invalid Authorization Bearer token. |
| 403 | FORBIDDEN | The current API key is not allowed to call this scope or model. |
| 429 | RATE_LIMITED | Requests are too frequent or the asynchronous task queue is full; reduce concurrency or retry later. |