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
Text and multimodal inputs. May contain only a prompt for text generation.
contents[].type
string
Yes
Required per item: prompt, first_frame, last_frame, refer_image, feature_video, base_video or element.
contents[].text
string
By type
Required for prompt items. 3.0 Omni: maximum 3072 characters (2500 recommended); O1: maximum 2500. Use @image_1 or @video_1 to reference IDs.
contents[].url
string
By type
Required for image/video items. Images accept URLs or Base64; videos use public URLs. feature_video supplies feature reference; base_video supplies the video to edit.
contents[].element_id
string
By type
Required for element items and must be accessible to the routed upstream account.
contents[].id
string
By type
Required for element items; optional for image/video items, but set it to reference them in prompts. Unique within a task.
Generation Settings
Field
Type
Required
Description
settings.resolution
string
No
Defaults to 720p. 3.0 Omni: 720p/1080p/4k; O1: 720p/1080p.
settings.duration
integer
No
Defaults to 5. 3.0 Omni: 3-15; O1: 3-10. O1 with only a first frame and no refer_image/video references supports only 5 or 10 seconds.
settings.aspect_ratio
string
By scenario
16:9 (default), 9:16 or 1:1; explicitly provide when there is neither a first frame nor a reference video.
settings.audio
string
No
Defaults to off. 3.0 Omni: native/original/off; O1: original/off. original preserves reference-video audio; 3.0 Omni cannot use native with video input.
settings.multi_shot
boolean
No
3.0 Omni only, defaults to true. Must be true with feature_video; set false for base_video editing, which does not support multi-shot. Omit for O1.
Input Combinations
Both models accept at most one video; base_video editing cannot include first/last frames.
Use only a first frame or first+last frames, never a last frame alone. O1 first+last mode cannot include reference images or Elements. O1 feature_video may include a first frame, not a last frame.
O1 supports multi-image Elements only: at most 7 reference images plus Elements without a video, or 4 with a video.
3.0 Omni without a video allows at most 7 reference images plus multi-image Elements. With video-character Elements, use at most 3 video-character Elements and at most 4 reference images plus multi-image Elements.
3.0 Omni with a video allows at most 4 reference images/multi-image Elements, or 1 video-character Element; do not combine a video-character Element with images/multi-image Elements in this case. First-frame/first+last-frame generation allows up to 3 Elements.
3.0 Omni feature_video requires audio=off. base_video uses off or original. Native audio is available only without video input.
Media Limits
Input
Limits
Images
JPG/JPEG/PNG, at most 50 MB; both dimensions at least 300 px, aspect ratio 1:2.5 to 2.5:1.
3.0 Omni video
MP4/MOV, at most 200 MB, 3-15.5 s; each dimension 700-4553 px, total area at most 8294400 pixels; aspect ratio 0.4-2, 24-60 fps.
O1 video
MP4/MOV, at most 200 MB, 3-10 s; each dimension 700-2160 px, 24-60 fps.
Storyboard Prompts
Only 3.0 Omni supports multi-shot generation. With settings.multi_shot enabled, use shot n, m, words;, separated by semicolons: 1-6 shots, at least one second per shot, durations adding up to settings.duration, and at most 512 characters per shot prompt. This mode is unavailable for base_video editing; do not send multi-shot parameters to O1. Use unique reference names that do not overlap with each other or unrelated prompt text.
Image Reference Example
Set the MIXROUTE_API_KEY environment variable. Replace example.com media URLs with real, publicly accessible files.
curl --request POST "https://api.mixroute.ai/kling/omni-video/kling-3.0-omni" \ --header "Authorization: Bearer $MIXROUTE_API_KEY" \ --header "Content-Type: application/json" \ --data '{ "contents": [ { "type": "prompt", "text": "The mug in @image_1 slowly rotates on a white tabletop. Soft studio lighting." }, { "type": "refer_image", "url": "https://example.com/reference.png", "id": "image_1" } ], "settings": { "resolution": "720p", "duration": 5, "aspect_ratio": "16:9", "audio": "native", "multi_shot": false }}'
O1 Video Editing Example
curl --request POST "https://api.mixroute.ai/kling/omni-video/kling-o1" \ --header "Authorization: Bearer $MIXROUTE_API_KEY" \ --header "Content-Type: application/json" \ --data '{ "contents": [ { "type": "prompt", "text": "Change the red mug in @video_1 to blue. Preserve the original motion and background." }, { "type": "base_video", "url": "https://example.com/source.mp4", "id": "video_1" } ], "settings": { "resolution": "720p", "duration": 5, "audio": "off" }}'
Keep data.id and use Query Kling Task until succeeded or failed. Successful submission does not mean generation has finished.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"MixRoute","colors":{"primary":"#7B1FA2","light":"#9C27B0","dark":"#7B1FA2"},"logo":{"light":"https://mintcdn.com/personal-a5418d9f/gmsYcyD3CEVDrHlx/logo/mixroute_logo_light.svg?fit=max\u0026auto=format\u0026n=gmsYcyD3CEVDrHlx\u0026q=85\u0026s=265a1a46d074895bd39b660678e01cd8","dark":"https://mintcdn.com/personal-a5418d9f/gmsYcyD3CEVDrHlx/logo/mixroute_logo_dark.svg?fit=max\u0026auto=format\u0026n=gmsYcyD3CEVDrHlx\u0026q=85\u0026s=98fd320a3e678bc64086c7d2f0dc84c1","href":"https://mixroute.ai/"},"favicon":"https://mintcdn.com/personal-a5418d9f/gmsYcyD3CEVDrHlx/mixroute.svg?fit=max\u0026auto=format\u0026n=gmsYcyD3CEVDrHlx\u0026q=85\u0026s=0f5f32b1b26993bc7cedaee3e45d2eb0","api":{"mdx":{"server":"https://api.mixroute.ai"}},"navbar":{"links":[],"primary":{"type":"button","label":"Get Started","href":"https://console.mixroute.ai"}},"footer":{"socials":{}},"seo":{"metatags":{"canonical":"https://mixroute.ai/docs"}},"integrations":{"gtm":{"tagId":"GTM-W54W5KHJ"}},"styling":{"latex":false},"navigation":{"languages":[{"language":"en","default":true,"href":"introduction"},{"language":"zh-Hans","href":"zh-Hans/introduction"},{"language":"zh-Hant","href":"zh-Hant/introduction"},{"language":"ja","href":"ja/introduction"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"personal-a5418d9f","hasAudioNarration":false,"actualSubdomain":"personal-a5418d9f","customDomains":["mixroute.ai"],"gitSource":{"type":"github","owner":"cherish-cherry","repo":"mixroute-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":false},"entitlements":{},"buildId":"6afd8488edadaaf94a62d4d9","clientVersion":"0.0.4205","searchFilterCounts":[{"language":"en","tag":"Home","count":263},{"language":"ja","tag":"ホーム","count":263},{"language":"zh-Hans","tag":"首页","count":263},{"language":"zh-Hant","tag":"首頁","count":263},{"language":"en","tag":"Model Introduction","count":245},{"language":"ja","tag":"モデル紹介","count":245},{"language":"zh-Hans","tag":"模型介绍","count":245},{"language":"zh-Hant","tag":"模型介紹","count":245},{"language":"en","tag":"OpenAI","count":58},{"language":"ja","tag":"OpenAI","count":58},{"language":"zh-Hans","tag":"OpenAI","count":58},{"language":"zh-Hant","tag":"OpenAI","count":58},{"language":"en","tag":"API Reference","count":44},{"language":"ja","tag":"APIリファレンス","count":44},{"language":"zh-Hans","tag":"API 手册","count":44},{"language":"zh-Hant","tag":"API 手冊","count":44},{"language":"en","tag":"Google","count":36},{"language":"ja","tag":"Google","count":36},{"language":"zh-Hans","tag":"Google","count":36},{"language":"zh-Hant","tag":"Google","count":36},{"language":"en","tag":"Alibaba","count":26},{"language":"ja","tag":"Alibaba","count":26},{"language":"zh-Hans","tag":"Alibaba","count":26},{"language":"zh-Hant","tag":"Alibaba","count":26},{"language":"en","tag":"Zhipu","count":24},{"language":"ja","tag":"Zhipu","count":24},{"language":"zh-Hans","tag":"Zhipu","count":24},{"language":"zh-Hant","tag":"Zhipu","count":24},{"language":"en","tag":"xAI","count":20},{"language":"ja","tag":"xAI","count":20},{"language":"zh-Hans","tag":"xAI","count":20},{"language":"zh-Hant","tag":"xAI","count":20},{"language":"en","tag":"Integrations","count":18},{"language":"ja","tag":"連携","count":18},{"language":"zh-Hans","tag":"开发工具 \u0026 平台","count":18},{"language":"zh-Hant","tag":"開發工具 \u0026 平台","count":18},{"language":"en","tag":"Anthropic","count":16},{"language":"ja","tag":"Anthropic","count":16},{"language":"zh-Hans","tag":"Anthropic","count":16},{"language":"zh-Hant","tag":"Anthropic","count":16}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"/docs","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"header img,#navbar img,[class*=\"logo\"] img,[class*=\"Logo\"] img,a[href=\"/\"] img,a[href=\"/cn\"] img,a[href=\"/en\"] img,a[href=\"/zh-Hant\"] img{max-height:32px!important;height:32px!important;width:auto!important}.card,[class*=\"Card\"]{position:relative!important;background-color:#f5f5f7!important;border:none!important;overflow:visible!important}.card::before,[class*=\"Card\"]::before{content:\"\";position:absolute;inset:-2px;border-radius:14px;z-index:-1;padding:2px;background:linear-gradient(135deg, #ff8a65 0%, #e91e63 35%, #9c27b0 70%, #673ab7 100%);-webkit-mask:linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);mask:linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask-composite:exclude}html.dark .card,html.dark [class*=\"Card\"],.dark .card,.dark [class*=\"Card\"],[data-theme=\"dark\"] .card,[data-theme=\"dark\"] [class*=\"Card\"]{background-color:#2d2d2d!important;color:#e5e5e5}html.dark .card::before,html.dark [class*=\"Card\"]::before,.dark .card::before,.dark [class*=\"Card\"]::before,[data-theme=\"dark\"] .card::before,[data-theme=\"dark\"] [class*=\"Card\"]::before{background:linear-gradient(135deg, #ff9a56 0%, #ff6b9d 35%, #c44dff 70%, #6b7aff 100%)}html.dark .card a,html.dark [class*=\"Card\"] a,.dark .card a,.dark [class*=\"Card\"] a,[data-theme=\"dark\"] .card a,[data-theme=\"dark\"] [class*=\"Card\"] a{color:#a78bfa}html.dark #content img[src=\"https://cdn.jsdelivr.net/npm/@lobehub/icons-static-svg@1.91.0/icons/openai.svg\"],html.dark #content img[src=\"https://cdn.jsdelivr.net/npm/@lobehub/icons-static-svg@1.91.0/icons/grok.svg\"]{filter:invert(1)}"}],"page":{"pagePath":"api-reference/endpoint/kling-omni-video","slug":"/api-reference/endpoint/kling-omni-video","pageMetadata":{"title":"Kling Omni Generation and Editing","sidebarTitle":"Omni Generation and Editing","description":"Image/video references and video editing with Kling 4.0, Kling 3.0 Omni and O1.","api":"POST /kling/omni-video/{model}","playground":"none","og:title":"Kling Omni Generation and Editing API Reference - MixRoute","href":"/api-reference/endpoint/kling-omni-video"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Image/video references and video editing with Kling 4.0, Kling 3.0 Omni and O1.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Note,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Authenticate with your MixRoute API Key using `,_jsx(_components.code,{children:`Authorization: Bearer $MIXROUTE_API_KEY`}),` and send JSON. The model ID belongs in the URL, not a body `,_jsx(_components.code,{children:`model`}),` field. Do not add `,_jsx(_components.code,{children:`/v1`}),` or wrap the request in `,_jsx(_components.code,{children:`metadata`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`supported-models`,children:`Supported Models`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Model ID`}),_jsx(_components.th,{children:`Resolution`}),_jsx(_components.th,{children:`Standard Generation Duration (s)`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.a,{href:`/model-api/kuaishou/kling-4.0`,children:`kling-4.0`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`720p / 1080p`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`3-30`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.a,{href:`/model-api/kuaishou/kling-3.0-omni`,children:`kling-3.0-omni`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`720p / 1080p / 4k`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`3-15`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.a,{href:`/model-api/kuaishou/kling-o1`,children:`kling-o1`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`720p / 1080p`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`3-10`})]})]})]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`For Kling 4.0, use the version-specific parameters and examples in `,_jsx(_components.a,{href:`/model-api/kuaishou/kling-4.0`,children:`Kling 4.0`}),`. The parameter/default/combination tables and examples below this note describe the older models, not 4.0.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`contents`,children:`Contents`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`contents`})}),_jsx(_components.td,{children:`object[]`}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{children:`Text and multimodal inputs. May contain only a prompt for text generation.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`contents[].type`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{children:`Required per item: prompt, first_frame, last_frame, refer_image, feature_video, base_video or element.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`contents[].text`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`By type`}),_jsx(_components.td,{children:`Required for prompt items. 3.0 Omni: maximum 3072 characters (2500 recommended); O1: maximum 2500. Use @image_1 or @video_1 to reference IDs.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`contents[].url`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`By type`}),_jsx(_components.td,{children:`Required for image/video items. Images accept URLs or Base64; videos use public URLs. feature_video supplies feature reference; base_video supplies the video to edit.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`contents[].element_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`By type`}),_jsx(_components.td,{children:`Required for element items and must be accessible to the routed upstream account.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`contents[].id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`By type`}),_jsx(_components.td,{children:`Required for element items; optional for image/video items, but set it to reference them in prompts. Unique within a task.`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`generation-settings`,children:`Generation Settings`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`settings.resolution`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`Defaults to 720p. 3.0 Omni: 720p/1080p/4k; O1: 720p/1080p.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`settings.duration`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`Defaults to 5. 3.0 Omni: 3-15; O1: 3-10. O1 with only a first frame and no refer_image/video references supports only 5 or 10 seconds.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`settings.aspect_ratio`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`By scenario`}),_jsx(_components.td,{children:`16:9 (default), 9:16 or 1:1; explicitly provide when there is neither a first frame nor a reference video.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`settings.audio`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`Defaults to off. 3.0 Omni: native/original/off; O1: original/off. original preserves reference-video audio; 3.0 Omni cannot use native with video input.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`settings.multi_shot`})}),_jsx(_components.td,{children:`boolean`}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`3.0 Omni only, defaults to true. Must be true with feature_video; set false for base_video editing, which does not support multi-shot. Omit for O1.`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`input-combinations`,children:`Input Combinations`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Both models accept at most one video; base_video editing cannot include first/last frames.`}),`\n`,_jsx(_components.li,{children:`Use only a first frame or first+last frames, never a last frame alone. O1 first+last mode cannot include reference images or Elements. O1 feature_video may include a first frame, not a last frame.`}),`\n`,_jsx(_components.li,{children:`O1 supports multi-image Elements only: at most 7 reference images plus Elements without a video, or 4 with a video.`}),`\n`,_jsx(_components.li,{children:`3.0 Omni without a video allows at most 7 reference images plus multi-image Elements. With video-character Elements, use at most 3 video-character Elements and at most 4 reference images plus multi-image Elements.`}),`\n`,_jsx(_components.li,{children:`3.0 Omni with a video allows at most 4 reference images/multi-image Elements, or 1 video-character Element; do not combine a video-character Element with images/multi-image Elements in this case. First-frame/first+last-frame generation allows up to 3 Elements.`}),`\n`,_jsx(_components.li,{children:`3.0 Omni feature_video requires audio=off. base_video uses off or original. Native audio is available only without video input.`}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`media-limits`,children:`Media Limits`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Input`}),_jsx(_components.th,{children:`Limits`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Images`}),_jsx(_components.td,{children:`JPG/JPEG/PNG, at most 50 MB; both dimensions at least 300 px, aspect ratio 1:2.5 to 2.5:1.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`3.0 Omni video`}),_jsx(_components.td,{children:`MP4/MOV, at most 200 MB, 3-15.5 s; each dimension 700-4553 px, total area at most 8294400 pixels; aspect ratio 0.4-2, 24-60 fps.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`O1 video`}),_jsx(_components.td,{children:`MP4/MOV, at most 200 MB, 3-10 s; each dimension 700-2160 px, 24-60 fps.`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`storyboard-prompts`,children:`Storyboard Prompts`}),`\n`,_jsxs(_components.p,{children:[`Only 3.0 Omni supports multi-shot generation. With `,_jsx(_components.code,{children:`settings.multi_shot`}),` enabled, use `,_jsx(_components.code,{children:`shot n, m, words;`}),`, separated by semicolons: 1-6 shots, at least one second per shot, durations adding up to `,_jsx(_components.code,{children:`settings.duration`}),`, and at most 512 characters per shot prompt. This mode is unavailable for `,_jsx(_components.code,{children:`base_video`}),` editing; do not send multi-shot parameters to O1. Use unique reference names that do not overlap with each other or unrelated prompt text.`]}),`\n`,_jsx(Heading,{level:`2`,id:`image-reference-example`,children:`Image Reference Example`}),`\n`,_jsxs(_components.p,{children:[`Set the `,_jsx(_components.code,{children:`MIXROUTE_API_KEY`}),` environment variable. Replace `,_jsx(_components.code,{children:`example.com`}),` media URLs with real, publicly accessible files.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`23`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`23`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --request`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api.mixroute.ai/kling/omni-video/kling-3.0-omni\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$MIXROUTE_API_KEY`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --data`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"contents\": [`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"type\": \"prompt\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"text\": \"The mug in @image_1 slowly rotates on a white tabletop. Soft studio lighting.\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"type\": \"refer_image\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"url\": \"https://example.com/reference.png\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"id\": \"image_1\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ],`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"settings\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"resolution\": \"720p\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"duration\": 5,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"aspect_ratio\": \"16:9\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"audio\": \"native\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"multi_shot\": false`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`}'`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`o1-video-editing-example`,children:`O1 Video Editing Example`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`21`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`21`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --request`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api.mixroute.ai/kling/omni-video/kling-o1\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$MIXROUTE_API_KEY`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --data`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"contents\": [`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"type\": \"prompt\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"text\": \"Change the red mug in @video_1 to blue. Preserve the original motion and background.\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"type\": \"base_video\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"url\": \"https://example.com/source.mp4\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"id\": \"video_1\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ],`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"settings\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"resolution\": \"720p\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"duration\": 5,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"audio\": \"off\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`}'`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`See `,_jsx(_components.a,{href:`/api-reference/endpoint/kling`,children:`Kling Overview`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`submission-response`,children:`Submission Response`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`9`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`9`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"request_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"REQUEST_ID\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"task_example\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"submitted\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Keep `,_jsx(_components.code,{children:`data.id`}),` and use `,_jsx(_components.a,{href:`/api-reference/endpoint/kling-tasks`,children:`Query Kling Task`}),` until `,_jsx(_components.code,{children:`succeeded`}),` or `,_jsx(_components.code,{children:`failed`}),`. Successful submission does not mean generation has finished.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Kling Omni Generation and Editing","sidebarTitle":"Omni Generation and Editing","description":"Image/video references and video editing with Kling 4.0, Kling 3.0 Omni and O1.","api":"POST /kling/omni-video/{model}","playground":"none","og:title":"Kling Omni Generation and Editing API Reference - MixRoute","href":"/api-reference/endpoint/kling-omni-video"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Supported Models","slug":"supported-models","depth":2,"children":[]},{"title":"Contents","slug":"contents","depth":2,"children":[]},{"title":"Generation Settings","slug":"generation-settings","depth":2,"children":[]},{"title":"Input Combinations","slug":"input-combinations","depth":2,"children":[]},{"title":"Media Limits","slug":"media-limits","depth":2,"children":[]},{"title":"Storyboard Prompts","slug":"storyboard-prompts","depth":2,"children":[]},{"title":"Image Reference Example","slug":"image-reference-example","depth":2,"children":[]},{"title":"O1 Video Editing Example","slug":"o1-video-editing-example","depth":2,"children":[]},{"title":"Submission Response","slug":"submission-response","depth":2,"children":[]}],"codeExamples":{},"endpoint":{"title":"Kling Omni Generation and Editing","path":"/kling/omni-video/{model}","servers":[{"url":"https://api.mixroute.ai"}],"method":"post","request":{"security":[],"parameters":{"query":{},"header":{},"cookie":{},"path":{}},"body":{}},"response":{},"deprecated":false}},"jsLinks":[],"subdomain":"personal-a5418d9f","siteName":"MixRoute","title":"Kling Omni Generation and Editing API Reference - MixRoute","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/api-reference/endpoint/kling-omni-video","matchLevel":0},"zh-Hans":{"href":"/zh-Hans/api-reference/endpoint/kling-omni-video","matchLevel":1},"zh-Hant":{"href":"/zh-Hant/api-reference/endpoint/kling-omni-video","matchLevel":1},"ja":{"href":"/ja/api-reference/endpoint/kling-omni-video","matchLevel":1}}},"lastModified":"2026-11-16T03:01:26.940Z","originalFileLocation":"api-reference/endpoint/kling-omni-video.mdx","locale":"en"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Image/video references and video editing with Kling 4.0, Kling 3.0 Omni and O1.\">\u003cmeta data-mint-head name=\"application-name\" content=\"MixRoute\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/personal-a5418d9f/dv2IYF4xw-oEMCIM/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/docs/mintlify-assets/_mintlify/favicons/personal-a5418d9f/dv2IYF4xw-oEMCIM/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/personal-a5418d9f/dv2IYF4xw-oEMCIM/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/personal-a5418d9f/dv2IYF4xw-oEMCIM/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/personal-a5418d9f/dv2IYF4xw-oEMCIM/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/personal-a5418d9f/dv2IYF4xw-oEMCIM/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/personal-a5418d9f/dv2IYF4xw-oEMCIM/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/personal-a5418d9f/dv2IYF4xw-oEMCIM/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/personal-a5418d9f/dv2IYF4xw-oEMCIM/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Kling Omni Generation and Editing API Reference - MixRoute\">\u003cmeta data-mint-head property=\"og:description\" content=\"Image/video references and video editing with Kling 4.0, Kling 3.0 Omni and O1.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"MixRoute\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://mixroute.ai/docs/api-reference/endpoint/kling-omni-video\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://personal-a5418d9f.mintlify.site/docs/_mintlify/api/og/v2?division=Kling\u0026amp;title=Kling+Omni+Generation+and+Editing\u0026amp;description=Image%2Fvideo+references+and+video+editing+with+Kling+4.0%2C+Kling+3.0+Omni+and+O1.\u0026amp;theme=4006ee24882b0e4bcca4d898\u0026amp;signature=73b72e19f52ceafce9ebe0c8cc2ce17d9c1d00d24a9237ffcc829a7c19b51853\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Kling Omni Generation and Editing API Reference - MixRoute\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Image/video references and video editing with Kling 4.0, Kling 3.0 Omni and O1.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://personal-a5418d9f.mintlify.site/docs/_mintlify/api/og/v2?division=Kling\u0026amp;title=Kling+Omni+Generation+and+Editing\u0026amp;description=Image%2Fvideo+references+and+video+editing+with+Kling+4.0%2C+Kling+3.0+Omni+and+O1.\u0026amp;theme=4006ee24882b0e4bcca4d898\u0026amp;signature=73b72e19f52ceafce9ebe0c8cc2ce17d9c1d00d24a9237ffcc829a7c19b51853\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/docs/mintlify-assets/_mintlify/favicons/personal-a5418d9f/dv2IYF4xw-oEMCIM/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"MixRoute\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#7B1FA2\">\u003clink data-mint-head rel=\"canonical\" href=\"https://mixroute.ai/docs/api-reference/endpoint/kling-omni-video\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/api-reference/endpoint/kling-omni-video.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://mixroute.ai/docs/api-reference/endpoint/kling-omni-video\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh-Hans\" href=\"https://mixroute.ai/docs/zh-Hans/api-reference/endpoint/kling-omni-video\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh-Hant\" href=\"https://mixroute.ai/docs/zh-Hant/api-reference/endpoint/kling-omni-video\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ja\" href=\"https://mixroute.ai/docs/ja/api-reference/endpoint/kling-omni-video\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://mixroute.ai/docs/api-reference/endpoint/kling-omni-video\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://mixroute.ai/#organization\",\"name\":\"MixRoute\",\"url\":\"https://mixroute.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/personal-a5418d9f/gmsYcyD3CEVDrHlx/logo/mixroute_logo_light.svg?fit=max\u0026auto=format\u0026n=gmsYcyD3CEVDrHlx\u0026q=85\u0026s=265a1a46d074895bd39b660678e01cd8\"}},{\"@type\":\"WebSite\",\"@id\":\"https://mixroute.ai/docs#website\",\"name\":\"MixRoute\",\"url\":\"https://mixroute.ai/docs\",\"publisher\":{\"@id\":\"https://mixroute.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://mixroute.ai/docs/api-reference/endpoint/kling-omni-video#webpage\",\"url\":\"https://mixroute.ai/docs/api-reference/endpoint/kling-omni-video\",\"name\":\"Kling Omni Generation and Editing\",\"description\":\"Image/video references and video editing with Kling 4.0, Kling 3.0 Omni and O1.\",\"dateModified\":\"2026-11-16T03:01:26.940Z\",\"isPartOf\":{\"@id\":\"https://mixroute.ai/docs#website\"},\"breadcrumb\":{\"@id\":\"https://mixroute.ai/docs/api-reference/endpoint/kling-omni-video#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://mixroute.ai/docs/api-reference/endpoint/kling-omni-video#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Video Series\",\"item\":\"https://mixroute.ai/docs/api-reference/endpoint/submit-video-task\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Kling\",\"item\":\"https://mixroute.ai/docs/api-reference/endpoint/kling\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Kling Omni Generation and Editing\",\"item\":\"https://mixroute.ai/docs/api-reference/endpoint/kling-omni-video\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://mixroute.ai/docs/api-reference/endpoint/kling-omni-video#apireference\",\"headline\":\"Kling Omni Generation and Editing\",\"name\":\"Kling Omni Generation and Editing\",\"description\":\"Image/video references and video editing with Kling 4.0, Kling 3.0 Omni and O1.\",\"url\":\"https://mixroute.ai/docs/api-reference/endpoint/kling-omni-video\",\"mainEntityOfPage\":{\"@id\":\"https://mixroute.ai/docs/api-reference/endpoint/kling-omni-video#webpage\"},\"dateModified\":\"2026-11-16T03:01:26.940Z\",\"publisher\":{\"@id\":\"https://mixroute.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://mixroute.ai/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"MixRoute\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"MixRoute\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/docs/api-reference/endpoint/kling-omni-video.md","siteName":"MixRoute","nav":{"global":null,"languages":[{"language":"en","default":true,"tabs":[{"tab":"Home","pages":[{"title":"Home","href":"/introduction"}]},{"tab":"API Reference","groups":[{"group":"Popular Models","pages":[{"title":"Popular Models","href":"/api-reference/models"}]},{"group":"OpenAI SDK Usage","pages":[{"title":"OpenAI SDK Usage","href":"/api-reference/openai-sdk"}]},{"group":"System API","icon":"server","pages":[{"title":"Authentication and Quota","sidebarTitle":"Authentication and Quota","icon":{"name":"shield-keyhole","library":"lucide"},"href":"/api-reference/system-api/authentication-and-quota"},{"title":"API Key Management","sidebarTitle":"API Key Management","icon":{"name":"key","library":"lucide"},"href":"/api-reference/system-api/api-key-management"},{"title":"Smart Routing API","sidebarTitle":"Smart Routing API","icon":{"name":"route","library":"lucide"},"href":"/api-reference/system-api/smart-routing"},{"title":"Billing and Auto-Recharge","sidebarTitle":"Billing and Auto-Recharge","icon":"https://d3gk2c5xim1je2.cloudfront.net/fontawesome/v7.2.0/solid/wallet.svg","href":"/api-reference/system-api/billing-and-auto-recharge"},{"title":"User Logs \u0026 Usage Statistics","icon":{"name":"book-open","library":"lucide"},"api":"GET /api/log/self","hideApiMarker":true,"href":"/api-reference/endpoint/user-logs"}]},{"group":"Text Series","pages":[{"title":"Gemini Native (Text)","api":"POST /v1beta/models/{model}:generateContent","sidebarTitle":"Gemini Text","href":"/api-reference/endpoint/gemini-native"},{"title":"Chat Completions (OpenAI)","api":"POST /v1/chat/completions","sidebarTitle":"Chat Completions","href":"/api-reference/endpoint/chat-openai"},{"title":"Create Responses Request (OpenAI)","api":"POST /v1/responses","sidebarTitle":"Responses","href":"/api-reference/endpoint/responses-openai"},{"title":"Create Messages (Claude)","api":"POST /v1/messages","sidebarTitle":"Claude Messages","href":"/api-reference/endpoint/messages"},{"title":"Count Tokens (Claude)","api":"POST /v1/messages/count_tokens","sidebarTitle":"Claude Token Count","href":"/api-reference/endpoint/count-tokens"},{"title":"Document Reranking","sidebarTitle":"Rerank","api":"POST /v1/rerank","playground":"none","hidden":false,"href":"/api-reference/endpoint/rerank"}]},{"group":"Decision Models","icon":"list-check","pages":[{"title":"Jev Decisions","sidebarTitle":"Jev Decisions","api":"POST /typesafe/v1/systemone","playground":"none","href":"/api-reference/endpoint/jev"},{"title":"OpenAI Decisions API","sidebarTitle":"OpenAI Decisions","api":"POST /v1/decisions","playground":"none","href":"/api-reference/endpoint/decisions"},{"title":"Google Decisions API","sidebarTitle":"Google Decisions","api":"POST /v1beta/decisions","playground":"none","href":"/api-reference/endpoint/google-decisions"}]},{"group":"Embedding Series","pages":[{"title":"Text Embeddings","api":"POST /v1/embeddings","sidebarTitle":"Text Embeddings","href":"/api-reference/endpoint/embeddings"},{"title":"Gemini Text Embedding (embedContent)","api":"POST /v1/models/{model}:embedContent","sidebarTitle":"Gemini Embeddings","href":"/api-reference/endpoint/gemini-embed-content"}]},{"group":"Image Series","pages":[{"title":"Image API Overview","api":"POST /v1/images/generations","sidebarTitle":"Overview","hideApiMarker":true,"playground":"none","href":"/api-reference/endpoint/image-generation"},{"title":"Seedream 5.5","sidebarTitle":"Seedream 5.5","api":"POST /v1/images/generations","playground":"none","href":"/api-reference/endpoint/seedream"},{"title":"GPT Image","sidebarTitle":"GPT Image","api":"POST /v1/images/generations","playground":"none","href":"/api-reference/endpoint/gpt-image"},{"title":"GPT Image Editing","sidebarTitle":"GPT Image Editing","api":"POST /v1/images/edits","playground":"none","href":"/api-reference/endpoint/gpt-image-edit"},{"title":"Grok Imagine","sidebarTitle":"Grok Imagine","api":"POST /v1/images/generations","playground":"none","href":"/api-reference/endpoint/grok-imagine-image"},{"title":"Grok Imagine Editing","sidebarTitle":"Grok Imagine Editing","api":"POST /v1/images/edits","playground":"none","href":"/api-reference/endpoint/grok-imagine-edit"},{"title":"Qwen Image","sidebarTitle":"Qwen Image","api":"POST /v1/images/generations","playground":"none","href":"/api-reference/endpoint/qwen-image"},{"title":"Qwen Image Editing","sidebarTitle":"Qwen Image Editing","api":"POST /v1/images/generations","playground":"none","href":"/api-reference/endpoint/qwen-image-edit"},{"title":"Gemini Native (Image)","api":"POST /v1/models/{model}:generateContent","sidebarTitle":"Gemini Images","playground":"none","href":"/api-reference/endpoint/nano-banana"},{"title":"Gemini Native (Image, Streaming)","api":"POST /v1/models/{model}:streamGenerateContent","sidebarTitle":"Gemini Image Stream","playground":"none","href":"/api-reference/endpoint/nano-banana-stream"}]},{"group":"Video Series","pages":[{"title":"Video API Overview","api":"POST /v1/video/generations","sidebarTitle":"Overview","hideApiMarker":true,"href":"/api-reference/endpoint/submit-video-task"},{"title":"Seedance","sidebarTitle":"Seedance","api":"POST /v1/video/generations","playground":"none","href":"/api-reference/endpoint/seedance"},{"title":"Doubao","sidebarTitle":"Doubao","api":"POST /v1/video/generations","playground":"none","href":"/api-reference/endpoint/doubao"},{"title":"Dreamina","sidebarTitle":"Dreamina","api":"POST /v1/video/generations","playground":"none","href":"/api-reference/endpoint/dreamina"},{"title":"Wan","sidebarTitle":"Wan","api":"POST /v1/video/generations","playground":"none","href":"/api-reference/endpoint/wan"},{"title":"Veo","api":"POST /v1/video/generations","sidebarTitle":"Veo","playground":"none","href":"/api-reference/endpoint/veo"},{"title":"MiniMax H3","sidebarTitle":"MiniMax H3","api":"POST /v1/video/generations","playground":"none","href":"/api-reference/endpoint/minimax-h3"},{"group":"Kling","icon":"film","pages":[{"title":"Kling Overview","sidebarTitle":"Overview","href":"/api-reference/endpoint/kling"},{"title":"Kling Text to Video","sidebarTitle":"Text to Video","api":"POST /kling/text-to-video/{model}","playground":"none","href":"/api-reference/endpoint/kling-text-to-video"},{"title":"Kling Image to Video","sidebarTitle":"Image to Video","description":"Kling first-frame, first/last-frame, Element and voice inputs.","api":"POST /kling/image-to-video/{model}","playground":"none","href":"/api-reference/endpoint/kling-image-to-video"},{"title":"Kling Omni Generation and Editing","sidebarTitle":"Omni Generation and Editing","api":"POST /kling/omni-video/{model}","playground":"none","href":"/api-reference/endpoint/kling-omni-video"},{"title":"Kling Motion Control","sidebarTitle":"Motion Control","description":"Generate Kling videos from a character image and motion-reference video.","api":"POST /kling/motion-control/{model}","playground":"none","href":"/api-reference/endpoint/kling-motion-control"},{"title":"Query Kling Task","sidebarTitle":"Query Kling Task","api":"GET /kling/tasks","playground":"none","href":"/api-reference/endpoint/kling-tasks"}]},{"title":"Query Video Task","api":"GET /v1/video/generations/{task_id}","href":"/api-reference/endpoint/query-video-task"},{"title":"Download Video","api":"GET /v1/video/generations/download","href":"/api-reference/endpoint/download-video"}]},{"group":"Others","pages":[{"title":"List Models","api":"GET /v1/models","href":"/api-reference/endpoint/list-models"},{"title":"Gemini Live","api":"WSS /v1beta/models/{model}/liveStream","hidden":true,"href":"/api-reference/endpoint/gemini-live"}]}]},{"tab":"Smart Routing","pages":[{"title":"Smart Routing","href":"/api-reference/smart-routing"}]},{"tab":"Integrations","pages":[{"title":"Integrations","href":"/integrations/lobehub"}]},{"tab":"FAQ","pages":[{"title":"FAQ","href":"/faq/model-changing"}]}]},{"language":"zh-Hans","pages":[{"title":"zh-Hans","href":"/zh-Hans/api-reference/endpoint/kling-omni-video"}]},{"language":"zh-Hant","pages":[{"title":"zh-Hant","href":"/zh-Hant/api-reference/endpoint/kling-omni-video"}]},{"language":"ja","pages":[{"title":"ja","href":"/ja/api-reference/endpoint/kling-omni-video"}]}]},"basePath":"","title":"Kling Omni Generation and Editing API Reference - MixRoute","deploymentId":"dpl_J2QdBVuN65x4CCtpqPb371YPt4xi","buildId":"dpl_J2QdBVuN65x4CCtpqPb371YPt4xi","dynamics":["c2aa737661","2b790eda92","b0f84f53ff"],"chunks":["OpenApiReferenceProvider-tiVafkWW.js","utils-CURQcKis.js","cloneDeep-D7WNbvHt.js","_Uint8Array-BY_XlfVz.js","isObject-FP1Yky1u.js","utils-CdFTKPRO.js","addUniqueKeysToSchema-BSfwE63N.js","snippetPresets-BHyg8yZ0.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-CQdVXSju.js","isEqual-ft5OxoSH.js","usePlaygroundInputsStore-BILH4rrw.js","shallow-DterCiSU.js","getApiPlaygroundDisplay-uFtORr6j.js","CodeSnippet-BeuhEvUS.js","CodeSnippets-laCoJsvn.js","Page-CTsmHnLF.js","getPastedJson-DOT1n5Lt.js","icon-COH-nmcZ.js","MethodPill-BbAWkCf6.js","DuplicateIcon-CpagiAFQ.js","createIcon-Bw2Dnowf.js","DynamicMarkdown-DzuINhDe.js","SectionHeading-B3H20qI6.js","axios-vUo_bRtp.js"]}