GRGlobalRouter Docs
Console

Models / GET

Count models

Counts models that match the filters.

Endpoints

Mobile only shows the endpoint list. View parameter details and examples on desktop.

MethodEndpointDescription
GET/api/v1/modelsReads the visible model catalog for the current request context.
GET/api/v1/models/countCounts models that match the filters.
GET/api/v1/models/{author}/{slug}/endpointsReads provider endpoints, prices, and capabilities for one model.
GET/api/v1/providersReads the public provider list.
GET/api/v1/models/count

Useful for filter counts, pre-pagination checks, or lightweight model catalog summaries.

Back to Models endpoint list

Request parameters

FieldTypeRequiredDescription
modalitystringNoFilter by modality.
capabilitystringNoFilter by capability.
providerstringNoFilter by public provider ID.
input_modalitiesstring[]NoFilter by input modalities; may be repeated.
output_modalitiesstring[]NoFilter by output modalities; may be repeated.
available_onlybooleanNoOnly count models routable by the current tenant.

Response fields

FieldTypeRequiredDescription
data.countintegerYesNumber of models matching the filters.