Authenticate with your MixRoute API Key using Authorization: Bearer $MIXROUTE_API_KEY and send JSON. The model ID belongs in the URL, not a body model field. Do not add /v1 or wrap the request in metadata.
For Kling 4.0, use the version-specific parameters and examples in Kling 4.0. The parameter/default/combination tables and examples below this note describe the older models, not 4.0.
Contents
Field
Type
Required
Description
contents
object[]
Yes
Input collection. A first frame is required; last-frame-only input is unsupported. Keep each type and its fields in one object.
contents[].type
string
Yes
Required per item. prompt, first_frame; last_frame for 3.0/2.6/2.5 Turbo; element for 3.0 only; voice for 2.6 only.
contents[].text
string
By type
Required for prompt items. 3.0: maximum 3072 characters (2500 recommended); other models: maximum 2500.
contents[].url
string
By type
Required for first_frame/last_frame: public image URL or Base64.
contents[].element_id
string
By type
Required for element items; 3.0 supports up to 3 Elements.
contents[].voice_id
string
By type
Required for voice items; 2.6 supports up to 2 voices with audio=native and 1080p.
contents[].id
string
By type
Required for element/voice items, unique within the task; reference as @id in the prompt.
Generation Settings
Field
Type
Required
Description
settings.resolution
string
No
Defaults to 720p. 3.0: 720p/1080p/4k; other models: 720p/1080p. First/last-frame mode requires 1080p for 2.6/2.5 Turbo.
settings.duration
integer
No
Defaults to 5. 3-15 for 3.0/3.0 Turbo; only 5 or 10 for 2.6/2.5 Turbo.
settings.audio
string
No
3.0/2.6 support off (default) or native. 2.6 native audio requires 1080p. Omit for 3.0 Turbo and 2.5 Turbo.
settings.multi_shot
boolean
No
3.0 only, defaults to true. false prevents multi-shot output even with storyboard prompts.
The standard image-to-video endpoint has no aspect_ratio; framing follows the image. 3.0 Turbo accepts only a first frame, not a last frame, Element or voice reference. Reference 3.0 Elements as @id, avoiding overlapping names; storyboard syntax matches text-to-video.
Image Limits
JPG/JPEG/PNG, at most 50 MB per image, both dimensions at least 300 px, aspect ratio between 1:2.5 and 2.5:1. Supply a first frame or first+last frames, never a last frame alone. Asset IDs must be accessible to the routed upstream account.
Request Example
Set the MIXROUTE_API_KEY environment variable. Replace example.com media URLs with real, publicly accessible files.