Media Capabilities and Contracts
Canonical media request contracts, default input limits, per-host capability coverage, response headers, and verified error codes across all six non-text modalities (image, video, music, tts, stt, embedding). Generated directly from the runtime wire, catalog, and provider definitions; query GET /v1/models with ?type= or ?modality= for live model availability, per-model params, hosts, and pricing.tiers.
Modalities and Input Limits
| Modality | Endpoint(s) | Canonical operations | Default input ceiling | Metering unit |
|---|---|---|---|---|
image | POST /v1/images/generations, POST /v1/images/edits | generate, edit | 4,000 chars (prompt), max 8 input images | per token, per image, or per megapixel |
video | POST /v1/video/generations, POST /v1/videos (gated behind MEDIA_OPENAI_VIDEOS_ALIAS_ENABLED; returns 404 unknown_endpoint until enabled) | text-to-video, image-to-video, reference-to-video, first-last-frame, video-to-video, upscale, extend | 2,000 chars (prompt), max 8 input images | per second, per clip, or per job |
music | POST /v1/music/generations | music | 2,000 chars (prompt) | per second, per clip, or per job |
tts | POST /v1/audio/speech | tts | 4,096 chars (input) | per 1K characters |
stt | POST /v1/audio/transcriptions | stt | 2,000 chars (prompt), max 25 MB audio upload | per minute |
embedding | POST /v1/embeddings | embedding | Model context window (input) | per 1M tokens |
imageEndpoint(s) · POST /v1/images/generations, POST /v1/images/editsCanonical operations · generate, editDefault input ceiling · 4,000 chars (prompt), max 8 input imagesMetering unit · per token, per image, or per megapixelvideoEndpoint(s) · POST /v1/video/generations, POST /v1/videos (gated behind MEDIA_OPENAI_VIDEOS_ALIAS_ENABLED; returns 404 unknown_endpoint until enabled)Canonical operations · text-to-video, image-to-video, reference-to-video, first-last-frame, video-to-video, upscale, extendDefault input ceiling · 2,000 chars (prompt), max 8 input imagesMetering unit · per second, per clip, or per jobmusicEndpoint(s) · POST /v1/music/generationsCanonical operations · musicDefault input ceiling · 2,000 chars (prompt)Metering unit · per second, per clip, or per jobttsEndpoint(s) · POST /v1/audio/speechCanonical operations · ttsDefault input ceiling · 4,096 chars (input)Metering unit · per 1K characterssttEndpoint(s) · POST /v1/audio/transcriptionsCanonical operations · sttDefault input ceiling · 2,000 chars (prompt), max 25 MB audio uploadMetering unit · per minuteembeddingEndpoint(s) · POST /v1/embeddingsCanonical operations · embeddingDefault input ceiling · Model context window (input)Metering unit · per 1M tokensCanonical Request Parameters
Permanent aliases are normalized before routing and reported in the X-SI-Adapted-Params header on sync endpoints or the adapted_params response body field on async media jobs (never in X-SI-Deprecation). Under standardization enforce, unknown keys fail closed with 400 unsupported_parameter and defaults are resolved before quoting and routing.
Image
Supported operations: generate, edit. See Image Generations.
| Canonical parameter | Type | Accepted aliases | Default / notes |
|---|---|---|---|
model | string | - | Required. Model aliases resolve before routing (X-SI-Model-Alias). |
prompt | string | - | Required. Default max length: 4,000 chars unless overridden by model contract. |
operation | string | - | generate or edit; inferred as edit when a source image is present or called on /v1/images/edits. |
n | integer | - | Default 1. Priced dimension for per-image and per-megapixel models. |
size | string | - | Pixel dimensions (WIDTHxHEIGHT) or auto (stripped on normalization). |
aspect_ratio | string | - | Model-declared ratio (e.g. 1:1, 16:9); defaults to 1:1 when ratios are declared and size is omitted. |
resolution | string | - | Tiered resolution (1K, 2K, 4K); case-normalized. |
quality | string | - | Quality tier (e.g. low, medium, high). |
output_format | string | - | Default png under enforce (png, jpeg, webp per model). |
response_format | string | - | b64_json (default) or url. |
input_images | array | image, image_url, images, input_image | https:// URLs or data: URIs (max 8). |
safe_mode | boolean | moderation (auto / low) | Honored on supported image wires; stripped on wires without a safety knob. |
modelType · stringAccepted aliases · -Default / notes · Required. Model aliases resolve before routing (X-SI-Model-Alias).promptType · stringAccepted aliases · -Default / notes · Required. Default max length: 4,000 chars unless overridden by model contract.operationType · stringAccepted aliases · -Default / notes · generate or edit; inferred as edit when a source image is present or called on /v1/images/edits.nType · integerAccepted aliases · -Default / notes · Default 1. Priced dimension for per-image and per-megapixel models.sizeType · stringAccepted aliases · -Default / notes · Pixel dimensions (WIDTHxHEIGHT) or auto (stripped on normalization).aspect_ratioType · stringAccepted aliases · -Default / notes · Model-declared ratio (e.g. 1:1, 16:9); defaults to 1:1 when ratios are declared and size is omitted.resolutionType · stringAccepted aliases · -Default / notes · Tiered resolution (1K, 2K, 4K); case-normalized.qualityType · stringAccepted aliases · -Default / notes · Quality tier (e.g. low, medium, high).output_formatType · stringAccepted aliases · -Default / notes · Default png under enforce (png, jpeg, webp per model).response_formatType · stringAccepted aliases · -Default / notes · b64_json (default) or url.input_imagesType · arrayAccepted aliases · image, image_url, images, input_imageDefault / notes · https:// URLs or data: URIs (max 8).safe_modeType · booleanAccepted aliases · moderation (auto / low)Default / notes · Honored on supported image wires; stripped on wires without a safety knob.Video
Supported operations: text-to-video, image-to-video, reference-to-video, first-last-frame, video-to-video, upscale, extend. See Video Generations.
| Canonical parameter | Type | Accepted aliases | Default / notes |
|---|---|---|---|
model | string | - | Required. Canonical or aliased video model ID. |
prompt | string | - | Required. Default max length: 2,000 chars unless overridden by model contract. |
operation | string | - | Inferred from inputs (video_url, end_image_url, reference_image_urls, input_images) when omitted. |
duration_seconds | integer | duration, seconds | Accepts 5, "5", or "5s"; defaults to model default or shortest declared duration. |
resolution | string | size (via gated /v1/videos) | Case-normalized to model spelling (480p, 720p, 1080p, 4k). |
aspect_ratio | string | size (via gated /v1/videos) | Defaults to 16:9 (or first declared ratio) on text-to-video; omitted on image-to-video unless required by host. |
audio | boolean | generate_audio, sound | Included only for models with configurable audio. |
input_images | array | image, image_url, images, input_image, input_reference | Start, end, or reference frames (https:// URL or data: URI, max 8). |
end_image_url | string | end_image | Transition end frame (equivalent to role: "end" in input_images). |
reference_image_urls | array | - | Reference conditioning frames (reference-to-video). |
video_url | string | - | Required source video for video-to-video and upscale models. |
modelType · stringAccepted aliases · -Default / notes · Required. Canonical or aliased video model ID.promptType · stringAccepted aliases · -Default / notes · Required. Default max length: 2,000 chars unless overridden by model contract.operationType · stringAccepted aliases · -Default / notes · Inferred from inputs (video_url, end_image_url, reference_image_urls, input_images) when omitted.duration_secondsType · integerAccepted aliases · duration, secondsDefault / notes · Accepts 5, "5", or "5s"; defaults to model default or shortest declared duration.resolutionType · stringAccepted aliases · size (via gated /v1/videos)Default / notes · Case-normalized to model spelling (480p, 720p, 1080p, 4k).aspect_ratioType · stringAccepted aliases · size (via gated /v1/videos)Default / notes · Defaults to 16:9 (or first declared ratio) on text-to-video; omitted on image-to-video unless required by host.audioType · booleanAccepted aliases · generate_audio, soundDefault / notes · Included only for models with configurable audio.input_imagesType · arrayAccepted aliases · image, image_url, images, input_image, input_referenceDefault / notes · Start, end, or reference frames (https:// URL or data: URI, max 8).end_image_urlType · stringAccepted aliases · end_imageDefault / notes · Transition end frame (equivalent to role: "end" in input_images).reference_image_urlsType · arrayAccepted aliases · -Default / notes · Reference conditioning frames (reference-to-video).video_urlType · stringAccepted aliases · -Default / notes · Required source video for video-to-video and upscale models.Music
Supported operation: music. See Music Generations.
| Canonical parameter | Type | Accepted aliases | Default / notes |
|---|---|---|---|
model | string | - | Required. Canonical or aliased music model ID. |
prompt | string | - | Required. Default max length: 2,000 chars. |
duration_seconds | integer | duration, seconds | Accepts 30, "30", or "30s"; defaults to model default or shortest declared duration. |
lyrics_prompt | string | lyrics | Optional lyrics text for vocal-capable music models. |
force_instrumental | boolean | instrumental | Generate an instrumental track without vocals when supported. |
modelType · stringAccepted aliases · -Default / notes · Required. Canonical or aliased music model ID.promptType · stringAccepted aliases · -Default / notes · Required. Default max length: 2,000 chars.duration_secondsType · integerAccepted aliases · duration, secondsDefault / notes · Accepts 30, "30", or "30s"; defaults to model default or shortest declared duration.lyrics_promptType · stringAccepted aliases · lyricsDefault / notes · Optional lyrics text for vocal-capable music models.force_instrumentalType · booleanAccepted aliases · instrumentalDefault / notes · Generate an instrumental track without vocals when supported.Text-to-Speech (TTS)
Supported operation: tts. See Audio.
Canonical OpenAI voices (mapped automatically when a model uses provider-native voice IDs): alloy, nova, echo, fable, onyx, shimmer, ash, coral, sage.
| Canonical parameter | Type | Accepted aliases | Default / notes |
|---|---|---|---|
model | string | - | Required. TTS model ID (query GET /v1/models?type=tts). |
input | string | - | Required. Default max length: 4,096 chars. |
voice | string | - | Model-native voice or one of the 9 canonical OpenAI voices above. |
response_format | string | - | mp3, opus, aac, flac, wav, or pcm. |
speed | number | - | Playback speed from 0.25 to 4.0. |
modelType · stringAccepted aliases · -Default / notes · Required. TTS model ID (query GET /v1/models?type=tts).inputType · stringAccepted aliases · -Default / notes · Required. Default max length: 4,096 chars.voiceType · stringAccepted aliases · -Default / notes · Model-native voice or one of the 9 canonical OpenAI voices above.response_formatType · stringAccepted aliases · -Default / notes · mp3, opus, aac, flac, wav, or pcm.speedType · numberAccepted aliases · -Default / notes · Playback speed from 0.25 to 4.0.Speech-to-Text (STT)
Supported operation: stt. See Audio.
| Canonical parameter | Type | Accepted aliases | Default / notes |
|---|---|---|---|
file | file | - | Required multipart upload (max 25 MB; wav, mp3, mp4, m4a, mpeg, mpga, ogg, webm, flac). |
model | string | - | Required. STT model ID (query GET /v1/models?type=stt). |
language | string | - | Optional ISO-639-1 language hint. |
prompt | string | - | Optional conditioning prompt (default max length: 2,000 chars). |
response_format | string | - | json (default), text, srt, vtt, or verbose_json. |
temperature | number | - | Sampling temperature (0 to 1). |
timestamp_granularities | array | timestamps | Optional segment/word timestamp granularities when supported. |
fileType · fileAccepted aliases · -Default / notes · Required multipart upload (max 25 MB; wav, mp3, mp4, m4a, mpeg, mpga, ogg, webm, flac).modelType · stringAccepted aliases · -Default / notes · Required. STT model ID (query GET /v1/models?type=stt).languageType · stringAccepted aliases · -Default / notes · Optional ISO-639-1 language hint.promptType · stringAccepted aliases · -Default / notes · Optional conditioning prompt (default max length: 2,000 chars).response_formatType · stringAccepted aliases · -Default / notes · json (default), text, srt, vtt, or verbose_json.temperatureType · numberAccepted aliases · -Default / notes · Sampling temperature (0 to 1).timestamp_granularitiesType · arrayAccepted aliases · timestampsDefault / notes · Optional segment/word timestamp granularities when supported.Embeddings
Supported operation: embedding. See Embeddings.
| Canonical parameter | Type | Accepted aliases | Default / notes |
|---|---|---|---|
model | string | - | Required. Embedding model ID (query GET /v1/models?type=embedding). |
input | string or string[] | - | Required text or batch of strings to embed. |
encoding_format | string | - | float (default) or base64. |
dimensions | integer | - | Optional output embedding dimensionality when supported. |
modelType · stringAccepted aliases · -Default / notes · Required. Embedding model ID (query GET /v1/models?type=embedding).inputType · string or string[]Accepted aliases · -Default / notes · Required text or batch of strings to embed.encoding_formatType · stringAccepted aliases · -Default / notes · float (default) or base64.dimensionsType · integerAccepted aliases · -Default / notes · Optional output embedding dimensionality when supported.Per-Host Capability Matrix
Built from MEDIA_PROVIDER_DESCRIPTORS, listMediaParamContractDescriptors(), MEDIA_MODEL_REGISTRY, and the committed capability manifests (2026-11-24-media-manifest-baseline.json + 2026-11-24-orbio-manifest.json), covering all eight live media hosts. Individual models expose exact per-host differences in GET /v1/models under hosts[].honored_diff.
Provider Hosts and Supported Endpoints
| Host | Provider | Supported endpoints | Input-image forms | Modes | Contracted models | Catalog models |
|---|---|---|---|---|---|---|
api.akashml.com | AkashML | image.edit, image.generate | bytes, data-uri, url | sync | 0 | 1 |
api.inferhub.dev | InferHub | image.generate | - | sync | 2 | 1 |
api.maxlatent.xyz | MaxLatent | video.generate | url | async | 2 | 2 |
api.mordiem.com | Mordiem | audio.speech, audio.transcription, embeddings, image.edit, image.generate, music.generate, video.generate | bytes, data-uri, url | sync, async | 230 | 46 |
api.openai.com | OpenAI | image.edit, image.generate | data-uri, url | sync | 0 | 1 |
api.orbio.so | Orbio | image.generate | - | sync | 6 | 0 |
api.uncensored.com | Uncensored AI | image.edit, video.generate | url | async | 45 | 25 |
api.venice.ai | Venice AI | audio.speech, audio.transcription, embeddings, image.edit, image.generate, music.generate, video.generate | bytes, data-uri, url | sync, async | 218 | 214 |
generativelanguage.googleapis.com | Google AI Studio | image.generate | - | sync | 1 | 1 |
openrouter.ai | OpenRouter | image.edit, image.generate, video.generate | data-uri, url | sync, async | 24 | 26 |
api.akashml.comProvider · AkashMLSupported endpoints · image.edit, image.generateInput-image forms · bytes, data-uri, urlModes · syncContracted models · 0Catalog models · 1api.inferhub.devProvider · InferHubSupported endpoints · image.generateInput-image forms · -Modes · syncContracted models · 2Catalog models · 1api.maxlatent.xyzProvider · MaxLatentSupported endpoints · video.generateInput-image forms · urlModes · asyncContracted models · 2Catalog models · 2api.mordiem.comProvider · MordiemSupported endpoints · audio.speech, audio.transcription, embeddings, image.edit, image.generate, music.generate, video.generateInput-image forms · bytes, data-uri, urlModes · sync, asyncContracted models · 230Catalog models · 46api.openai.comProvider · OpenAISupported endpoints · image.edit, image.generateInput-image forms · data-uri, urlModes · syncContracted models · 0Catalog models · 1api.orbio.soProvider · OrbioSupported endpoints · image.generateInput-image forms · -Modes · syncContracted models · 6Catalog models · 0api.uncensored.comProvider · Uncensored AISupported endpoints · image.edit, video.generateInput-image forms · urlModes · asyncContracted models · 45Catalog models · 25api.venice.aiProvider · Venice AISupported endpoints · audio.speech, audio.transcription, embeddings, image.edit, image.generate, music.generate, video.generateInput-image forms · bytes, data-uri, urlModes · sync, asyncContracted models · 218Catalog models · 214generativelanguage.googleapis.comProvider · Google AI StudioSupported endpoints · image.generateInput-image forms · -Modes · syncContracted models · 1Catalog models · 1openrouter.aiProvider · OpenRouterSupported endpoints · image.edit, image.generate, video.generateInput-image forms · data-uri, urlModes · sync, asyncContracted models · 24Catalog models · 26Host Parameter-Contract Coverage
| Host | Contracted models | Honored durations (s) | Honored resolutions | Honored aspect ratios | Honored sizes | Configurable audio models |
|---|---|---|---|---|---|---|
api.inferhub.dev | 2 | - | - | - | 1024x1024, 1024x1536, 1024x768, 1536x1024, 768x1024 | 0 |
api.maxlatent.xyz | 2 | 8 | 1080p, 720p | 16:9, 9:16 | - | 0 |
api.mordiem.com | 230 | 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30 | 1080p, 1080P, 1440p, 1K, 1x, 2160p, 2k, 2K, 2x, 360p, 480p, 480P, 4k, 4K, 4x, 540p, 580p, 720p, 768P | 1:1, 16:9, 2:3, 21:9, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 9:21, adaptive, auto | 1024x1024, 1024x1536, 1024x768, 1536x1024, 768x1024 | 59 |
api.orbio.so | 6 | - | 1K, 2K, 4K | 1:1, 16:9, 2:3, 21:9, 3:2, 3:4, 4:5, 9:16 | 1024x1024, 1024x1536, 1024x768, 1536x1024, 768x1024 | 0 |
api.uncensored.com | 45 | 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 18, 20 | 1080p, 1440p, 1x, 2160p, 2k, 2x, 480p, 4k, 4x, 580p, 720p | 1:1, 16:9, 2:3, 21:9, 3:2, 3:4, 4:3, 9:16, auto | - | 9 |
api.venice.ai | 218 | 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30 | 1080p, 1080P, 1440p, 1K, 1x, 2160p, 2k, 2K, 2x, 360p, 480p, 480P, 4k, 4K, 4x, 540p, 580p, 720p, 768P, true_1080p | 1:1, 16:9, 2:3, 21:9, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 9:21, adaptive, auto | 1024x1024, 1024x1536, 1024x768, 1536x1024, 768x1024 | 65 |
generativelanguage.googleapis.com | 1 | - | 1K, 2K, 4K | 1:1, 16:9, 2:3, 3:2, 3:4, 4:3, 9:16 | - | 0 |
openrouter.ai | 24 | 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 | 1080p, 1K, 2K, 480p, 4k, 4K, 720p | 1:1, 16:9, 2:3, 21:9, 3:2, 3:4, 4:3, 4:5, 9:16, auto | 1024x1024, 1024x1536, 1024x768, 1536x1024, 768x1024 | 8 |
api.inferhub.devContracted models · 2Honored durations (s) · -Honored resolutions · -Honored aspect ratios · -Honored sizes · 1024x1024, 1024x1536, 1024x768, 1536x1024, 768x1024Configurable audio models · 0api.maxlatent.xyzContracted models · 2Honored durations (s) · 8Honored resolutions · 1080p, 720pHonored aspect ratios · 16:9, 9:16Honored sizes · -Configurable audio models · 0api.mordiem.comContracted models · 230Honored durations (s) · 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30Honored resolutions · 1080p, 1080P, 1440p, 1K, 1x, 2160p, 2k, 2K, 2x, 360p, 480p, 480P, 4k, 4K, 4x, 540p, 580p, 720p, 768PHonored aspect ratios · 1:1, 16:9, 2:3, 21:9, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 9:21, adaptive, autoHonored sizes · 1024x1024, 1024x1536, 1024x768, 1536x1024, 768x1024Configurable audio models · 59api.orbio.soContracted models · 6Honored durations (s) · -Honored resolutions · 1K, 2K, 4KHonored aspect ratios · 1:1, 16:9, 2:3, 21:9, 3:2, 3:4, 4:5, 9:16Honored sizes · 1024x1024, 1024x1536, 1024x768, 1536x1024, 768x1024Configurable audio models · 0api.uncensored.comContracted models · 45Honored durations (s) · 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 18, 20Honored resolutions · 1080p, 1440p, 1x, 2160p, 2k, 2x, 480p, 4k, 4x, 580p, 720pHonored aspect ratios · 1:1, 16:9, 2:3, 21:9, 3:2, 3:4, 4:3, 9:16, autoHonored sizes · -Configurable audio models · 9api.venice.aiContracted models · 218Honored durations (s) · 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30Honored resolutions · 1080p, 1080P, 1440p, 1K, 1x, 2160p, 2k, 2K, 2x, 360p, 480p, 480P, 4k, 4K, 4x, 540p, 580p, 720p, 768P, true_1080pHonored aspect ratios · 1:1, 16:9, 2:3, 21:9, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 9:21, adaptive, autoHonored sizes · 1024x1024, 1024x1536, 1024x768, 1536x1024, 768x1024Configurable audio models · 65generativelanguage.googleapis.comContracted models · 1Honored durations (s) · -Honored resolutions · 1K, 2K, 4KHonored aspect ratios · 1:1, 16:9, 2:3, 3:2, 3:4, 4:3, 9:16Honored sizes · -Configurable audio models · 0openrouter.aiContracted models · 24Honored durations (s) · 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15Honored resolutions · 1080p, 1K, 2K, 480p, 4k, 4K, 720pHonored aspect ratios · 1:1, 16:9, 2:3, 21:9, 3:2, 3:4, 4:3, 4:5, 9:16, autoHonored sizes · 1024x1024, 1024x1536, 1024x768, 1536x1024, 768x1024Configurable audio models · 8Response Headers and Async Body Fields
Headers below are separated by rollout mode and surface. X-SI-Resolved-Params (enforce only) and X-SI-Deprecation (shadow only) are mutually exclusive; async media endpoints report adapted parameters in the JSON response body (adapted_params), not in an X-SI-Adapted-Params header.
| Signal | Scope / Rollout mode | Placement | Value |
|---|---|---|---|
X-SI-Model-Alias | Unconditional (sync & async, whenever an alias resolves) | Response header | The originally requested model alias string |
Idempotency-Replayed | Unconditional (whenever a duplicate request replays) | Response header | true |
X-SI-Adapted-Params | Sync-only (images, audio, embeddings; when aliases translate or knobs are stripped) | Response header | Comma-separated list of adapted parameter names |
X-SI-Resolved-Params | Enforce-only (MEDIA_STANDARDIZATION_MODE=enforce, sync & async submit) | Response header | Compact sorted k=v,... list of resolved canonical parameters (max 256 bytes) |
X-SI-Deprecation | Shadow-only (MEDIA_STANDARDIZATION_MODE=shadow, sync & async submit with unknown/unhonored params) | Response header | 299 - "Deprecated or unsupported media parameters: ..." (never emitted for permanent aliases) |
adapted_params | Async-only (202 submit on video/music when params are adapted or stripped) | JSON response body field | Sorted array of adapted parameter names (async counterpart of X-SI-Adapted-Params) |
X-SI-Model-AliasScope / Rollout mode · Unconditional (sync & async, whenever an alias resolves)Placement · Response headerValue · The originally requested model alias stringIdempotency-ReplayedScope / Rollout mode · Unconditional (whenever a duplicate request replays)Placement · Response headerValue · trueX-SI-Adapted-ParamsScope / Rollout mode · Sync-only (images, audio, embeddings; when aliases translate or knobs are stripped)Placement · Response headerValue · Comma-separated list of adapted parameter namesX-SI-Resolved-ParamsScope / Rollout mode · Enforce-only (MEDIA_STANDARDIZATION_MODE=enforce, sync & async submit)Placement · Response headerValue · Compact sorted k=v,... list of resolved canonical parameters (max 256 bytes)X-SI-DeprecationScope / Rollout mode · Shadow-only (MEDIA_STANDARDIZATION_MODE=shadow, sync & async submit with unknown/unhonored params)Placement · Response headerValue · 299 - "Deprecated or unsupported media parameters: ..." (never emitted for permanent aliases)adapted_paramsScope / Rollout mode · Async-only (202 submit on video/music when params are adapted or stripped)Placement · JSON response body fieldValue · Sorted array of adapted parameter names (async counterpart of X-SI-Adapted-Params)Structured Error Taxonomy
Every error code below is verified against live SurplusError throw sites in the backend codebase. Branch on error.code (and retryable where present on async media jobs).
| Status | Code | Retryable | Meaning |
|---|---|---|---|
400 | invalid_request | false | Malformed request body, missing required parameter, or prompt/input exceeding the character ceiling. |
400 | invalid_request_error | false | Missing multipart file, unsupported audio MIME/extension, or upload exceeding the 25 MB transcription limit. |
400 | file_too_large | false | Multipart upload exceeds the hard file-size limit. |
400 | unsupported_parameter | false | Unknown or unmapped parameter key sent for the modality under standardization enforce. |
400 | unsupported_parameter_value | false | Parameter value is outside the model contract domain (operation, duration_seconds, resolution, aspect_ratio, size, response_format). |
400 | unsupported_provider_value | false | Value is in the model domain, but no routable host honors it (error details include param, allowed, and hosts). |
400 | unsupported_voice | false | Requested TTS voice is neither natively supported nor mappable from the 9 canonical OpenAI voices. |
400 | unsupported_image_count | false | Requested image count n exceeds the model or routable host limit. |
400 | unsupported_image_size | false | No routable seller can express the requested image size. |
400 | unsupported_image_resolution | false | Requested image resolution tier is not supported by the model. |
400 | unsupported_image_aspect_ratio | false | Requested image aspect_ratio is not supported by the model. |
400 | unsupported_response_format | false | Requested output format is unsupported or pre-settlement audio transcoding failed. |
400 | invalid_image_input | false | Source image is not an https:// URL or data: URI, or uses an unsupported file_id reference. |
400 | image_required | false | Image-edit or image-to-video-only model called without a usable source image. |
400 | video_required | false | Video-to-video or video-upscale model called without a source video_url. |
400 | too_many_input_images | false | More than 8 source images were provided in a single request. |
400 | mask_not_supported | false | Masked inpaint edits (mask or mask_url) are not supported. |
401 | invalid_api_key | false | Supplied API key is invalid or revoked. |
402 | insufficient_credit | false | Account balance cannot cover the estimated cost or async reservation ceiling. |
402 | account_frozen | false | Paying account is frozen or under review. |
404 | model_not_found | false | Requested model ID is not present in the media catalog. |
404 | no_sellers_for_model | false | No listed seller can serve this model on this endpoint. |
404 | minimum_discount_not_met | false | No eligible healthy seller meets the /min{N} discount floor. |
404 | artifact_expired | false | Completed media artifact is past its retention window. |
409 | idempotency_key_reused | false | Idempotency-Key was already used with a different request payload under MEDIA_IDEMPOTENCY_STRICT_MODE=enforce (409 on async media submit, 422 on idempotent sync routes); while off, reusing a key replays the original response. |
502 | provider_error | true | Upstream provider failed after healthy failover candidates were exhausted. |
502 | artifact_hosting_failed | true | Generated image artifact could not be hosted for URL delivery; the buyer is not charged. |
503 | sellers_unavailable | true | All candidate sellers were unhealthy, rate-limited, or failed under standardization enforce (Retry-After emitted). |
503 | no_healthy_sellers | true | Sellers exist for the model, but none is currently healthy or able to accept the input. |
400Code · invalid_requestRetryable · falseMeaning · Malformed request body, missing required parameter, or prompt/input exceeding the character ceiling.400Code · invalid_request_errorRetryable · falseMeaning · Missing multipart file, unsupported audio MIME/extension, or upload exceeding the 25 MB transcription limit.400Code · file_too_largeRetryable · falseMeaning · Multipart upload exceeds the hard file-size limit.400Code · unsupported_parameterRetryable · falseMeaning · Unknown or unmapped parameter key sent for the modality under standardization enforce.400Code · unsupported_parameter_valueRetryable · falseMeaning · Parameter value is outside the model contract domain (operation, duration_seconds, resolution, aspect_ratio, size, response_format).400Code · unsupported_provider_valueRetryable · falseMeaning · Value is in the model domain, but no routable host honors it (error details include param, allowed, and hosts).400Code · unsupported_voiceRetryable · falseMeaning · Requested TTS voice is neither natively supported nor mappable from the 9 canonical OpenAI voices.400Code · unsupported_image_countRetryable · falseMeaning · Requested image count n exceeds the model or routable host limit.400Code · unsupported_image_sizeRetryable · falseMeaning · No routable seller can express the requested image size.400Code · unsupported_image_resolutionRetryable · falseMeaning · Requested image resolution tier is not supported by the model.400Code · unsupported_image_aspect_ratioRetryable · falseMeaning · Requested image aspect_ratio is not supported by the model.400Code · unsupported_response_formatRetryable · falseMeaning · Requested output format is unsupported or pre-settlement audio transcoding failed.400Code · invalid_image_inputRetryable · falseMeaning · Source image is not an https:// URL or data: URI, or uses an unsupported file_id reference.400Code · image_requiredRetryable · falseMeaning · Image-edit or image-to-video-only model called without a usable source image.400Code · video_requiredRetryable · falseMeaning · Video-to-video or video-upscale model called without a source video_url.400Code · too_many_input_imagesRetryable · falseMeaning · More than 8 source images were provided in a single request.400Code · mask_not_supportedRetryable · falseMeaning · Masked inpaint edits (mask or mask_url) are not supported.401Code · invalid_api_keyRetryable · falseMeaning · Supplied API key is invalid or revoked.402Code · insufficient_creditRetryable · falseMeaning · Account balance cannot cover the estimated cost or async reservation ceiling.402Code · account_frozenRetryable · falseMeaning · Paying account is frozen or under review.404Code · model_not_foundRetryable · falseMeaning · Requested model ID is not present in the media catalog.404Code · no_sellers_for_modelRetryable · falseMeaning · No listed seller can serve this model on this endpoint.404Code · minimum_discount_not_metRetryable · falseMeaning · No eligible healthy seller meets the /min{N} discount floor.404Code · artifact_expiredRetryable · falseMeaning · Completed media artifact is past its retention window.409Code · idempotency_key_reusedRetryable · falseMeaning · Idempotency-Key was already used with a different request payload under MEDIA_IDEMPOTENCY_STRICT_MODE=enforce (409 on async media submit, 422 on idempotent sync routes); while off, reusing a key replays the original response.502Code · provider_errorRetryable · trueMeaning · Upstream provider failed after healthy failover candidates were exhausted.502Code · artifact_hosting_failedRetryable · trueMeaning · Generated image artifact could not be hosted for URL delivery; the buyer is not charged.503Code · sellers_unavailableRetryable · trueMeaning · All candidate sellers were unhealthy, rate-limited, or failed under standardization enforce (Retry-After emitted).503Code · no_healthy_sellersRetryable · trueMeaning · Sellers exist for the model, but none is currently healthy or able to accept the input.