Back to changelog

Image and Video Limits in /v1/models

Every image and video mapping in /v1/models now lists the sizes, aspect ratios, resolutions, qualities and input limits it accepts, and the image endpoints check requests against them before calling a provider, returning a 400 that names the supported values.

A glowing picture frame with a ruler and crop marks on a circuit board chip, surrounded by film strips, aspect ratio tiles and a checklist on small pedestals

Image models disagree on almost everything: which sizes they render, whether they take an aspect ratio, how many input images an edit accepts. A request that one model accepts fails on another with a provider error you then have to decode. Image and video limits are now part of the model catalogue, and the gateway checks them for you.

What /v1/models Lists

Each image provider entry in GET /v1/models describes what that mapping accepts:

Field Meaning
supported_image_sizes WIDTHxHEIGHT values for size
supports_custom_image_size Other sizes are accepted within the provider's limits
supported_aspect_ratios Values for aspect_ratio
supported_image_resolutions Resolution tiers such as 1K, 2K or 4K
supported_image_qualities Values for quality
max_input_images Most input images one edit accepts
max_images_per_request Largest n
supports_image_edit Whether the model accepts input images
supports_transparent_background Whether background: "transparent" is native

Video provider entries list supports_video_start_frame, supports_video_end_frame and max_input_images, so you can tell before sending which models take a first or last frame.

Checked Before the Provider

/v1/images/generations and /v1/images/edits check size, aspect_ratio, quality, n and the number of input images against these fields. When no provider of the requested model accepts the request, it fails fast with a 400 that names the supported values, and no provider is called. size: "auto" and fields a model does not declare are passed through unchanged.

1curl -s https://api.llmgateway.io/v1/models \2  | jq '.data[] | select(.id == "gpt-image-2") | .providers[] | {providerId, supported_image_sizes, max_input_images}'

Image generation docs → | Video generation docs →