Skip to content

Models List API

Retrieves a list of all available image and video models.

Terminal window
curl "https://api.imagerouter.io/v1/models"

Open in browser: https://api.imagerouter.io/v1/models

This endpoint supports filtering, sorting, and pagination to help you find the models you need.

ParameterTypeDescription
typestringFilter models by type. Can be image or video.
providerstringFilter models by provider. (e.g., google, openai). Supports partial matching.
freebooleanFilter for free models. Use true to get only free models and false for paid models.
namestringFilter models by name (ID). Supports partial matching.
sortstringSort the results. Options: name, provider, price, date.
limitintegerLimit the number of models returned.
  • name: Alphabetical (A-Z).
  • provider: Alphabetical (A-Z).
  • price: Ascending (lowest price first).
  • date: Descending (newest first).

Get all image models from Google

Terminal window
curl "https://api.imagerouter.io/v1/models?type=image&provider=google"

Get 10 latest Video models

Terminal window
curl "https://api.imagerouter.io/v1/models?type=video&limit=10&sort=date"

Get all free models

Terminal window
curl "https://api.imagerouter.io/v1/models?free=true"

Get all models, sorted by release date

Terminal window
curl "https://api.imagerouter.io/v1/models?sort=date"

Retrieves a single model by its ID.

GET /v1/models/:modelId

ParameterTypeDescription
modelIdstringThe ID of the model.

Get the google%2Fgemini-2.5-flash model

Terminal window
curl "https://api.imagerouter.io/v1/models/google%2Fgemini-2.5-flash"

If the model is not found, you will receive a 404 error:

{
"error": {
"message": "The model 'model-that-does-not-exist' does not exist.",
"type": "invalid_request_error",
"param": "model",
"code": "model_not_found"
}
}