GRGlobalRouter Docs
Console

Models and Providers / GET

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 list

Request parameters

FieldTypeRequiredDescription
modalityqueryNoFilter by modality.
capabilityqueryNoFilter by capability.
providerqueryNoFilter by provider ID.
exclude_mockqueryNoWhether to exclude mock or diagnostic models; defaults to true.
available_onlyqueryNoOnly return models available to the current tenant.

Request examples

List models 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

FieldTypeRequiredDescription
objectstringNoOpenAI-style object type.
dataarrayYesModel list.
data[]objectYesSingle model entry.
data[].idstringYesGlobalRouter model ID.
data[].objectstringYesAlways model.
data[].vendor_idstringYesVendor ID.
data[].vendor_namestringYesVendor name.
data[].vendorobjectYesVendor summary, including id and name.
data[].vendor.idstringYesVendor ID.
data[].vendor.namestringYesVendor name.
data[].providersarrayYesProviders supporting this model.
data[].providers[]objectYesSingle provider summary.
data[].providers[].idstringYesProvider ID。
data[].providers[].namestringYesProvider name.
data[].providers[].statusstringYesProvider status.
data[].providers[].descriptionstringNoProvider description.
data[].display_namestringYesModel display name.
data[].categorystringYesModel category.
data[].subtypestringNoModel subtype.
data[].modalitystringYesPrimary modality.
data[].capabilitiesarrayYesCapability tags.
data[].capabilities[]stringYesSingle capability tag.
data[].tagsarrayYesModel tags.
data[].tags[]stringYesSingle model tag.
data[].input_modalitiesarrayYesSupported input modalities.
data[].input_modalities[]stringYesSingle input modality.
data[].output_modalitiesarrayYesSupported output modalities.
data[].output_modalities[]stringYesSingle output modality.
data[].supported_parametersarrayYesRequest parameters supported by the model.
data[].supported_parameters[]stringYesSingle supported parameter.
data[].execution_modestringYesExecution mode.
data[].billing_unitstringYesBilling unit.
data[].context_windowintegerNoContext length.
data[].input_price_per_1mnumberYesPrice per million input tokens or per unit.
data[].output_price_per_1mnumberYesPrice per million output tokens or per unit.
data[].default_timeout_secondsintegerNoDefault timeout.
data[].provider_statusstringNoDefault provider status.
data[].provider_configuredbooleanYesWhether the provider is currently configured.
data[].routablebooleanYesWhether the model is currently routable.
data[].provider_kindstringYesProvider type, such as real or mock.
data[].mock_providerbooleanYesWhether this is a mock provider.
data[].dev_onlybooleanYesWhether this is for development only.
data[].diagnostic_onlybooleanYesWhether this is for diagnostics only.

Response example

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

HTTPCodeDescription
401UNAUTHORIZEDMissing or invalid Authorization Bearer token.
403FORBIDDENThe current API key is not allowed to call this scope or model.
429RATE_LIMITEDRequests are too frequent or the asynchronous task queue is full; reduce concurrency or retry later.