Skip to content

Models

Retrieves a list of all available image and video models.

GET /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, arena_score, price, date.
limitintegerLimit the number of models returned.
  • name: Alphabetical (A-Z).
  • provider: Alphabetical (A-Z).
  • arena_score: Descending (highest score first).
  • 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 the top 5 models sorted by arena score

Terminal window
curl "https://api.imagerouter.io/v1/models?sort=arena_score&limit=5"

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 sd3-medium model

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

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"
}
}