GRGlobalRouter Docs
Console

Models and Providers / GET

Count models

Count OpenRouter models matching the filters.

endpoint list

Mobile view shows the endpoint list. Use desktop view for parameters and examples.

MethodEndpointDescription
GET/api/v1/modelsRead the synchronized OpenRouter model catalog.
GET/api/v1/models/countCount OpenRouter models matching the filters.
GET/api/v1/models/{model_id}/endpointsRead the OpenRouter endpoint snapshot for a model.
GET/api/v1/providersRead the OpenRouter provider display list.
GET/api/v1/models/count

For model filters and public model-page counts. Results come from synchronized catalog data and do not trigger upstream OpenRouter calls.

Back to Models and Providers endpoint list

Request parameters

FieldTypeRequiredDescription
query.providerstringNoquery parameters。
query.available_onlybooleanNoquery parameters。
query.modalitystringNoquery parameters。
query.capabilitystringNoquery parameters。

Response fields

FieldTypeRequiredDescription
dataobjectNoSee the OpenAPI schema for field details.
data.countintegerYesSee the OpenAPI schema for field details.

Errors

401UNAUTHORIZED

Missing or invalid Authorization Bearer token.

403FORBIDDEN

The current API key is not authorized for this scope, model, or management capability.

422VALIDATION_ERROR

The request body, path parameters, or query parameters do not match the endpoint schema.

Notes

  • Use a GlobalRouter API key; upstream OpenRouter API keys are never exposed to tenants.