/api/v1/models/countFor 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 listRequest parameters
| Field | Type | Required | Description |
|---|---|---|---|
query.provider | string | No | query parameters。 |
query.available_only | boolean | No | query parameters。 |
query.modality | string | No | query parameters。 |
query.capability | string | No | query parameters。 |
Response fields
| Field | Type | Required | Description |
|---|---|---|---|
data | object | No | See the OpenAPI schema for field details. |
data.count | integer | Yes | See the OpenAPI schema for field details. |
Errors
401
UNAUTHORIZEDMissing or invalid Authorization Bearer token.
403
FORBIDDENThe current API key is not authorized for this scope, model, or management capability.
422
VALIDATION_ERRORThe 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.