Skip to content

Models List API

Retrieves a list of all available AI image and video models.

Retrieves a single model by its id. Returns a single model object.

GET /v2/models/:modelId

https://api.imagerouter.io/v2/models/google%2Fgemini-2.5-flash

ParameterTypeDescription
modelIdstringThe ID of the model.

GET /v2/models

https://api.imagerouter.io/v2/models

Returns an array of model objects. Each object includes an id field identifying the model.

This endpoint supports filtering, sorting, limits, and field selection to help you find exactly the models and metadata you need.

https://api.imagerouter.io/v2/models?fields=name

https://api.imagerouter.io/v2/models?fields=name,aliases

Get free image models, but only show names, aliases, input and output types fields: https://api.imagerouter.io/v2/models?outputType=image&free=true&fields=aliases,inputs,output

Get all video models sorted by release date: https://api.imagerouter.io/v2/models?outputType=video&sort=date

Search by name and alias: https://api.imagerouter.io/v2/models?name=gemini

Get image models that accept input images (image editing models): https://api.imagerouter.io/v2/models?inputType=image&outputType=image

Get all video models with pricing data only: https://api.imagerouter.io/v2/models?outputType=video&fields=price,inputs

ParameterTypeDescription
outputTypestringFilter by output type: image or video
inputTypestringFilter by supported input: image, mask, quality, size, or seconds
providerstringFilter by provider name (partial, case-insensitive), e.g. google, openai
freestringtrue to show only free models, false to show only paid models
namestringFilter by model name or alias (partial, case-insensitive)
sortstringSort by: name, provider, price, or date
limitnumberMaximum number of models to return
fieldsstringComma-separated list of fields to include in the response (see below)

When fields is omitted, all fields are returned. When specified, only the listed fields appear in each model object. The id field is always included.

FieldTypeDescription
idstringThe model identifier, e.g. "black-forest-labs/FLUX-1.1-pro"
outputstring[]Output type(s), e.g. ["image"] or ["video"]
inputsobjectSupported input capabilities (see below)
release_datestringRelease date in YYYY-MM-DD format (may be absent)
aliasesstring[]Alternative names for this model (only present if aliases exist)
priceobjectPricing info with min, average, and max fields (in USD)
examplesobject[]Example outputs (only present on some models)

inputs object fields:

FieldTypeDescription
imagebooleanWhether the model accepts input image(s)
maskbooleanWhether the model accepts a mask for inpainting
qualitybooleanWhether the model supports quality settings
sizestring[]Supported sizes, e.g. ["1024x1024", "auto"] or ["custom"]
seconds(number|string)[]Supported durations for video models, e.g. [4, 6, 8] or ["auto"]
  • name: Alphabetical (A-Z).
  • provider: Alphabetical (A-Z).
  • price: Ascending (lowest price first).
  • date: Descending (newest first).