Skip to content

Models List API

Retrieves a list of all available AI models.

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

GET /v3/models/:modelId

https://api.imagerouter.io/v3/models/openai%2Fgpt-image-2

ParameterTypeDescription
modelIdstringThe ID of the model.
{
"id": "openai/gpt-image-2",
"architecture": {
"input_modalities": ["image"],
"output_modalities": ["image"]
},
"created": 1776729600,
"pricing": {
"min": 0.0062,
"average": 0.0414, // usual cost for a 1024x1024 medium quality image
"max": 0.2,
},
"supported_parameters": ["quality", "size"],
"parameters": {
"size": ["auto", "1024x1024", "1536x1024", "1024x1536", "2560x1440", "3840x2160"]
}
}

GET /v3/models

https://api.imagerouter.io/v3/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/v3/models?fields=id

https://api.imagerouter.io/v3/models?fields=id,aliases

Get all text (chat/LLM) models: https://api.imagerouter.io/v3/models?output_modalities=text

Get free image models, but only show id, aliases and architecture fields: https://api.imagerouter.io/v3/models?output_modalities=image&free=true&fields=id,aliases,architecture

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

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

Get image models that accept input images (image editing models): https://api.imagerouter.io/v3/models?input_modalities=image&output_modalities=image

Get all video models with pricing data only: https://api.imagerouter.io/v3/models?output_modalities=video&fields=pricing,parameters

ParameterTypeDescription
output_modalitiesstringFilter by output modality: image, video, or text
input_modalitiesstringFilter by supported input modality: image, mask, text, audio, or video
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. "openai/gpt-image-2"
architectureobjectInput and output modalities (see below)
creatednumberRelease date as a Unix timestamp in seconds (may be absent)
pricingobjectPricing info (see below)
supported_parametersstring[]Names of the generation parameters the model accepts, e.g. ["quality", "size"]
parametersobjectAllowed values for value-based parameters such as size and seconds (only present when applicable)
context_lengthnumberMaximum context window in tokens (text models only)
aliasesstring[]Alternative names for this model (only present if aliases exist)

architecture object fields:

FieldTypeDescription
input_modalitiesstring[]Accepted input modalities, e.g. ["image"], ["text"], or []
output_modalitiesstring[]Produced output modalities, e.g. ["image"], ["video"], or ["text"]

supported_parameters values:

ValueDescription
qualityModel supports quality settings
sizeModel supports output size selection (allowed values in parameters.size)
secondsModel supports output duration selection (allowed values in parameters.seconds)
maskModel supports a mask for inpainting

Text (LLM) models additionally report OpenAI-style parameters such as temperature, max_tokens, top_p, tools, and tool_choice.

parameters object fields:

FieldTypeDescription
sizestring[]Supported sizes, e.g. ["1024x1024", "auto"] or ["custom"]
seconds(number|string)[]Supported durations for video models, e.g. [4, 6, 8] or ["auto"]

pricing object:

For image and video models, pricing contains aggregate per-generation pricing in USD:

FieldTypeDescription
minnumberLowest price across configured providers (USD)
averagenumberRepresentative/average price (USD)
maxnumberHighest price across configured providers (USD)

For text (LLM) models, pricing is the upstream per-token pricing object (values are USD per token / per request), for example:

{
"prompt": "0.15e-6",
"completion": "0.6e-6",
"image": "0",
"request": "0",
"input_cache_read": "0.075e-6",
"input_cache_write": "0",
"web_search": "0",
"internal_reasoning": "0"
}

Image model:

{
"id": "openai/gpt-image-2",
"architecture": {
"input_modalities": ["image"],
"output_modalities": ["image"]
},
"created": 1776729600,
"pricing": { "min": 0.0062, "average": 0.0414, "max": 0.2 },
"supported_parameters": ["quality", "size"],
"parameters": {
"size": ["auto", "1024x1024", "1536x1024", "1024x1536", "2560x1440", "3840x2160"]
}
}

Video model:

{
"id": "google/veo-2",
"architecture": {
"input_modalities": ["image"],
"output_modalities": ["video"]
},
"created": 1734307200,
"pricing": { "min": 1.875, "average": 1.875, "max": 1.875 },
"supported_parameters": ["size", "seconds"],
"parameters": {
"size": ["1280x720", "720x1280", "1920x1080", "1080x1920"],
"seconds": [5]
}
}

Text (LLM) model:

{
"id": "openai/gpt-4o-mini",
"architecture": {
"input_modalities": ["text"],
"output_modalities": ["text"]
},
"created": 1721260800,
"pricing": {
"prompt": "0.15e-6",
"completion": "0.6e-6",
"image": "0",
"request": "0",
"input_cache_read": "0.075e-6",
"input_cache_write": "0",
"web_search": "0",
"internal_reasoning": "0"
},
"supported_parameters": [
"temperature", "max_tokens", "top_p",
"frequency_penalty", "presence_penalty",
"response_format", "tools", "tool_choice"
],
"context_length": 128000
}
  • name: Alphabetical (A-Z).
  • provider: Alphabetical (A-Z).
  • price: Ascending (lowest price first).
  • date: Descending (newest first).