Kling 2.6 Legacy APIs for text to video, image to video, motion control, and voice management.
This page groups Kling 2.6 creation, query, and management operations by capability. Each request and response example is aligned with its related fields.
Up to two voices. Each item contains a voice_id returned by Voice management. Reference them as <<<voice_1>>> and <<<voice_2>>> in list order, and set sound to on.
camera_control.type supports simple, down_back, forward_up, right_turn_forward, and left_turn_forward. In simple mode, set one nonzero property in config: horizontal, vertical, pan, tilt, roll, or zoom. Each property ranges from -10 to 10.
Use a public URL or raw Base64 without a data URI prefix. JPG, JPEG, and PNG are supported. Files must be no larger than 10 MB, both sides at least 300 px, and the aspect ratio between 1:2.5 and 2.5:1. End-frame control, motion brush, and camera control cannot be used together.
Images support JPG/JPEG/PNG up to 10 MB, 300–65,536 px per side, and aspect ratio 1:2.5 to 2.5:1. Videos support MP4/MOV up to 100 MB, 340–3,850 px per side, and at least 3 seconds. Maximum duration is 10 seconds for character_orientation: "image" and 30 seconds for character_orientation: "video".
Custom voices return self; current preset voices return vod.
This page uses the Kling Legacy request structure. AnyFast adds the /kling routing prefix to Legacy paths.
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"AnyFast","description":"AnyFast API documentation — unified access to AI models from Anthropic, ByteDance, OpenAI, and more.","colors":{"primary":"#16A34A","light":"#07C983","dark":"#15803D"},"logo":{"light":"https://mintcdn.com/13108701256/ciuuPfOYrnV5Potx/logo/light.svg?fit=max\u0026auto=format\u0026n=ciuuPfOYrnV5Potx\u0026q=85\u0026s=d039b2f183e8089b2cc5486b02a15058","dark":"https://mintcdn.com/13108701256/ciuuPfOYrnV5Potx/logo/dark.svg?fit=max\u0026auto=format\u0026n=ciuuPfOYrnV5Potx\u0026q=85\u0026s=bb8bdb7b071484bc98779f14f23000e0","href":"https://www.anyfast.ai"},"favicon":"https://mintcdn.com/13108701256/ciuuPfOYrnV5Potx/favicon.svg?fit=max\u0026auto=format\u0026n=ciuuPfOYrnV5Potx\u0026q=85\u0026s=bb57081a959cb46f2fd60906102179ce","navbar":{"links":[],"primary":{"type":"button","label":"Dashboard","href":"https://www.anyfast.ai/console/token"}},"footer":{"socials":{}},"search":{"prompt":"Search docs, APIs, models..."},"seo":{"metatags":{"og:image":"https://docs.anyfast.ai/images/layfz/social-media-cover.jpg","og:site_name":"AnyFast Docs","twitter:card":"summary_large_image","twitter:site":"@anyfast_ai","twitter:image":"https://docs.anyfast.ai/images/layfz/social-media-cover.jpg"}},"integrations":{"ga4":{"measurementId":"G-LE1QQD03ZG"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"metadata":{"timestamp":false},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Documentation","icon":"book-open-cover","href":"https://docs.anyfast.ai"}]},"languages":[{"language":"en","default":true,"href":""},{"language":"zh","href":"zh"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"13108701256","hasAudioNarration":false,"actualSubdomain":"13108701256","customDomains":["docs.anyfast.ai"],"gitSource":{"type":"gitlab","owner":"maas","repo":"docs-anyfast","hostUrl":"https://gitlab.anyfast.com.cn","projectId":39,"deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ad6d705e5eb6b87383e1430","collectionId":"f88587d1-976d-49f7-8ff8-2b0b09468f56","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ad6d705e5eb6b87383e1430"},"feedback":{"thumbs":true},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6ad791d5c38edc35c7b911c9","clientVersion":"0.0.3894","searchFilterCounts":[{"language":"en","tag":"Model Introduction","count":374},{"language":"zh","tag":"模型介绍","count":374},{"language":"en","tag":"API Reference","count":191},{"language":"zh","tag":"API 参考","count":191},{"language":"en","tag":"Model APIs","count":184},{"language":"zh","tag":"模型 API","count":184},{"language":"en","tag":"OpenAI","count":80},{"language":"zh","tag":"OpenAI","count":80},{"language":"en","tag":"Alibaba","count":54},{"language":"en","tag":"ByteDance","count":54},{"language":"en","tag":"Google","count":54},{"language":"zh","tag":"Alibaba","count":54},{"language":"zh","tag":"ByteDance","count":54},{"language":"zh","tag":"Google","count":54},{"language":"en","tag":"Anthropic","count":49},{"language":"zh","tag":"Anthropic","count":49},{"language":"en","tag":"Use Cases","count":38},{"language":"zh","tag":"场景示例","count":38},{"language":"en","tag":"Text \u0026 multimodal","count":32},{"language":"zh","tag":"文本与多模态","count":32}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","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":"editor-v7-file-tree","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":"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":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"pause-universal-search-reconcile","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":"per-site-search-delta","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":"editor-branches-v2-autocommit","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-branches-v2","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":"editor-private-page-search","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":"teamspace","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":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-nav-generations","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":"byok-sep-25","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":"editor-agent-model-picker","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"client-snapshot-docs-config","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}],"isAtlas":false,"googleFontsInlined":false},"customCss":[{"filePath":"global.css","content":":root{font-size:17px;zoom:80%}.bg-primary\\/10,.dark .dark\\:bg-primary-light\\/10{background-color:transparent!important}#search-bar-entry{border:2px solid rgba(22,163,74,.55)!important}#search-bar-entry:focus-visible,#search-bar-entry:hover{border-color:#16a34a!important}#sidebar .method-nav-pill{display:none!important}#sidebar a[href*=\"/api-reference/model-api/\"]>div:has(>.method-nav-pill){display:none!important}.kling-api-example-panel{float:right;position:relative;top:auto;width:47%;margin:1.5rem 0 1.5rem 2rem;z-index:1}.kling-api-example-panel>div{margin-top:0;margin-bottom:1rem}.kling-api-example-panel.api-full-width-example-panel{float:none;position:static;width:100%;margin:1rem 0 1.5rem;clear:both}.happyhorse-api-example-panel,.seedream-api-example-panel,.wan-api-example-panel{display:block;position:relative;top:auto;width:60%;margin-top:1.5rem;margin-bottom:1.5rem;margin-left:1.25rem;clear:right}.seedream-api-example-panel+.seedream-api-example-panel{margin-top:2.5rem}.happyhorse-api-example-panel pre,.seedream-api-example-panel pre,.wan-api-example-panel pre{overflow-x:auto;overflow-y:hidden;overflow-wrap:normal;white-space:pre!important;word-break:normal}.happyhorse-api-example-panel .whitespace-pre,.seedream-api-example-panel .whitespace-pre,.wan-api-example-panel .whitespace-pre{overflow-wrap:normal;white-space:pre!important;word-break:normal}.happyhorse-api-example-panel pre code,.seedream-api-example-panel pre code,.wan-api-example-panel pre code{max-width:none!important;min-width:max-content!important;width:max-content!important}@media (min-width:1280px){#navbar .max-w-8xl.mx-auto.relative{width:100%!important;max-width:none!important;margin-left:0!important;margin-right:0!important}div:has(>main#content-container){width:100%!important;max-width:none!important;margin-left:0!important;margin-right:0!important;padding-left:2rem!important;padding-right:1.5rem!important}#sidebar{width:16rem!important;min-width:16rem!important;max-width:16rem!important}#content{width:100%!important}#content-side-layout{width:9rem!important;min-width:9rem!important;max-width:9rem!important;transform:none}#content-side-layout:has(.code-group){width:28rem!important;min-width:28rem!important;max-width:28rem!important}#table-of-contents-layout{width:9rem!important;min-width:9rem!important;max-width:9rem!important;padding-left:0!important;transform:none}#table-of-contents{width:9rem!important}.kling-api-example-panel{width:51%;margin-left:2rem}}@media (max-width:1400px){.happyhorse-api-example-panel,.seedream-api-example-panel,.wan-api-example-panel{float:none;position:static;width:100%;margin:1rem 0 1.5rem}}@media (max-width:1024px){.kling-api-example-panel{float:none;position:static;width:100%;margin:1rem 0 1.5rem}.happyhorse-api-example-panel,.seedream-api-example-panel,.wan-api-example-panel{width:100%}}"}],"page":{"pagePath":"api-reference/model-api/kuaishou/kling-v2-6","slug":"/api-reference/model-api/kuaishou/kling-v2-6","pageMetadata":{"title":"kling-v2-6","description":"Kling 2.6 Legacy APIs for text to video, image to video, motion control, and voice management.","href":"/api-reference/model-api/kuaishou/kling-v2-6"},"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: \"Kling 2.6 Legacy APIs for text to video, image to video, motion control, and voice management.\"\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={code:`code`,p:`p`,pre:`pre`,span:`span`,..._provideComponents(),...props.components},{CodeBlock,Heading,Note,ParamField,ResponseField,Tab,Tabs,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);if(!Tab)_missingMdxReference(`Tab`,true);if(!Tabs)_missingMdxReference(`Tabs`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`This page groups Kling 2.6 creation, query, and management operations by capability. Each request and response example is aligned with its related fields.`}),`\n`,_jsxs(Tabs,{sync:false,children:[_jsxs(Tab,{title:`Text to video`,id:`text-to-video`,\"data-child-heading-ids\":`[\"create-task\",\"request-headers\",\"request-body\",\"camera-control\",\"create-response\",\"query-task-by-id\",\"request-headers-2\",\"path-parameters\",\"task-result\"]`,children:[_jsx(Heading,{level:`2`,id:`create-task`,children:`Create task`}),_jsx(_components.p,{children:_jsx(_components.code,{children:`POST /kling/v1/videos/text2video`})}),_jsx(`div`,{className:`kling-api-example-panel`,children:_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`14`,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:`14`,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:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --url`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://www.anyfast.ai/kling/v1/videos/text2video`}),_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 YOUR_API_KEY'`}),_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:` \"model_name\": \"kling-2.6\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"prompt\": \"A corgi runs along a beach at sunset as waves cross the sand\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"negative_prompt\": \"blurry, shaky\",`})}),`\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:` \"mode\": \"pro\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"sound\": \"on\",`})}),`\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:` \"watermark_info\": {\"enabled\": false}`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})})}),_jsx(Heading,{level:`2`,id:`request-headers`,children:`Request headers`}),_jsxs(ParamField,{header:`Authorization`,type:`string`,required:true,id:`param-authorization`,children:[`Bearer authentication in the form `,_jsx(_components.code,{children:`Bearer YOUR_API_KEY`}),`.`]}),_jsxs(ParamField,{header:`Content-Type`,type:`string`,default:`application/json`,required:true,id:`param-content-type`,children:[`Data exchange format. Use `,_jsx(_components.code,{children:`application/json`}),`.`]}),_jsx(Heading,{level:`2`,id:`request-body`,children:`Request body`}),_jsxs(ParamField,{body:`model_name`,type:`string`,required:true,id:`param-model-name`,children:[`Must be `,_jsx(_components.code,{children:`kling-2.6`}),`.`]}),_jsx(ParamField,{body:`prompt`,type:`string`,required:true,id:`param-prompt`,children:`Positive prompt, up to 2,500 characters.`}),_jsx(ParamField,{body:`negative_prompt`,type:`string`,id:`param-negative-prompt`,children:`Content to avoid, up to 2,500 characters.`}),_jsxs(ParamField,{body:`voice_list`,type:`object[]`,id:`param-voice-list`,children:[`Up to two voices. Each item contains a `,_jsx(_components.code,{children:`voice_id`}),` returned by Voice management. Reference them as `,_jsx(_components.code,{children:`\u003c\u003c\u003cvoice_1>>>`}),` and `,_jsx(_components.code,{children:`\u003c\u003c\u003cvoice_2>>>`}),` in list order, and set `,_jsx(_components.code,{children:`sound`}),` to `,_jsx(_components.code,{children:`on`}),`.`]}),_jsxs(ParamField,{body:`sound`,type:`string`,default:`off`,id:`param-sound`,children:[_jsx(_components.code,{children:`on`}),` or `,_jsx(_components.code,{children:`off`}),`. Must be `,_jsx(_components.code,{children:`on`}),` when `,_jsx(_components.code,{children:`voice_list`}),` is used.`]}),_jsxs(ParamField,{body:`mode`,type:`string`,default:`std`,id:`param-mode`,children:[_jsx(_components.code,{children:`std`}),` for 720p or `,_jsx(_components.code,{children:`pro`}),` for 1080p.`]}),_jsxs(ParamField,{body:`duration`,type:`string`,default:`5`,id:`param-duration`,children:[`Fixed duration: `,_jsx(_components.code,{children:`5`}),` or `,_jsx(_components.code,{children:`10`}),` seconds.`]}),_jsxs(ParamField,{body:`aspect_ratio`,type:`string`,default:`16:9`,id:`param-aspect-ratio`,children:[_jsx(_components.code,{children:`16:9`}),`, `,_jsx(_components.code,{children:`9:16`}),`, or `,_jsx(_components.code,{children:`1:1`}),`.`]}),_jsx(ParamField,{body:`camera_control`,type:`object`,id:`param-camera-control`,children:`Preset or custom camera movement.`}),_jsxs(ParamField,{body:`watermark_info`,type:`object`,id:`param-watermark-info`,children:[`Use `,_jsx(_components.code,{children:`enabled`}),` to request an additional watermarked result.`]}),_jsx(Heading,{level:`3`,id:`camera-control`,children:`Camera control`}),_jsxs(_components.p,{children:[_jsx(_components.code,{children:`camera_control.type`}),` supports `,_jsx(_components.code,{children:`simple`}),`, `,_jsx(_components.code,{children:`down_back`}),`, `,_jsx(_components.code,{children:`forward_up`}),`, `,_jsx(_components.code,{children:`right_turn_forward`}),`, and `,_jsx(_components.code,{children:`left_turn_forward`}),`. In `,_jsx(_components.code,{children:`simple`}),` mode, set one nonzero property in `,_jsx(_components.code,{children:`config`}),`: `,_jsx(_components.code,{children:`horizontal`}),`, `,_jsx(_components.code,{children:`vertical`}),`, `,_jsx(_components.code,{children:`pan`}),`, `,_jsx(_components.code,{children:`tilt`}),`, `,_jsx(_components.code,{children:`roll`}),`, or `,_jsx(_components.code,{children:`zoom`}),`. Each property ranges from -10 to 10.`]}),_jsx(Heading,{level:`2`,id:`create-response`,children:`Create response`}),_jsx(`div`,{className:`kling-api-example-panel`,children:_jsx(CodeBlock,{filename:`200`,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:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"860260753860210752\"`}),_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:` \"task_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"860260753860210752\"`}),_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:` \"object\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"video\"`}),_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:` \"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"kling-v2-6\"`}),_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:`\"queued\"`}),_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:` \"progress\"`}),_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:` \"created_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1773130665`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})}),_jsx(ResponseField,{name:`id`,type:`string`,id:`param-id`,children:`AnyFast task ID.`}),_jsxs(ResponseField,{name:`task_id`,type:`string`,id:`param-task-id`,children:[`Task ID, equal to `,_jsx(_components.code,{children:`id`}),`.`]}),_jsxs(ResponseField,{name:`object`,type:`string`,id:`param-object`,children:[`Object type, always `,_jsx(_components.code,{children:`video`}),`.`]}),_jsx(ResponseField,{name:`model`,type:`string`,id:`param-model`,children:`Public model ID used for the task.`}),_jsxs(ResponseField,{name:`status`,type:`string`,id:`param-status`,children:[`Initial status, always `,_jsx(_components.code,{children:`queued`}),`.`]}),_jsxs(ResponseField,{name:`progress`,type:`integer`,id:`param-progress`,children:[`Initial progress, always `,_jsx(_components.code,{children:`0`}),`.`]}),_jsx(ResponseField,{name:`created_at`,type:`integer`,id:`param-created-at`,children:`Creation time as a Unix timestamp in seconds.`}),_jsx(Heading,{level:`2`,id:`query-task-by-id`,children:`Query task by ID`}),_jsx(_components.p,{children:_jsx(_components.code,{children:`GET /kling/v1/videos/text2video/{task_id}`})}),_jsx(`div`,{className:`kling-api-example-panel`,children:_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`4`,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:`4`,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:` GET`}),_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:` --url`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://www.anyfast.ai/kling/v1/videos/text2video/TASK_ID`}),_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 YOUR_API_KEY'`}),_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'`})]}),`\n`]})})})}),_jsx(Heading,{level:`3`,id:`request-headers-2`,children:`Request headers`}),_jsxs(ParamField,{header:`Authorization`,type:`string`,required:true,id:`param-authorization-1`,children:[`Bearer authentication in the form `,_jsx(_components.code,{children:`Bearer YOUR_API_KEY`}),`.`]}),_jsxs(ParamField,{header:`Content-Type`,type:`string`,default:`application/json`,required:true,id:`param-content-type-1`,children:[`Data exchange format. Use `,_jsx(_components.code,{children:`application/json`}),`.`]}),_jsx(Heading,{level:`3`,id:`path-parameters`,children:`Path parameters`}),_jsx(ParamField,{path:`task_id`,type:`string`,required:true,id:`param-task-id-1`,children:`The text-to-video task ID returned by the create endpoint.`}),_jsx(Heading,{level:`2`,id:`task-result`,children:`Task result`}),_jsx(`div`,{className:`kling-api-example-panel`,children:_jsx(CodeBlock,{filename:`200`,numberOfLines:`15`,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:`15`,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:` \"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:` \"task_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"asyntask_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\"`}),_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:` \"task_status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"succeed\"`}),_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:` \"task_result\"`}),_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:` \"videos\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://example.com/result.mp4\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"duration\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"5\"`}),_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`,_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:` \"created_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1784720890000`}),_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:` \"updated_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1784720949000`})]}),`\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`]})})})}),_jsxs(ResponseField,{name:`code`,type:`integer`,id:`param-code`,children:[_jsx(_components.code,{children:`0`}),` indicates that the query succeeded.`]}),_jsx(ResponseField,{name:`message`,type:`string`,id:`param-message`,children:`Error information; empty for a successful query.`}),_jsx(ResponseField,{name:`data.task_id`,type:`string`,id:`param-data-task-id`,children:`Queried task ID.`}),_jsxs(ResponseField,{name:`data.task_status`,type:`string`,id:`param-data-task-status`,children:[_jsx(_components.code,{children:`submitted`}),`, `,_jsx(_components.code,{children:`processing`}),`, `,_jsx(_components.code,{children:`succeed`}),`, or `,_jsx(_components.code,{children:`failed`}),`.`]}),_jsx(ResponseField,{name:`data.task_status_msg`,type:`string`,id:`param-data-task-status-msg`,children:`Failure details when the task fails.`}),_jsx(ResponseField,{name:`data.task_result.videos`,type:`object[]`,id:`param-data-task-result-videos`,children:`Generated videos, returned after success.`}),_jsx(ResponseField,{name:`data.task_result.videos[].url`,type:`string`,id:`param-data-task-result-videos-url`,children:`Temporary generated-video URL.`}),_jsx(ResponseField,{name:`data.task_result.videos[].duration`,type:`string`,id:`param-data-task-result-videos-duration`,children:`Actual duration in seconds.`}),_jsx(ResponseField,{name:`data.created_at`,type:`integer`,id:`param-data-created-at`,children:`Creation Unix timestamp in milliseconds.`}),_jsx(ResponseField,{name:`data.updated_at`,type:`integer`,id:`param-data-updated-at`,children:`Last update Unix timestamp in milliseconds.`}),_jsx(Warning,{children:`Generated result URLs are removed after 30 days. Save the files promptly.`})]}),_jsxs(Tab,{title:`Image to video`,id:`image-to-video`,\"data-child-heading-ids\":`[\"create-task-2\",\"request-headers-3\",\"request-body-2\",\"image-requirements\",\"create-response-2\",\"query-task-by-id-2\",\"request-headers-4\",\"path-parameters-2\",\"task-result-2\"]`,children:[_jsx(Heading,{level:`2`,id:`create-task-2`,children:`Create task`}),_jsx(_components.p,{children:_jsx(_components.code,{children:`POST /kling/v1/videos/image2video`})}),_jsx(`div`,{className:`kling-api-example-panel`,children:_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`13`,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:`13`,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:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --url`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://www.anyfast.ai/kling/v1/videos/image2video`}),_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 YOUR_API_KEY'`}),_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:` \"model_name\": \"kling-2.6\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"image\": \"https://example.com/first-frame.png\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"image_tail\": \"https://example.com/end-frame.png\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"prompt\": \"The camera slowly pulls back as the person smiles\",`})}),`\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:` \"mode\": \"pro\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"sound\": \"off\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})})}),_jsx(Heading,{level:`2`,id:`request-headers-3`,children:`Request headers`}),_jsxs(ParamField,{header:`Authorization`,type:`string`,required:true,id:`param-authorization-2`,children:[`Bearer authentication in the form `,_jsx(_components.code,{children:`Bearer YOUR_API_KEY`}),`.`]}),_jsxs(ParamField,{header:`Content-Type`,type:`string`,default:`application/json`,required:true,id:`param-content-type-2`,children:[`Data exchange format. Use `,_jsx(_components.code,{children:`application/json`}),`.`]}),_jsx(Heading,{level:`2`,id:`request-body-2`,children:`Request body`}),_jsxs(ParamField,{body:`model_name`,type:`string`,required:true,id:`param-model-name-1`,children:[`Must be `,_jsx(_components.code,{children:`kling-2.6`}),`.`]}),_jsxs(ParamField,{body:`image`,type:`string`,id:`param-image`,children:[`Start-frame URL or raw Base64. At least one of `,_jsx(_components.code,{children:`image`}),` and `,_jsx(_components.code,{children:`image_tail`}),` is required.`]}),_jsxs(ParamField,{body:`image_tail`,type:`string`,id:`param-image-tail`,children:[`End frame. It cannot be combined with `,_jsx(_components.code,{children:`dynamic_masks`}),`, `,_jsx(_components.code,{children:`static_mask`}),`, or `,_jsx(_components.code,{children:`camera_control`}),`.`]}),_jsx(ParamField,{body:`prompt`,type:`string`,id:`param-prompt-1`,children:`Positive prompt, up to 2,500 characters.`}),_jsx(ParamField,{body:`negative_prompt`,type:`string`,id:`param-negative-prompt-1`,children:`Negative prompt, up to 2,500 characters.`}),_jsxs(ParamField,{body:`voice_list`,type:`object[]`,id:`param-voice-list-1`,children:[`Up to two items containing `,_jsx(_components.code,{children:`voice_id`}),`; set `,_jsx(_components.code,{children:`sound`}),` to `,_jsx(_components.code,{children:`on`}),` when used.`]}),_jsxs(ParamField,{body:`sound`,type:`string`,default:`off`,id:`param-sound-1`,children:[_jsx(_components.code,{children:`on`}),` or `,_jsx(_components.code,{children:`off`}),`.`]}),_jsxs(ParamField,{body:`mode`,type:`string`,default:`std`,id:`param-mode-1`,children:[_jsx(_components.code,{children:`std`}),` for 720p or `,_jsx(_components.code,{children:`pro`}),` for 1080p.`]}),_jsxs(ParamField,{body:`duration`,type:`string`,default:`5`,id:`param-duration-1`,children:[_jsx(_components.code,{children:`5`}),` or `,_jsx(_components.code,{children:`10`}),` seconds.`]}),_jsx(ParamField,{body:`static_mask`,type:`string`,id:`param-static-mask`,children:`Static motion mask as a URL or raw Base64.`}),_jsx(ParamField,{body:`dynamic_masks`,type:`object[]`,id:`param-dynamic-masks`,children:`Up to six dynamic motion-brush masks.`}),_jsx(ParamField,{body:`dynamic_masks[].mask`,type:`string`,required:true,id:`param-dynamic-masks-mask`,children:`A dynamic-area mask matching the input image dimensions.`}),_jsx(ParamField,{body:`dynamic_masks[].trajectories`,type:`object[]`,required:true,id:`param-dynamic-masks-trajectories`,children:`Trajectory coordinates. A 5-second video accepts 2–77 points.`}),_jsx(ParamField,{body:`dynamic_masks[].trajectories[].x`,type:`integer`,required:true,id:`param-dynamic-masks-trajectories-x`,children:`X coordinate, using the image bottom-left corner as the origin.`}),_jsx(ParamField,{body:`dynamic_masks[].trajectories[].y`,type:`integer`,required:true,id:`param-dynamic-masks-trajectories-y`,children:`Y coordinate, using the image bottom-left corner as the origin.`}),_jsx(ParamField,{body:`camera_control`,type:`object`,id:`param-camera-control-1`,children:`Preset or custom camera movement.`}),_jsxs(ParamField,{body:`watermark_info`,type:`object`,id:`param-watermark-info-1`,children:[`Use `,_jsx(_components.code,{children:`enabled`}),` to request an additional watermarked result.`]}),_jsx(Heading,{level:`3`,id:`image-requirements`,children:`Image requirements`}),_jsx(_components.p,{children:`Use a public URL or raw Base64 without a data URI prefix. JPG, JPEG, and PNG are supported. Files must be no larger than 10 MB, both sides at least 300 px, and the aspect ratio between 1:2.5 and 2.5:1. End-frame control, motion brush, and camera control cannot be used together.`}),_jsx(Heading,{level:`2`,id:`create-response-2`,children:`Create response`}),_jsx(`div`,{className:`kling-api-example-panel`,children:_jsx(CodeBlock,{filename:`200`,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:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"860260753860210752\"`}),_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:` \"task_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"860260753860210752\"`}),_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:` \"object\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"video\"`}),_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:` \"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"kling-v2-6\"`}),_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:`\"queued\"`}),_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:` \"progress\"`}),_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:` \"created_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1773130665`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})}),_jsx(ResponseField,{name:`id`,type:`string`,id:`param-id-1`,children:`AnyFast task ID.`}),_jsxs(ResponseField,{name:`task_id`,type:`string`,id:`param-task-id-2`,children:[`Task ID, equal to `,_jsx(_components.code,{children:`id`}),`.`]}),_jsxs(ResponseField,{name:`object`,type:`string`,id:`param-object-1`,children:[`Object type, always `,_jsx(_components.code,{children:`video`}),`.`]}),_jsx(ResponseField,{name:`model`,type:`string`,id:`param-model-1`,children:`Public model ID used for the task.`}),_jsxs(ResponseField,{name:`status`,type:`string`,id:`param-status-1`,children:[`Initial status, always `,_jsx(_components.code,{children:`queued`}),`.`]}),_jsxs(ResponseField,{name:`progress`,type:`integer`,id:`param-progress-1`,children:[`Initial progress, always `,_jsx(_components.code,{children:`0`}),`.`]}),_jsx(ResponseField,{name:`created_at`,type:`integer`,id:`param-created-at-1`,children:`Creation time as a Unix timestamp in seconds.`}),_jsx(Heading,{level:`2`,id:`query-task-by-id-2`,children:`Query task by ID`}),_jsx(_components.p,{children:_jsx(_components.code,{children:`GET /kling/v1/videos/image2video/{task_id}`})}),_jsx(`div`,{className:`kling-api-example-panel`,children:_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`4`,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:`4`,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:` GET`}),_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:` --url`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://www.anyfast.ai/kling/v1/videos/image2video/TASK_ID`}),_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 YOUR_API_KEY'`}),_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'`})]}),`\n`]})})})}),_jsx(Heading,{level:`3`,id:`request-headers-4`,children:`Request headers`}),_jsxs(ParamField,{header:`Authorization`,type:`string`,required:true,id:`param-authorization-3`,children:[`Bearer authentication in the form `,_jsx(_components.code,{children:`Bearer YOUR_API_KEY`}),`.`]}),_jsxs(ParamField,{header:`Content-Type`,type:`string`,default:`application/json`,required:true,id:`param-content-type-3`,children:[`Data exchange format. Use `,_jsx(_components.code,{children:`application/json`}),`.`]}),_jsx(Heading,{level:`3`,id:`path-parameters-2`,children:`Path parameters`}),_jsx(ParamField,{path:`task_id`,type:`string`,required:true,id:`param-task-id-3`,children:`The image-to-video task ID returned by the create endpoint.`}),_jsx(Heading,{level:`2`,id:`task-result-2`,children:`Task result`}),_jsx(`div`,{className:`kling-api-example-panel`,children:_jsx(CodeBlock,{filename:`200`,numberOfLines:`15`,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:`15`,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:` \"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:` \"task_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"asyntask_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\"`}),_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:` \"task_status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"succeed\"`}),_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:` \"task_result\"`}),_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:` \"videos\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://example.com/result.mp4\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"duration\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"5\"`}),_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`,_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:` \"created_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1784720890000`}),_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:` \"updated_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1784720949000`})]}),`\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`]})})})}),_jsxs(ResponseField,{name:`code`,type:`integer`,id:`param-code-1`,children:[_jsx(_components.code,{children:`0`}),` indicates that the query succeeded.`]}),_jsx(ResponseField,{name:`message`,type:`string`,id:`param-message-1`,children:`Error information; empty for a successful query.`}),_jsx(ResponseField,{name:`data.task_id`,type:`string`,id:`param-data-task-id-1`,children:`Queried task ID.`}),_jsxs(ResponseField,{name:`data.task_status`,type:`string`,id:`param-data-task-status-1`,children:[_jsx(_components.code,{children:`submitted`}),`, `,_jsx(_components.code,{children:`processing`}),`, `,_jsx(_components.code,{children:`succeed`}),`, or `,_jsx(_components.code,{children:`failed`}),`.`]}),_jsx(ResponseField,{name:`data.task_status_msg`,type:`string`,id:`param-data-task-status-msg-1`,children:`Failure details when the task fails.`}),_jsx(ResponseField,{name:`data.task_result.videos`,type:`object[]`,id:`param-data-task-result-videos-1`,children:`Generated videos, returned after success.`}),_jsx(ResponseField,{name:`data.task_result.videos[].url`,type:`string`,id:`param-data-task-result-videos-url-1`,children:`Temporary generated-video URL.`}),_jsx(ResponseField,{name:`data.task_result.videos[].duration`,type:`string`,id:`param-data-task-result-videos-duration-1`,children:`Actual duration in seconds.`}),_jsx(ResponseField,{name:`data.created_at`,type:`integer`,id:`param-data-created-at-1`,children:`Creation Unix timestamp in milliseconds.`}),_jsx(ResponseField,{name:`data.updated_at`,type:`integer`,id:`param-data-updated-at-1`,children:`Last update Unix timestamp in milliseconds.`}),_jsx(Warning,{children:`Generated result URLs are removed after 30 days. Save the files promptly.`})]}),_jsxs(Tab,{title:`Motion control`,id:`motion-control`,\"data-child-heading-ids\":`[\"create-task-3\",\"request-headers-5\",\"request-body-3\",\"media-requirements\",\"create-response-3\",\"query-task-by-id-3\",\"request-headers-6\",\"path-parameters-3\",\"task-result-3\"]`,children:[_jsx(Heading,{level:`2`,id:`create-task-3`,children:`Create task`}),_jsx(_components.p,{children:_jsx(_components.code,{children:`POST /kling/v1/videos/motion-control`})}),_jsx(`div`,{className:`kling-api-example-panel`,children:_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`13`,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:`13`,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:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --url`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://www.anyfast.ai/kling/v1/videos/motion-control`}),_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 YOUR_API_KEY'`}),_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:` \"model_name\": \"kling-2.6\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"image_url\": \"https://example.com/character.png\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"video_url\": \"https://example.com/motion.mp4\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"prompt\": \"Preserve the character and reproduce the reference motion\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"character_orientation\": \"video\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"keep_original_sound\": \"yes\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"mode\": \"pro\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})})}),_jsx(Heading,{level:`2`,id:`request-headers-5`,children:`Request headers`}),_jsxs(ParamField,{header:`Authorization`,type:`string`,required:true,id:`param-authorization-4`,children:[`Bearer authentication in the form `,_jsx(_components.code,{children:`Bearer YOUR_API_KEY`}),`.`]}),_jsxs(ParamField,{header:`Content-Type`,type:`string`,default:`application/json`,required:true,id:`param-content-type-4`,children:[`Data exchange format. Use `,_jsx(_components.code,{children:`application/json`}),`.`]}),_jsx(Heading,{level:`2`,id:`request-body-3`,children:`Request body`}),_jsxs(ParamField,{body:`model_name`,type:`string`,required:true,id:`param-model-name-2`,children:[`Must be `,_jsx(_components.code,{children:`kling-2.6`}),`.`]}),_jsx(ParamField,{body:`prompt`,type:`string`,id:`param-prompt-2`,children:`Additional visual or camera instructions, up to 2,500 characters.`}),_jsx(ParamField,{body:`image_url`,type:`string`,required:true,id:`param-image-url`,children:`Character image URL or raw Base64.`}),_jsx(ParamField,{body:`video_url`,type:`string`,required:true,id:`param-video-url`,children:`Public URL for the motion reference video.`}),_jsxs(ParamField,{body:`element_list`,type:`object[]`,id:`param-element-list`,children:[`Up to one Legacy element. When used, `,_jsx(_components.code,{children:`character_orientation`}),` must be `,_jsx(_components.code,{children:`video`}),`.`]}),_jsx(ParamField,{body:`element_list[].element_id`,type:`string`,required:true,id:`param-element-list-element-id`,children:`Element ID returned by the Legacy Element Management API.`}),_jsxs(ParamField,{body:`keep_original_sound`,type:`string`,default:`yes`,id:`param-keep-original-sound`,children:[`Keep reference-video audio: `,_jsx(_components.code,{children:`yes`}),` or `,_jsx(_components.code,{children:`no`}),`.`]}),_jsxs(ParamField,{body:`character_orientation`,type:`string`,required:true,id:`param-character-orientation`,children:[`Character orientation source: `,_jsx(_components.code,{children:`image`}),` or `,_jsx(_components.code,{children:`video`}),`.`]}),_jsxs(ParamField,{body:`mode`,type:`string`,default:`std`,id:`param-mode-2`,children:[_jsx(_components.code,{children:`std`}),` or `,_jsx(_components.code,{children:`pro`}),`.`]}),_jsxs(ParamField,{body:`watermark_info`,type:`object`,id:`param-watermark-info-2`,children:[`Use `,_jsx(_components.code,{children:`enabled`}),` to request an additional watermarked result.`]}),_jsx(Heading,{level:`3`,id:`media-requirements`,children:`Media requirements`}),_jsxs(_components.p,{children:[`Images support JPG/JPEG/PNG up to 10 MB, 300–65,536 px per side, and aspect ratio 1:2.5 to 2.5:1. Videos support MP4/MOV up to 100 MB, 340–3,850 px per side, and at least 3 seconds. Maximum duration is 10 seconds for `,_jsx(_components.code,{children:`character_orientation: \"image\"`}),` and 30 seconds for `,_jsx(_components.code,{children:`character_orientation: \"video\"`}),`.`]}),_jsx(Heading,{level:`2`,id:`create-response-3`,children:`Create response`}),_jsx(`div`,{className:`kling-api-example-panel`,children:_jsx(CodeBlock,{filename:`200`,numberOfLines:`6`,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:`6`,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:`\"SUCCEED\"`}),_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:`: {`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"task_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"task-id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"task_status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"submitted\"`}),_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`]})})})}),_jsxs(ResponseField,{name:`code`,type:`integer`,id:`param-code-2`,children:[_jsx(_components.code,{children:`0`}),` indicates that the request was accepted.`]}),_jsx(ResponseField,{name:`message`,type:`string`,id:`param-message-2`,children:`Response message.`}),_jsx(ResponseField,{name:`request_id`,type:`string`,id:`param-request-id`,children:`Request tracing ID.`}),_jsx(ResponseField,{name:`data.task_id`,type:`string`,id:`param-data-task-id-2`,children:`Motion-control task ID.`}),_jsx(ResponseField,{name:`data.task_status`,type:`string`,id:`param-data-task-status-2`,children:`Initial task status.`}),_jsx(Heading,{level:`2`,id:`query-task-by-id-3`,children:`Query task by ID`}),_jsx(_components.p,{children:_jsx(_components.code,{children:`GET /kling/v1/videos/motion-control/{task_id}`})}),_jsx(`div`,{className:`kling-api-example-panel`,children:_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`4`,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:`4`,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:` GET`}),_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:` --url`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://www.anyfast.ai/kling/v1/videos/motion-control/TASK_ID`}),_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 YOUR_API_KEY'`}),_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'`})]}),`\n`]})})})}),_jsx(Heading,{level:`3`,id:`request-headers-6`,children:`Request headers`}),_jsxs(ParamField,{header:`Authorization`,type:`string`,required:true,id:`param-authorization-5`,children:[`Bearer authentication in the form `,_jsx(_components.code,{children:`Bearer YOUR_API_KEY`}),`.`]}),_jsxs(ParamField,{header:`Content-Type`,type:`string`,default:`application/json`,required:true,id:`param-content-type-5`,children:[`Data exchange format. Use `,_jsx(_components.code,{children:`application/json`}),`.`]}),_jsx(Heading,{level:`3`,id:`path-parameters-3`,children:`Path parameters`}),_jsx(ParamField,{path:`task_id`,type:`string`,required:true,id:`param-task-id-4`,children:`The motion-control task ID returned by the create endpoint.`}),_jsx(Heading,{level:`2`,id:`task-result-3`,children:`Task result`}),_jsx(`div`,{className:`kling-api-example-panel`,children:_jsx(CodeBlock,{filename:`200`,numberOfLines:`15`,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:`15`,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:` \"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:` \"task_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"asyntask_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\"`}),_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:` \"task_status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"succeed\"`}),_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:` \"task_result\"`}),_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:` \"videos\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://example.com/result.mp4\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"duration\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"5\"`}),_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`,_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:` \"created_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1784720890000`}),_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:` \"updated_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1784720949000`})]}),`\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`]})})})}),_jsxs(ResponseField,{name:`code`,type:`integer`,id:`param-code-3`,children:[_jsx(_components.code,{children:`0`}),` indicates that the query succeeded.`]}),_jsx(ResponseField,{name:`message`,type:`string`,id:`param-message-3`,children:`Error information; empty for a successful query.`}),_jsx(ResponseField,{name:`data.task_id`,type:`string`,id:`param-data-task-id-3`,children:`Queried task ID.`}),_jsxs(ResponseField,{name:`data.task_status`,type:`string`,id:`param-data-task-status-3`,children:[_jsx(_components.code,{children:`submitted`}),`, `,_jsx(_components.code,{children:`processing`}),`, `,_jsx(_components.code,{children:`succeed`}),`, or `,_jsx(_components.code,{children:`failed`}),`.`]}),_jsx(ResponseField,{name:`data.task_status_msg`,type:`string`,id:`param-data-task-status-msg-2`,children:`Failure details when the task fails.`}),_jsx(ResponseField,{name:`data.task_result.videos`,type:`object[]`,id:`param-data-task-result-videos-2`,children:`Generated videos, returned after success.`}),_jsx(ResponseField,{name:`data.task_result.videos[].url`,type:`string`,id:`param-data-task-result-videos-url-2`,children:`Temporary generated-video URL.`}),_jsx(ResponseField,{name:`data.task_result.videos[].duration`,type:`string`,id:`param-data-task-result-videos-duration-2`,children:`Actual duration in seconds.`}),_jsx(ResponseField,{name:`data.created_at`,type:`integer`,id:`param-data-created-at-2`,children:`Creation Unix timestamp in milliseconds.`}),_jsx(ResponseField,{name:`data.updated_at`,type:`integer`,id:`param-data-updated-at-2`,children:`Last update Unix timestamp in milliseconds.`}),_jsx(Warning,{children:`Generated result URLs are removed after 30 days. Save the files promptly.`})]}),_jsxs(Tab,{title:`Voice management`,id:`voice-management`,\"data-child-heading-ids\":`[\"create-custom-voice\",\"request-headers-7\",\"request-body-4\",\"create-response-4\",\"query-custom-voice\",\"custom-voice-result\",\"list-preset-voices\",\"preset-voice-result\"]`,children:[_jsx(Heading,{level:`2`,id:`create-custom-voice`,children:`Create custom voice`}),_jsx(_components.p,{children:_jsx(_components.code,{children:`POST /kling/v1/general/custom-voices`})}),_jsx(`div`,{className:`kling-api-example-panel`,children:_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`8`,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:`8`,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:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --url`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://www.anyfast.ai/kling/v1/general/custom-voices`}),_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 YOUR_API_KEY'`}),_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:` \"voice_name\": \"Narrator\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"voice_url\": \"https://example.com/voice.mp3\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})})}),_jsx(Heading,{level:`2`,id:`request-headers-7`,children:`Request headers`}),_jsxs(ParamField,{header:`Authorization`,type:`string`,required:true,id:`param-authorization-6`,children:[`Bearer authentication in the form `,_jsx(_components.code,{children:`Bearer YOUR_API_KEY`}),`.`]}),_jsxs(ParamField,{header:`Content-Type`,type:`string`,default:`application/json`,required:true,id:`param-content-type-6`,children:[`Data exchange format. Use `,_jsx(_components.code,{children:`application/json`}),`.`]}),_jsx(Heading,{level:`2`,id:`request-body-4`,children:`Request body`}),_jsx(ParamField,{body:`voice_name`,type:`string`,required:true,id:`param-voice-name`,children:`Custom voice name, up to 20 characters.`}),_jsxs(ParamField,{body:`voice_url`,type:`string`,id:`param-voice-url`,children:[`Public MP3, WAV, MP4, or MOV URL. At least one of `,_jsx(_components.code,{children:`voice_url`}),` and `,_jsx(_components.code,{children:`video_id`}),` is required.`]}),_jsxs(ParamField,{body:`video_id`,type:`string`,id:`param-video-id`,children:[`An eligible previously generated video ID. At least one of `,_jsx(_components.code,{children:`voice_url`}),` and `,_jsx(_components.code,{children:`video_id`}),` is required.`]}),_jsx(_components.p,{children:`The source must contain one clear speaker and be 5–30 seconds long.`}),_jsx(Heading,{level:`2`,id:`create-response-4`,children:`Create response`}),_jsx(`div`,{className:`kling-api-example-panel`,children:_jsx(CodeBlock,{filename:`200`,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:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"860260753860210752\"`}),_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:` \"task_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"860260753860210752\"`}),_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:` \"object\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"video\"`}),_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:` \"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"kling-voices\"`}),_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:`\"queued\"`}),_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:` \"progress\"`}),_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:` \"created_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1773130665`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})}),_jsx(ResponseField,{name:`id`,type:`string`,id:`param-id-2`,children:`AnyFast task ID.`}),_jsxs(ResponseField,{name:`task_id`,type:`string`,id:`param-task-id-5`,children:[`Task ID, equal to `,_jsx(_components.code,{children:`id`}),`.`]}),_jsxs(ResponseField,{name:`object`,type:`string`,id:`param-object-2`,children:[`Object type, always `,_jsx(_components.code,{children:`video`}),`.`]}),_jsx(ResponseField,{name:`model`,type:`string`,id:`param-model-2`,children:`Public model ID used for the task.`}),_jsxs(ResponseField,{name:`status`,type:`string`,id:`param-status-2`,children:[`Initial status, always `,_jsx(_components.code,{children:`queued`}),`.`]}),_jsxs(ResponseField,{name:`progress`,type:`integer`,id:`param-progress-2`,children:[`Initial progress, always `,_jsx(_components.code,{children:`0`}),`.`]}),_jsx(ResponseField,{name:`created_at`,type:`integer`,id:`param-created-at-2`,children:`Creation time as a Unix timestamp in seconds.`}),_jsx(Heading,{level:`2`,id:`query-custom-voice`,children:`Query custom voice`}),_jsx(_components.p,{children:_jsx(_components.code,{children:`GET /kling/v1/general/custom-voices/{id}`})}),_jsx(`div`,{className:`kling-api-example-panel`,children:_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`3`,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:`3`,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:` GET`}),_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:` --url`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://www.anyfast.ai/kling/v1/general/custom-voices/VOICE_TASK_ID`}),_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 YOUR_API_KEY'`})]}),`\n`]})})})}),_jsxs(ParamField,{header:`Authorization`,type:`string`,required:true,id:`param-authorization-7`,children:[`Bearer authentication in the form `,_jsx(_components.code,{children:`Bearer YOUR_API_KEY`}),`.`]}),_jsx(ParamField,{path:`id`,type:`string`,required:true,id:`param-id-3`,children:`Task ID returned by the create custom voice endpoint.`}),_jsx(Heading,{level:`2`,id:`custom-voice-result`,children:`Custom voice result`}),_jsx(`div`,{className:`kling-api-example-panel`,children:_jsx(CodeBlock,{filename:`200`,numberOfLines:`12`,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:`12`,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:`#0A3069`,\"--shiki-dark\":`#CE9178`},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:` \"requestId\"`}),_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:` \"task_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"VOICE_TASK_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:` \"task_status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"succeed\"`}),_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:` \"task_result\"`}),_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:` \"voices\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [{`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"voice_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"voice-id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"voice_name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Narrator\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"trial_url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://example.com/trial.mp3\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"owned_by\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"self\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},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:`\"succeed\"`}),_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`,_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`]})})})}),_jsx(ResponseField,{name:`code`,type:`string`,id:`param-code-4`,children:`Business status code.`}),_jsx(ResponseField,{name:`message`,type:`string`,id:`param-message-4`,children:`Response message.`}),_jsx(ResponseField,{name:`requestId`,type:`string`,id:`param-request-id-1`,children:`Request tracing ID.`}),_jsx(ResponseField,{name:`data.task_id`,type:`string`,id:`param-data-task-id-4`,children:`Voice task ID.`}),_jsxs(ResponseField,{name:`data.task_status`,type:`string`,id:`param-data-task-status-4`,children:[_jsx(_components.code,{children:`submitted`}),`, `,_jsx(_components.code,{children:`processing`}),`, `,_jsx(_components.code,{children:`succeed`}),`, or `,_jsx(_components.code,{children:`failed`}),`.`]}),_jsx(ResponseField,{name:`data.task_result.voices`,type:`object[]`,id:`param-data-task-result-voices`,children:`Voice results.`}),_jsx(ResponseField,{name:`data.task_result.voices[].voice_id`,type:`string`,id:`param-data-task-result-voices-voice-id`,children:`Voice ID for video requests.`}),_jsx(ResponseField,{name:`data.task_result.voices[].voice_name`,type:`string`,id:`param-data-task-result-voices-voice-name`,children:`Voice name.`}),_jsx(ResponseField,{name:`data.task_result.voices[].trial_url`,type:`string`,id:`param-data-task-result-voices-trial-url`,children:`Voice preview URL.`}),_jsxs(ResponseField,{name:`data.task_result.voices[].owned_by`,type:`string`,id:`param-data-task-result-voices-owned-by`,children:[`Custom voices return `,_jsx(_components.code,{children:`self`}),`; current preset voices return `,_jsx(_components.code,{children:`vod`}),`.`]}),_jsx(Heading,{level:`2`,id:`list-preset-voices`,children:`List preset voices`}),_jsx(_components.p,{children:_jsx(_components.code,{children:`GET /kling/v1/general/presets-voices?pageNum=1\u0026pageSize=30`})}),_jsx(`div`,{className:`kling-api-example-panel`,children:_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`3`,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:`3`,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:` GET`}),_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:` --url`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'https://www.anyfast.ai/kling/v1/general/presets-voices?pageNum=1\u0026pageSize=30'`}),_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 YOUR_API_KEY'`})]}),`\n`]})})})}),_jsxs(ParamField,{header:`Authorization`,type:`string`,required:true,id:`param-authorization-8`,children:[`Bearer authentication in the form `,_jsx(_components.code,{children:`Bearer YOUR_API_KEY`}),`.`]}),_jsx(ParamField,{query:`pageNum`,type:`integer`,default:1,id:`param-page-num`,children:`Page number from 1 to 1,000.`}),_jsx(ParamField,{query:`pageSize`,type:`integer`,default:30,id:`param-page-size`,children:`Page size from 1 to 1,000.`}),_jsx(Heading,{level:`2`,id:`preset-voice-result`,children:`Preset voice result`}),_jsx(`div`,{className:`kling-api-example-panel`,children:_jsx(CodeBlock,{filename:`200`,numberOfLines:`14`,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:`14`,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:`#0A3069`,\"--shiki-dark\":`#CE9178`},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:` \"requestId\"`}),_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`,_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:` \"task_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"preset-task-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:` \"task_status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"succeed\"`}),_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:` \"task_result\"`}),_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:` \"voices\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [{`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"voice_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"preset-voice-id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"voice_name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Warm narrator\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"trial_url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://example.com/preset.mp3\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"owned_by\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"vod\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},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:`\"succeed\"`}),_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`,_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`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})}),_jsx(ResponseField,{name:`code`,type:`string`,id:`param-code-5`,children:`Business status code.`}),_jsx(ResponseField,{name:`message`,type:`string`,id:`param-message-5`,children:`Response message.`}),_jsx(ResponseField,{name:`requestId`,type:`string`,id:`param-request-id-2`,children:`Request tracing ID.`}),_jsx(ResponseField,{name:`data[].task_id`,type:`string`,id:`param-data-task-id-5`,children:`Voice task ID.`}),_jsxs(ResponseField,{name:`data[].task_status`,type:`string`,id:`param-data-task-status-5`,children:[_jsx(_components.code,{children:`submitted`}),`, `,_jsx(_components.code,{children:`processing`}),`, `,_jsx(_components.code,{children:`succeed`}),`, or `,_jsx(_components.code,{children:`failed`}),`.`]}),_jsx(ResponseField,{name:`data[].task_result.voices`,type:`object[]`,id:`param-data-task-result-voices-1`,children:`Voice results.`}),_jsx(ResponseField,{name:`data[].task_result.voices[].voice_id`,type:`string`,id:`param-data-task-result-voices-voice-id-1`,children:`Voice ID for video requests.`}),_jsx(ResponseField,{name:`data[].task_result.voices[].voice_name`,type:`string`,id:`param-data-task-result-voices-voice-name-1`,children:`Voice name.`}),_jsx(ResponseField,{name:`data[].task_result.voices[].trial_url`,type:`string`,id:`param-data-task-result-voices-trial-url-1`,children:`Voice preview URL.`}),_jsxs(ResponseField,{name:`data[].task_result.voices[].owned_by`,type:`string`,id:`param-data-task-result-voices-owned-by-1`,children:[`Custom voices return `,_jsx(_components.code,{children:`self`}),`; current preset voices return `,_jsx(_components.code,{children:`vod`}),`.`]})]})]}),`\n`,_jsxs(Note,{children:[`This page uses the Kling Legacy request structure. AnyFast adds the `,_jsx(_components.code,{children:`/kling`}),` routing prefix to Legacy paths.`]}),`\n`,_jsx(`script`,{src:`/public/feedback.js`})]})}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-v2-6","description":"Kling 2.6 Legacy APIs for text to video, image to video, motion control, and voice management.","href":"/api-reference/model-api/kuaishou/kling-v2-6"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Create task","slug":"create-task","depth":2,"children":[],"tabId":"text-to-video"},{"title":"Request headers","slug":"request-headers","depth":2,"children":[],"tabId":"text-to-video"},{"title":"Request body","slug":"request-body","depth":2,"children":[{"title":"Camera control","slug":"camera-control","depth":3,"children":[],"tabId":"text-to-video"}],"tabId":"text-to-video"},{"title":"Create response","slug":"create-response","depth":2,"children":[],"tabId":"text-to-video"},{"title":"Query task by ID","slug":"query-task-by-id","depth":2,"children":[{"title":"Request headers","slug":"request-headers-2","depth":3,"children":[],"tabId":"text-to-video"},{"title":"Path parameters","slug":"path-parameters","depth":3,"children":[],"tabId":"text-to-video"}],"tabId":"text-to-video"},{"title":"Task result","slug":"task-result","depth":2,"children":[],"tabId":"text-to-video"},{"title":"Create task","slug":"create-task-2","depth":2,"children":[],"tabId":"image-to-video"},{"title":"Request headers","slug":"request-headers-3","depth":2,"children":[],"tabId":"image-to-video"},{"title":"Request body","slug":"request-body-2","depth":2,"children":[{"title":"Image requirements","slug":"image-requirements","depth":3,"children":[],"tabId":"image-to-video"}],"tabId":"image-to-video"},{"title":"Create response","slug":"create-response-2","depth":2,"children":[],"tabId":"image-to-video"},{"title":"Query task by ID","slug":"query-task-by-id-2","depth":2,"children":[{"title":"Request headers","slug":"request-headers-4","depth":3,"children":[],"tabId":"image-to-video"},{"title":"Path parameters","slug":"path-parameters-2","depth":3,"children":[],"tabId":"image-to-video"}],"tabId":"image-to-video"},{"title":"Task result","slug":"task-result-2","depth":2,"children":[],"tabId":"image-to-video"},{"title":"Create task","slug":"create-task-3","depth":2,"children":[],"tabId":"motion-control"},{"title":"Request headers","slug":"request-headers-5","depth":2,"children":[],"tabId":"motion-control"},{"title":"Request body","slug":"request-body-3","depth":2,"children":[{"title":"Media requirements","slug":"media-requirements","depth":3,"children":[],"tabId":"motion-control"}],"tabId":"motion-control"},{"title":"Create response","slug":"create-response-3","depth":2,"children":[],"tabId":"motion-control"},{"title":"Query task by ID","slug":"query-task-by-id-3","depth":2,"children":[{"title":"Request headers","slug":"request-headers-6","depth":3,"children":[],"tabId":"motion-control"},{"title":"Path parameters","slug":"path-parameters-3","depth":3,"children":[],"tabId":"motion-control"}],"tabId":"motion-control"},{"title":"Task result","slug":"task-result-3","depth":2,"children":[],"tabId":"motion-control"},{"title":"Create custom voice","slug":"create-custom-voice","depth":2,"children":[],"tabId":"voice-management"},{"title":"Request headers","slug":"request-headers-7","depth":2,"children":[],"tabId":"voice-management"},{"title":"Request body","slug":"request-body-4","depth":2,"children":[],"tabId":"voice-management"},{"title":"Create response","slug":"create-response-4","depth":2,"children":[],"tabId":"voice-management"},{"title":"Query custom voice","slug":"query-custom-voice","depth":2,"children":[],"tabId":"voice-management"},{"title":"Custom voice result","slug":"custom-voice-result","depth":2,"children":[],"tabId":"voice-management"},{"title":"List preset voices","slug":"list-preset-voices","depth":2,"children":[],"tabId":"voice-management"},{"title":"Preset voice result","slug":"preset-voice-result","depth":2,"children":[],"tabId":"voice-management"}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/13108701256/5a1b674a8114a832/public/feedback.js","/_mintlify/custom/13108701256/77e35c9cec00c64f/workers/docs-feedback/src/index.js"],"subdomain":"13108701256","siteName":"AnyFast","title":"kling-v2-6 - AnyFast","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/api-reference/model-api/kuaishou/kling-v2-6","matchLevel":0},"zh":{"href":"/zh/api-reference/model-api/kuaishou/kling-v2-6","matchLevel":1}}},"lastModified":"2026-08-23T05:44:40.548Z","originalFileLocation":"api-reference/model-api/kuaishou/kling-v2-6.mdx","locale":"en"},"headHtml":"\u003cmeta data-mint-head name=\"description\" content=\"Kling 2.6 Legacy APIs for text to video, image to video, motion control, and voice management.\">\u003cmeta data-mint-head name=\"application-name\" content=\"AnyFast\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/13108701256/gXJe3s6yIozLssx1/_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=\"/mintlify-assets/_mintlify/favicons/13108701256/gXJe3s6yIozLssx1/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/13108701256/gXJe3s6yIozLssx1/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/13108701256/gXJe3s6yIozLssx1/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/13108701256/gXJe3s6yIozLssx1/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/13108701256/gXJe3s6yIozLssx1/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/13108701256/gXJe3s6yIozLssx1/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/13108701256/gXJe3s6yIozLssx1/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/13108701256/gXJe3s6yIozLssx1/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"kling-v2-6 - AnyFast\">\u003cmeta data-mint-head property=\"og:description\" content=\"Kling 2.6 Legacy APIs for text to video, image to video, motion control, and voice management.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"AnyFast Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.anyfast.ai/api-reference/model-api/kuaishou/kling-v2-6\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://docs.anyfast.ai/images/layfz/social-media-cover.jpg\">\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-v2-6 - AnyFast\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Kling 2.6 Legacy APIs for text to video, image to video, motion control, and voice management.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://docs.anyfast.ai/images/layfz/social-media-cover.jpg\">\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=\"/mintlify-assets/_mintlify/favicons/13108701256/gXJe3s6yIozLssx1/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"AnyFast\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#16A34A\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.anyfast.ai/api-reference/model-api/kuaishou/kling-v2-6\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/model-api/kuaishou/kling-v2-6.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://docs.anyfast.ai/api-reference/model-api/kuaishou/kling-v2-6\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh\" href=\"https://docs.anyfast.ai/zh/api-reference/model-api/kuaishou/kling-v2-6\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://docs.anyfast.ai/api-reference/model-api/kuaishou/kling-v2-6\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.anyfast.ai/#organization\",\"name\":\"AnyFast\",\"url\":\"https://docs.anyfast.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/13108701256/ciuuPfOYrnV5Potx/logo/light.svg?fit=max\u0026auto=format\u0026n=ciuuPfOYrnV5Potx\u0026q=85\u0026s=d039b2f183e8089b2cc5486b02a15058\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.anyfast.ai#website\",\"name\":\"AnyFast\",\"url\":\"https://docs.anyfast.ai\",\"publisher\":{\"@id\":\"https://docs.anyfast.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.anyfast.ai/api-reference/model-api/kuaishou/kling-v2-6#webpage\",\"url\":\"https://docs.anyfast.ai/api-reference/model-api/kuaishou/kling-v2-6\",\"name\":\"kling-v2-6\",\"description\":\"Kling 2.6 Legacy APIs for text to video, image to video, motion control, and voice management.\",\"dateModified\":\"2026-08-23T05:44:40.548Z\",\"isPartOf\":{\"@id\":\"https://docs.anyfast.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.anyfast.ai/api-reference/model-api/kuaishou/kling-v2-6#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.anyfast.ai/api-reference/model-api/kuaishou/kling-v2-6#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Model APIs\",\"item\":\"https://docs.anyfast.ai/api-reference/model-api/alibaba/qwen3.6-plus\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Kuaishou\",\"item\":\"https://docs.anyfast.ai/api-reference/model-api/kuaishou/kling-v3-turbo\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"kling-v2-6\",\"item\":\"https://docs.anyfast.ai/api-reference/model-api/kuaishou/kling-v2-6\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.anyfast.ai/api-reference/model-api/kuaishou/kling-v2-6#article\",\"headline\":\"kling-v2-6\",\"name\":\"kling-v2-6\",\"description\":\"Kling 2.6 Legacy APIs for text to video, image to video, motion control, and voice management.\",\"url\":\"https://docs.anyfast.ai/api-reference/model-api/kuaishou/kling-v2-6\",\"mainEntityOfPage\":{\"@id\":\"https://docs.anyfast.ai/api-reference/model-api/kuaishou/kling-v2-6#webpage\"},\"image\":\"https://docs.anyfast.ai/images/layfz/social-media-cover.jpg\",\"dateModified\":\"2026-08-23T05:44:40.548Z\",\"publisher\":{\"@id\":\"https://docs.anyfast.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.anyfast.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"AnyFast\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"AnyFast","nav":{"global":{"anchors":[{"anchor":"Documentation","icon":"book-open-cover","href":"https://docs.anyfast.ai"}]},"languages":[{"language":"en","default":true,"tabs":[{"tab":"Guides","pages":[{"title":"Guides","href":""}]},{"tab":"Model Introduction","pages":[{"title":"Model Introduction","href":"/guides/model-api/alibaba/qwen3.6-plus"}]},{"tab":"API Reference","groups":[{"group":"Overview","pages":[{"title":"Introduction","icon":"book-open","href":"/api-reference/introduction"}]},{"group":"Native Compatible Endpoints","pages":[{"group":"OpenAI","pages":[{"title":"Chat Completions","openapi":"api-reference/endpoints/openapi/openai/openapi.yaml POST /v1/chat/completions","href":"/api-reference/endpoints/openai"}]},{"group":"Anthropic Claude","pages":[{"title":"Create Message","openapi":"api-reference/endpoints/openapi/anthropic/openapi.yaml POST /v1/messages","href":"/api-reference/endpoints/anthropic"}]},{"group":"Google Gemini","pages":[{"title":"Generate Content","openapi":"api-reference/endpoints/openapi/gemini-native/openapi.yaml POST /v1beta/models/{model}:generateContent","href":"/api-reference/endpoints/gemini-native"},{"title":"Chat Completions","openapi":"api-reference/endpoints/openapi/gemini-chat/openapi.yaml POST /v1/chat/completions","href":"/api-reference/endpoints/gemini-chat"}]},{"group":"ByteDance Doubao","pages":[{"title":"Chat Completions","openapi":"api-reference/endpoints/openapi/doubao/openapi.yaml POST /v1/chat/completions","href":"/api-reference/endpoints/doubao"},{"title":"Create Response","openapi":"api-reference/endpoints/openapi/doubao-responses/openapi.yaml POST /v1/responses","href":"/api-reference/endpoints/doubao-responses"}]}]},{"group":"Model APIs","pages":[{"group":"Alibaba","icon":"/images/providers/alibaba.svg","pages":[{"group":"Text \u0026 multimodal","expanded":false,"pages":[{"title":"qwen3.6-plus","openapi":"api-reference/model-api/alibaba/openapi/qwen3.6-plus/openapi.yaml POST /v1/chat/completions","href":"/api-reference/model-api/alibaba/qwen3.6-plus"},{"title":"qwen3.6-flash","openapi":"api-reference/model-api/alibaba/openapi/qwen3.6-flash/openapi.yaml POST /v1/chat/completions","href":"/api-reference/model-api/alibaba/qwen3.6-flash"},{"title":"qwen3.5-397b-a17b","openapi":"api-reference/model-api/alibaba/openapi/qwen3.5-397b-a17b/openapi.yaml POST /v1/chat/completions","href":"/api-reference/model-api/alibaba/qwen3.5-397b-a17b"},{"title":"qwen3-coder-next","openapi":"api-reference/model-api/alibaba/openapi/qwen3-coder-next/openapi.yaml POST /v1/chat/completions","href":"/api-reference/model-api/alibaba/qwen3-coder-next"},{"title":"qwen3-coder","openapi":"api-reference/model-api/alibaba/openapi/qwen3-coder/openapi.yaml POST /v1/chat/completions","href":"/api-reference/model-api/alibaba/qwen3-coder"},{"title":"qwen3-next-80b-a3b-instruct","openapi":"api-reference/model-api/alibaba/openapi/qwen3-next-80b-a3b-instruct/openapi.yaml POST /v1/chat/completions","href":"/api-reference/model-api/alibaba/qwen3-next-80b-a3b-instruct"},{"title":"qwen3-next-80b-a3b-thinking","openapi":"api-reference/model-api/alibaba/openapi/qwen3-next-80b-a3b-thinking/openapi.yaml POST /v1/chat/completions","href":"/api-reference/model-api/alibaba/qwen3-next-80b-a3b-thinking"},{"title":"qwen3-235b-a22b-instruct-2507","openapi":"api-reference/model-api/alibaba/openapi/qwen3-235b-a22b-instruct-2507/openapi.yaml POST /v1/chat/completions","href":"/api-reference/model-api/alibaba/qwen3-235b-a22b-instruct-2507"},{"title":"qwen3-235b-a22b-thinking-2507","openapi":"api-reference/model-api/alibaba/openapi/qwen3-235b-a22b-thinking-2507/openapi.yaml POST /v1/chat/completions","href":"/api-reference/model-api/alibaba/qwen3-235b-a22b-thinking-2507"},{"title":"qwen3-235b-a22b","openapi":"api-reference/model-api/alibaba/openapi/qwen3-235b-a22b/openapi.yaml POST /v1/chat/completions","href":"/api-reference/model-api/alibaba/qwen3-235b-a22b"},{"title":"qwen3-30b-a3b-instruct-2507","openapi":"api-reference/model-api/alibaba/openapi/qwen3-30b-a3b-instruct-2507/openapi.yaml POST /v1/chat/completions","href":"/api-reference/model-api/alibaba/qwen3-30b-a3b-instruct-2507"},{"title":"qwen3-30b-a3b-thinking-2507","openapi":"api-reference/model-api/alibaba/openapi/qwen3-30b-a3b-thinking-2507/openapi.yaml POST /v1/chat/completions","href":"/api-reference/model-api/alibaba/qwen3-30b-a3b-thinking-2507"},{"title":"qwen3-32b","openapi":"api-reference/model-api/alibaba/openapi/qwen3-32b/openapi.yaml POST /v1/chat/completions","href":"/api-reference/model-api/alibaba/qwen3-32b"},{"title":"qwen3-14b","openapi":"api-reference/model-api/alibaba/openapi/qwen3-14b/openapi.yaml POST /v1/chat/completions","href":"/api-reference/model-api/alibaba/qwen3-14b"},{"title":"qwen3-vl-235b-a22b-instruct","openapi":"api-reference/model-api/alibaba/openapi/qwen3-vl-235b-a22b-instruct/openapi.yaml POST /v1/chat/completions","href":"/api-reference/model-api/alibaba/qwen3-vl-235b-a22b-instruct"},{"title":"qwen3-vl-235b-a22b-thinking","openapi":"api-reference/model-api/alibaba/openapi/qwen3-vl-235b-a22b-thinking/openapi.yaml POST /v1/chat/completions","href":"/api-reference/model-api/alibaba/qwen3-vl-235b-a22b-thinking"}]},{"group":"Image generation","expanded":false,"pages":[{"title":"qwen-image-plus","openapi":"api-reference/model-api/alibaba/openapi/qwen-image-plus/openapi.yaml POST /v1/images/generations","href":"/api-reference/model-api/alibaba/qwen-image-plus"},{"title":"Wan2.7 Image / Pro","openapi":"api-reference/model-api/alibaba/openapi/wan2.7-image/openapi.yaml POST /v1/images/generations","href":"/api-reference/model-api/alibaba/wan2.7-image"},{"title":"wan2.6-t2i","openapi":"api-reference/model-api/alibaba/openapi/wan2.6-t2i/openapi.yaml POST /v1/images/generations","href":"/api-reference/model-api/alibaba/wan2.6-t2i"}]},{"group":"Video generation","expanded":false,"pages":[{"title":"happyhorse-1.1","href":"/api-reference/model-api/alibaba/happyhorse-1.1"},{"title":"happyhorse-1.0","href":"/api-reference/model-api/alibaba/happyhorse-1.0"},{"title":"happyhorse-task-query","openapi":"api-reference/model-api/alibaba/openapi/happyhorse-task-query/openapi.yaml GET /v1/video/generations/{task_id}","href":"/api-reference/model-api/alibaba/happyhorse-task-query"},{"title":"wan3.0-video-prime","tag":"NEW","href":"/api-reference/model-api/alibaba/wan3.0-video-prime"},{"title":"wan3.0-video","tag":"NEW","href":"/api-reference/model-api/alibaba/wan3.0-video"},{"title":"Wan2.7","href":"/api-reference/model-api/alibaba/wan2.7"},{"title":"Wan2.2 A14B","href":"/api-reference/model-api/alibaba/wan2.2-a14b"},{"title":"wan2-task-query","openapi":"api-reference/model-api/alibaba/openapi/wan2-task-query/openapi.yaml GET /v1/video/generations/{task_id}","href":"/api-reference/model-api/alibaba/wan2-task-query"}]}]},{"group":"Anthropic","icon":"/images/providers/anthropic.svg","pages":[{"title":"claude-opus-5-5","openapi":"api-reference/model-api/anthropic/openapi/claude-opus-5-5/openapi.yaml POST /v1/messages","href":"/api-reference/model-api/anthropic/claude-opus-5-5"},{"title":"claude-fable-5-1","openapi":"api-reference/model-api/anthropic/openapi/claude-fable-5-1/openapi.yaml POST /v1/messages","href":"/api-reference/model-api/anthropic/claude-fable-5-1"},{"title":"claude-fable-5","openapi":"api-reference/model-api/anthropic/openapi/claude-fable-5/openapi.yaml POST /v1/messages","href":"/api-reference/model-api/anthropic/claude-fable-5"},{"title":"claude-opus-5","openapi":"api-reference/model-api/anthropic/openapi/claude-opus-5/openapi.yaml POST /v1/messages","href":"/api-reference/model-api/anthropic/claude-opus-5"},{"title":"claude-opus-4-8","openapi":"api-reference/model-api/anthropic/openapi/claude-opus-4-8/openapi.yaml POST /v1/messages","href":"/api-reference/model-api/anthropic/claude-opus-4-8"},{"title":"claude-opus-4-7","openapi":"api-reference/model-api/anthropic/openapi/claude-opus-4-7/openapi.yaml POST /v1/messages","href":"/api-reference/model-api/anthropic/claude-opus-4-7"},{"title":"claude-opus-4-6","openapi":"api-reference/model-api/anthropic/openapi/claude-opus-4-6/openapi.yaml POST /v1/messages","href":"/api-reference/model-api/anthropic/claude-opus-4-6"},{"title":"claude-opus-4-6-thinking","openapi":"api-reference/model-api/anthropic/openapi/claude-opus-4-6-thinking/openapi.yaml POST /v1/messages","href":"/api-reference/model-api/anthropic/claude-opus-4-6-thinking"},{"title":"claude-sonnet-5-5","openapi":"api-reference/model-api/anthropic/openapi/claude-sonnet-5-5/openapi.yaml POST /v1/messages","href":"/api-reference/model-api/anthropic/claude-sonnet-5-5"},{"title":"claude-sonnet-5","openapi":"api-reference/model-api/anthropic/openapi/claude-sonnet-5/openapi.yaml POST /v1/messages","href":"/api-reference/model-api/anthropic/claude-sonnet-5"},{"title":"claude-sonnet-4-6","openapi":"api-reference/model-api/anthropic/openapi/claude-sonnet-4-6/openapi.yaml POST /v1/messages","href":"/api-reference/model-api/anthropic/claude-sonnet-4-6"},{"title":"claude-sonnet-4-6-thinking","openapi":"api-reference/model-api/anthropic/openapi/claude-sonnet-4-6-thinking/openapi.yaml POST /v1/messages","href":"/api-reference/model-api/anthropic/claude-sonnet-4-6-thinking"},{"title":"claude-opus-4-5-20251101","openapi":"api-reference/model-api/anthropic/openapi/claude-opus-4-5-20251101/openapi.yaml POST /v1/messages","href":"/api-reference/model-api/anthropic/claude-opus-4-5-20251101"},{"title":"claude-opus-4-5-20251101-thinking","openapi":"api-reference/model-api/anthropic/openapi/claude-opus-4-5-20251101-thinking/openapi.yaml POST /v1/messages","href":"/api-reference/model-api/anthropic/claude-opus-4-5-20251101-thinking"},{"title":"claude-sonnet-4-5-20250929","openapi":"api-reference/model-api/anthropic/openapi/claude-sonnet-4-5-20250929/openapi.yaml POST /v1/messages","href":"/api-reference/model-api/anthropic/claude-sonnet-4-5-20250929"},{"title":"claude-sonnet-4-5-20250929-thinking","openapi":"api-reference/model-api/anthropic/openapi/claude-sonnet-4-5-20250929-thinking/openapi.yaml POST /v1/messages","href":"/api-reference/model-api/anthropic/claude-sonnet-4-5-20250929-thinking"},{"title":"claude-haiku-5-5","openapi":"api-reference/model-api/anthropic/openapi/claude-haiku-5-5/openapi.yaml POST /v1/messages","href":"/api-reference/model-api/anthropic/claude-haiku-5-5"},{"title":"claude-haiku-4-5-20251001","openapi":"api-reference/model-api/anthropic/openapi/claude-haiku-4-5-20251001/openapi.yaml POST /v1/messages","href":"/api-reference/model-api/anthropic/claude-haiku-4-5-20251001"},{"title":"claude-haiku-4-5-20251001-thinking","openapi":"api-reference/model-api/anthropic/openapi/claude-haiku-4-5-20251001-thinking/openapi.yaml POST /v1/messages","href":"/api-reference/model-api/anthropic/claude-haiku-4-5-20251001-thinking"},{"title":"claude-opus-4-20250514","openapi":"api-reference/model-api/anthropic/openapi/claude-opus-4-20250514/openapi.yaml POST /v1/messages","href":"/api-reference/model-api/anthropic/claude-opus-4-20250514"}]},{"group":"Black Forest Labs","icon":"/images/providers/bfl.svg","pages":[{"title":"flux-1.1-pro","openapi":"api-reference/model-api/blackforestlabs/openapi/flux-1-1-pro/openapi.yaml POST /v1/images/generations","href":"/api-reference/model-api/blackforestlabs/flux-1-1-pro"},{"title":"flux-1-kontext-pro","openapi":"api-reference/model-api/blackforestlabs/openapi/flux-1-kontext-pro/openapi.yaml POST /v1/images/generations","href":"/api-reference/model-api/blackforestlabs/flux-1-kontext-pro"},{"title":"flux-1-kontext-pro-edit","openapi":"api-reference/model-api/blackforestlabs/openapi/flux-1-kontext-pro-edit/openapi.yaml POST /v1/images/edits","href":"/api-reference/model-api/blackforestlabs/flux-1-kontext-pro-edit"}]},{"group":"ByteDance","icon":"/images/providers/bytedance.svg","pages":[{"title":"Seedance Task Query","openapi":"api-reference/model-api/bytedance/openapi/seedance-task-query/openapi.yaml GET /v1/video/generations/{id}","href":"/api-reference/model-api/bytedance/seedance-task-query"},{"group":"Asset Management","pages":[{"title":"Create Asset Group","openapi":"api-reference/model-api/bytedance/openapi/volc-asset-create-group/openapi.yaml POST /volc/asset/CreateAssetGroup","href":"/api-reference/model-api/bytedance/volc-asset-create-group"},{"title":"Create Image Asset","openapi":"api-reference/model-api/bytedance/openapi/volc-asset-create-image/openapi.yaml POST /volc/asset/CreateAsset","href":"/api-reference/model-api/bytedance/volc-asset-create-image"},{"title":"Create Video Asset","openapi":"api-reference/model-api/bytedance/openapi/volc-asset-create-video/openapi.yaml POST /volc/asset/CreateAsset","href":"/api-reference/model-api/bytedance/volc-asset-create-video"},{"title":"Create Audio Asset","openapi":"api-reference/model-api/bytedance/openapi/volc-asset-create-audio/openapi.yaml POST /volc/asset/CreateAsset","href":"/api-reference/model-api/bytedance/volc-asset-create-audio"},{"title":"List Asset Groups","openapi":"api-reference/model-api/bytedance/openapi/volc-asset-list-groups/openapi.yaml POST /volc/asset/ListAssetGroups","href":"/api-reference/model-api/bytedance/volc-asset-list-groups"},{"title":"List Assets","openapi":"api-reference/model-api/bytedance/openapi/volc-asset-list-assets/openapi.yaml POST /volc/asset/ListAssets","href":"/api-reference/model-api/bytedance/volc-asset-list-assets"},{"title":"Get Asset","openapi":"api-reference/model-api/bytedance/openapi/volc-asset-get-asset/openapi.yaml POST /volc/asset/GetAsset","href":"/api-reference/model-api/bytedance/volc-asset-get-asset"},{"title":"Update Asset Group","openapi":"api-reference/model-api/bytedance/openapi/volc-asset-update-group/openapi.yaml POST /volc/asset/UpdateAssetGroup","href":"/api-reference/model-api/bytedance/volc-asset-update-group"},{"title":"Update Asset","openapi":"api-reference/model-api/bytedance/openapi/volc-asset-update-asset/openapi.yaml POST /volc/asset/UpdateAsset","href":"/api-reference/model-api/bytedance/volc-asset-update-asset"},{"title":"Delete Asset","openapi":"api-reference/model-api/bytedance/openapi/volc-asset-delete-asset/openapi.yaml POST /volc/asset/DeleteAsset","href":"/api-reference/model-api/bytedance/volc-asset-delete-asset"},{"title":"Delete Asset Group","openapi":"api-reference/model-api/bytedance/openapi/volc-asset-delete-group/openapi.yaml POST /volc/asset/DeleteAssetGroup","href":"/api-reference/model-api/bytedance/volc-asset-delete-group"}]},{"title":"seedance-2.5","tag":"NEW","href":"/api-reference/model-api/bytedance/seedance-2-5"},{"title":"seedance-2.0-mini","openapi":"api-reference/model-api/bytedance/openapi/seedance-2-0-mini/openapi.yaml POST /v1/video/generations","href":"/api-reference/model-api/bytedance/seedance-2-0-mini"},{"title":"seedance-2.0-ultra","openapi":"api-reference/model-api/bytedance/openapi/seedance-2-0-ultra/openapi.yaml POST /v1/video/generations","href":"/api-reference/model-api/bytedance/seedance-2-0-ultra"},{"title":"seedance-2.0-fast","openapi":"api-reference/model-api/bytedance/openapi/seedance-2-0-fast/openapi.yaml POST /v1/video/generations","href":"/api-reference/model-api/bytedance/seedance-2-0-fast"},{"title":"seedance-2.0","openapi":"api-reference/model-api/bytedance/openapi/seedance-2-0/openapi.yaml POST /v1/video/generations","href":"/api-reference/model-api/bytedance/seedance-2-0"},{"title":"doubao-seed-2.1-pro","openapi":"api-reference/model-api/bytedance/openapi/doubao-seed-2.1-pro/openapi.yaml POST /v1/chat/completions","href":"/api-reference/model-api/bytedance/doubao-seed-2.1-pro"},{"title":"doubao-seed-2.1-turbo","openapi":"api-reference/model-api/bytedance/openapi/doubao-seed-2.1-turbo/openapi.yaml POST /v1/chat/completions","href":"/api-reference/model-api/bytedance/doubao-seed-2.1-turbo"},{"title":"doubao-seed-evolving","openapi":"api-reference/model-api/bytedance/openapi/doubao-seed-evolving/openapi.yaml POST /v1/chat/completions","href":"/api-reference/model-api/bytedance/doubao-seed-evolving"},{"title":"doubao-seed-2.0-pro","openapi":"api-reference/model-api/bytedance/openapi/doubao-seed-2.0-pro/openapi.yaml POST /v1/chat/completions","href":"/api-reference/model-api/bytedance/doubao-seed-2.0-pro"},{"title":"doubao-seed-2.0-code","openapi":"api-reference/model-api/bytedance/openapi/doubao-seed-2.0-code/openapi.yaml POST /v1/chat/completions","href":"/api-reference/model-api/bytedance/doubao-seed-2.0-code"},{"title":"doubao-seed-2.0-lite","openapi":"api-reference/model-api/bytedance/openapi/doubao-seed-2.0-lite/openapi.yaml POST /v1/chat/completions","href":"/api-reference/model-api/bytedance/doubao-seed-2.0-lite"},{"title":"doubao-seed-2.0-mini","openapi":"api-reference/model-api/bytedance/openapi/doubao-seed-2.0-mini/openapi.yaml POST /v1/chat/completions","href":"/api-reference/model-api/bytedance/doubao-seed-2.0-mini"},{"title":"doubao-seed-1.6","openapi":"api-reference/model-api/bytedance/openapi/doubao-seed-1-6-251015/openapi.yaml POST /v1/chat/completions","href":"/api-reference/model-api/bytedance/doubao-seed-1-6-251015"},{"title":"seedream-5.0-pro","href":"/api-reference/model-api/bytedance/doubao-seedream-5-0-pro-260628"},{"title":"seedream-5.0-flash","href":"/api-reference/model-api/bytedance/doubao-seedream-5-0-flash-260915"},{"title":"seedream-5.0-lite","href":"/api-reference/model-api/bytedance/seedream-5-0-lite-260128"},{"title":"seedream-5.0","href":"/api-reference/model-api/bytedance/doubao-seedream-5-0-260128"},{"title":"seedream-4.5","href":"/api-reference/model-api/bytedance/doubao-seedream-4-5-251128"},{"title":"seedream-4.0","href":"/api-reference/model-api/bytedance/doubao-seedream-4-0-250828"},{"title":"seedream-3.0-t2i","openapi":"api-reference/model-api/bytedance/openapi/doubao-seedream-3-0-t2i-250415/openapi.yaml POST /v1/images/generations","href":"/api-reference/model-api/bytedance/doubao-seedream-3-0-t2i-250415"}]},{"group":"DeepSeek","icon":"/images/providers/deepseek.svg","pages":[{"title":"deepseek-v4.1-flash","openapi":"api-reference/model-api/deepseek/openapi/deepseek-v4-1-flash/openapi.yaml POST /v1/chat/completions","href":"/api-reference/model-api/deepseek/deepseek-v4-1-flash"},{"title":"deepseek-v4-flash","openapi":"api-reference/model-api/deepseek/openapi/deepseek-v4-flash/openapi.yaml POST /v1/chat/completions","href":"/api-reference/model-api/deepseek/deepseek-v4-flash"},{"title":"deepseek-v4-pro","openapi":"api-reference/model-api/deepseek/openapi/deepseek-v4-pro/openapi.yaml POST /v1/chat/completions","href":"/api-reference/model-api/deepseek/deepseek-v4-pro"},{"title":"deepseek-v3-2-exp","openapi":"api-reference/model-api/deepseek/openapi/deepseek-v3-2-exp/openapi.yaml POST /v1/chat/completions","href":"/api-reference/model-api/deepseek/deepseek-v3-2-exp"},{"title":"deepseek-v3-1-terminus","openapi":"api-reference/model-api/deepseek/openapi/deepseek-v3-1-terminus/openapi.yaml POST /v1/chat/completions","href":"/api-reference/model-api/deepseek/deepseek-v3-1-terminus"},{"title":"deepseek-v3-1","openapi":"api-reference/model-api/deepseek/openapi/deepseek-v3-1/openapi.yaml POST /v1/chat/completions","href":"/api-reference/model-api/deepseek/deepseek-v3-1"},{"title":"deepseek-v3","openapi":"api-reference/model-api/deepseek/openapi/deepseek-v3/openapi.yaml POST /v1/chat/completions","href":"/api-reference/model-api/deepseek/deepseek-v3"}]},{"group":"Google","icon":"/images/providers/google.svg","pages":[{"title":"gemini-4-argon","tag":"NEW","href":"/api-reference/model-api/google/gemini-4-argon"},{"title":"gemini-nano-banana-2.1","openapi":"api-reference/model-api/google/openapi/gemini-nano-banana-2-1/openapi.yaml POST /v1beta/models/gemini-nano-banana-2.1:generateContent","href":"/api-reference/model-api/google/gemini-nano-banana-2-1"},{"title":"gemini-3.8-flash","tag":"NEW","href":"/api-reference/model-api/google/gemini-3.8-flash"},{"title":"gemini-3.7-flash","openapi":"api-reference/model-api/google/openapi/gemini-3.7-flash/openapi.yaml POST /v1beta/models/gemini-3.7-flash:generateContent","href":"/api-reference/model-api/google/gemini-3.7-flash"},{"title":"gemini-3.6-flash","openapi":"api-reference/model-api/google/openapi/gemini-3.6-flash/openapi.yaml POST /v1beta/models/gemini-3.6-flash:generateContent","href":"/api-reference/model-api/google/gemini-3.6-flash"},{"title":"gemini-3.5-flash-lite","openapi":"api-reference/model-api/google/openapi/gemini-3.5-flash-lite/openapi.yaml POST /v1beta/models/gemini-3.5-flash-lite:generateContent","href":"/api-reference/model-api/google/gemini-3.5-flash-lite"},{"title":"gemini-3.5-flash","openapi":"api-reference/model-api/google/openapi/gemini-3.5-flash/openapi.yaml POST /v1beta/models/gemini-3.5-flash:generateContent","href":"/api-reference/model-api/google/gemini-3.5-flash"},{"title":"gemini-3.1-flash-image","openapi":"api-reference/model-api/google/openapi/gemini-3.1-flash-image/openapi.yaml POST /v1beta/models/gemini-3.1-flash-image:generateContent","href":"/api-reference/model-api/google/gemini-3.1-flash-image"},{"title":"gemini-3.1-flash-image-stream","openapi":"api-reference/model-api/google/openapi/gemini-3.1-flash-image-stream/openapi.yaml POST /v1beta/models/gemini-3.1-flash-image:streamGenerateContent","href":"/api-reference/model-api/google/gemini-3.1-flash-image-stream"},{"title":"gemini-3.1-flash-lite-image","openapi":"api-reference/model-api/google/openapi/gemini-3.1-flash-lite-image/openapi.yaml POST /v1beta/models/gemini-3.1-flash-lite-image:generateContent","href":"/api-reference/model-api/google/gemini-3.1-flash-lite-image"},{"title":"gemini-3.1-flash-lite-image-stream","openapi":"api-reference/model-api/google/openapi/gemini-3.1-flash-lite-image-stream/openapi.yaml POST /v1beta/models/gemini-3.1-flash-lite-image:streamGenerateContent","href":"/api-reference/model-api/google/gemini-3.1-flash-lite-image-stream"},{"title":"gemini-3.1-flash-image-preview-c","openapi":"api-reference/model-api/google/openapi/gemini-3.1-flash-image-preview-c/openapi.yaml POST /v1beta/models/gemini-3.1-flash-image-preview-c:generateContent","href":"/api-reference/model-api/google/gemini-3.1-flash-image-preview-c"},{"title":"gemini-3.1-pro-preview","openapi":"api-reference/model-api/google/openapi/gemini-3.1-pro-preview/openapi.yaml POST /v1beta/models/gemini-3.1-pro-preview:generateContent","href":"/api-reference/model-api/google/gemini-3.1-pro-preview"},{"title":"gemini-3.1-flash-lite-preview","openapi":"api-reference/model-api/google/openapi/gemini-3.1-flash-lite-preview/openapi.yaml POST /v1beta/models/gemini-3.1-flash-lite-preview:generateContent","href":"/api-reference/model-api/google/gemini-3.1-flash-lite-preview"},{"title":"gemini-3-pro-preview","openapi":"api-reference/model-api/google/openapi/gemini-3-pro-preview/openapi.yaml POST /v1beta/models/gemini-3-pro-preview:generateContent","href":"/api-reference/model-api/google/gemini-3-pro-preview"},{"title":"gemini-3-pro-preview-stream","openapi":"api-reference/model-api/google/openapi/gemini-3-pro-preview-stream/openapi.yaml POST /v1beta/models/gemini-3-pro-preview:streamGenerateContent","href":"/api-reference/model-api/google/gemini-3-pro-preview-stream"},{"title":"gemini-3-pro-image","openapi":"api-reference/model-api/google/openapi/gemini-3-pro-image/openapi.yaml POST /v1beta/models/gemini-3-pro-image:generateContent","href":"/api-reference/model-api/google/gemini-3-pro-image"},{"title":"gemini-3-pro-image-stream","openapi":"api-reference/model-api/google/openapi/gemini-3-pro-image-stream/openapi.yaml POST /v1beta/models/gemini-3-pro-image:streamGenerateContent","href":"/api-reference/model-api/google/gemini-3-pro-image-stream"},{"title":"gemini-3-pro-image-preview-c","openapi":"api-reference/model-api/google/openapi/gemini-3-pro-image-preview-c/openapi.yaml POST /v1beta/models/gemini-3-pro-image-preview-c:generateContent","href":"/api-reference/model-api/google/gemini-3-pro-image-preview-c"},{"title":"gemini-3-flash-preview","openapi":"api-reference/model-api/google/openapi/gemini-3-flash-preview/openapi.yaml POST /v1beta/models/gemini-3-flash-preview:generateContent","href":"/api-reference/model-api/google/gemini-3-flash-preview"},{"title":"gemini-2.5-pro","openapi":"api-reference/model-api/google/openapi/gemini-2-5-pro/openapi.yaml POST /v1beta/models/gemini-2.5-pro:generateContent","href":"/api-reference/model-api/google/gemini-2-5-pro"},{"title":"gemini-2.5-pro-stream","openapi":"api-reference/model-api/google/openapi/gemini-2-5-pro-stream/openapi.yaml POST /v1beta/models/gemini-2.5-pro:streamGenerateContent","href":"/api-reference/model-api/google/gemini-2-5-pro-stream"},{"title":"gemini-2.5-flash","openapi":"api-reference/model-api/google/openapi/gemini-2-5-flash/openapi.yaml POST /v1beta/models/gemini-2.5-flash:generateContent","href":"/api-reference/model-api/google/gemini-2-5-flash"},{"title":"gemini-2.5-flash-image","openapi":"api-reference/model-api/google/openapi/gemini-2-5-flash-image/openapi.yaml POST /v1beta/models/gemini-2.5-flash-image:generateContent","href":"/api-reference/model-api/google/gemini-2-5-flash-image"},{"title":"gemini-2.5-flash-image-stream","openapi":"api-reference/model-api/google/openapi/gemini-2-5-flash-image-stream/openapi.yaml POST /v1beta/models/gemini-2.5-flash-image:streamGenerateContent","href":"/api-reference/model-api/google/gemini-2-5-flash-image-stream"},{"title":"gemini-2.5-flash-lite","openapi":"api-reference/model-api/google/openapi/gemini-2-5-flash-lite/openapi.yaml POST /v1beta/models/gemini-2.5-flash-lite:generateContent","href":"/api-reference/model-api/google/gemini-2.5-flash-lite"},{"title":"gemini-2.0-flash","openapi":"api-reference/model-api/google/openapi/gemini-2-0-flash/openapi.yaml POST /v1beta/models/gemini-2.0-flash:generateContent","href":"/api-reference/model-api/google/gemini-2-0-flash"}]},{"group":"Kuaishou","icon":"/images/providers/kuaishou.svg","pages":[{"title":"kling-3.0-turbo","href":"/api-reference/model-api/kuaishou/kling-v3-turbo"},{"title":"kling-v3 \u0026 kling-v3-omni","href":"/api-reference/model-api/kuaishou/kling-v3"},{"title":"kling-video-o1","description":"Kling O1 Legacy Omni Video generation, editing, and task query API.","href":"/api-reference/model-api/kuaishou/kling-video-o1"},{"title":"kling-v2-6","href":"/api-reference/model-api/kuaishou/kling-v2-6"},{"title":"kling-v2-5-turbo","description":"Kling 2.5 Turbo text-to-video and image-to-video Legacy API.","href":"/api-reference/model-api/kuaishou/kling-v2-5-turbo"},{"title":"Kling Digital Human","tag":"NEW","href":"/api-reference/model-api/kuaishou/kling-digital-human"},{"title":"Kling Lip Sync","href":"/api-reference/model-api/kuaishou/kling-lip-sync"}]},{"group":"MiniMax","icon":"/images/providers/minimax.svg","pages":[{"title":"MiniMax-H3","href":"/api-reference/model-api/minimax/minimax-h3"},{"title":"minimax-m3","openapi":"api-reference/model-api/minimax/openapi/minimax-m3/openapi.yaml POST /v1/chat/completions","href":"/api-reference/model-api/minimax/minimax-m3"},{"title":"minimax-m2.7","openapi":"api-reference/model-api/minimax/openapi/minimax-m2.7/openapi.yaml POST /v1/chat/completions","href":"/api-reference/model-api/minimax/minimax-m2.7"},{"title":"minimax-m2.5","openapi":"api-reference/model-api/minimax/openapi/minimax-m2.5/openapi.yaml POST /v1/chat/completions","href":"/api-reference/model-api/minimax/minimax-m2.5"},{"title":"minimax-m2.1","openapi":"api-reference/model-api/minimax/openapi/minimax-m2.1/openapi.yaml POST /v1/chat/completions","href":"/api-reference/model-api/minimax/minimax-m2.1"}]},{"group":"MoonShot","icon":"/images/providers/moonshot.svg","pages":[{"title":"kimi-k3","openapi":"api-reference/model-api/moonshot/openapi/kimi-k3/openapi.yaml POST /v1/chat/completions","href":"/api-reference/model-api/moonshot/kimi-k3"},{"title":"kimi-k2.6","openapi":"api-reference/model-api/moonshot/openapi/kimi-k2-6/openapi.yaml POST /v1/chat/completions","href":"/api-reference/model-api/moonshot/kimi-k2-6"},{"title":"kimi-k2.5","openapi":"api-reference/model-api/moonshot/openapi/kimi-k2-5/openapi.yaml POST /v1/chat/completions","href":"/api-reference/model-api/moonshot/kimi-k2-5"}]},{"group":"OpenAI","icon":"/images/providers/openai.svg","pages":[{"title":"gpt-6-astra","tag":"NEW","href":"/api-reference/model-api/openai/gpt-6-astra"},{"title":"gpt-6.1-sol","tag":"NEW","openapi":"api-reference/model-api/openai/openapi/gpt-6.1-sol/openapi.yaml POST /v1/responses","href":"/api-reference/model-api/openai/gpt-6.1-sol"},{"title":"gpt-6-sol","tag":"NEW","openapi":"api-reference/model-api/openai/openapi/gpt-6-sol/openapi.yaml POST /v1/responses","href":"/api-reference/model-api/openai/gpt-6-sol"},{"title":"gpt-6-luna","tag":"NEW","openapi":"api-reference/model-api/openai/openapi/gpt-6-luna/openapi.yaml POST /v1/responses","href":"/api-reference/model-api/openai/gpt-6-luna"},{"title":"gpt-5.6","openapi":"api-reference/model-api/openai/openapi/gpt-5-6/openapi.yaml POST /v1/responses","href":"/api-reference/model-api/openai/gpt-5-6"},{"title":"gpt-5.6-sol","openapi":"api-reference/model-api/openai/openapi/gpt-5-6-sol/openapi.yaml POST /v1/responses","href":"/api-reference/model-api/openai/gpt-5-6-sol"},{"title":"gpt-5.6-terra","openapi":"api-reference/model-api/openai/openapi/gpt-5-6-terra/openapi.yaml POST /v1/responses","href":"/api-reference/model-api/openai/gpt-5-6-terra"},{"title":"gpt-5.6-luna","openapi":"api-reference/model-api/openai/openapi/gpt-5-6-luna/openapi.yaml POST /v1/responses","href":"/api-reference/model-api/openai/gpt-5-6-luna"},{"title":"gpt-5.5","openapi":"api-reference/model-api/openai/openapi/gpt-5-5/openapi.yaml POST /v1/responses","href":"/api-reference/model-api/openai/gpt-5-5"},{"title":"gpt-5.4","openapi":"api-reference/model-api/openai/openapi/gpt-5-4/openapi.yaml POST /v1/responses","href":"/api-reference/model-api/openai/gpt-5-4"},{"title":"gpt-5.4-mini","openapi":"api-reference/model-api/openai/openapi/gpt-5-4-mini/openapi.yaml POST /v1/responses","href":"/api-reference/model-api/openai/gpt-5-4-mini"},{"title":"gpt-5.3-codex","openapi":"api-reference/model-api/openai/openapi/gpt-5-3-codex/openapi.yaml POST /v1/responses","href":"/api-reference/model-api/openai/gpt-5-3-codex"},{"title":"gpt-5.2","openapi":"api-reference/model-api/openai/openapi/gpt-5-2/openapi.yaml POST /v1/responses","href":"/api-reference/model-api/openai/gpt-5-2"},{"title":"gpt-5.2-chat","openapi":"api-reference/model-api/openai/openapi/gpt-5-2-chat/openapi.yaml POST /v1/responses","href":"/api-reference/model-api/openai/gpt-5-2-chat"},{"title":"gpt-5.2-chat-latest","openapi":"api-reference/model-api/openai/openapi/gpt-5-2-chat-latest/openapi.yaml POST /v1/responses","href":"/api-reference/model-api/openai/gpt-5-2-chat-latest"},{"title":"gpt-5.2-codex","openapi":"api-reference/model-api/openai/openapi/gpt-5-2-codex/openapi.yaml POST /v1/responses","href":"/api-reference/model-api/openai/gpt-5-2-codex"},{"title":"gpt-5.1","openapi":"api-reference/model-api/openai/openapi/gpt-5-1/openapi.yaml POST /v1/chat/completions","href":"/api-reference/model-api/openai/gpt-5-1"},{"title":"gpt-5.1-chat","openapi":"api-reference/model-api/openai/openapi/gpt-5-1-chat/openapi.yaml POST /v1/chat/completions","href":"/api-reference/model-api/openai/gpt-5-1-chat"},{"title":"gpt-5.1-chat-latest","openapi":"api-reference/model-api/openai/openapi/gpt-5-1-chat-latest/openapi.yaml POST /v1/chat/completions","href":"/api-reference/model-api/openai/gpt-5-1-chat-latest"},{"title":"gpt-5.1-codex-mini","openapi":"api-reference/model-api/openai/openapi/gpt-5-1-codex-mini/openapi.yaml POST /v1/chat/completions","href":"/api-reference/model-api/openai/gpt-5-1-codex-mini"},{"title":"gpt-5","openapi":"api-reference/model-api/openai/openapi/gpt-5/openapi.yaml POST /v1/chat/completions","href":"/api-reference/model-api/openai/gpt-5"},{"title":"gpt-5-chat-latest","openapi":"api-reference/model-api/openai/openapi/gpt-5-chat-latest/openapi.yaml POST /v1/chat/completions","href":"/api-reference/model-api/openai/gpt-5-chat-latest"},{"title":"gpt-5-pro","openapi":"api-reference/model-api/openai/openapi/gpt-5-pro/openapi.yaml POST /v1/chat/completions","href":"/api-reference/model-api/openai/gpt-5-pro"},{"title":"gpt-5-codex","openapi":"api-reference/model-api/openai/openapi/gpt-5-codex/openapi.yaml POST /v1/chat/completions","href":"/api-reference/model-api/openai/gpt-5-codex"},{"title":"gpt-5-codex-high","openapi":"api-reference/model-api/openai/openapi/gpt-5-codex-high/openapi.yaml POST /v1/chat/completions","href":"/api-reference/model-api/openai/gpt-5-codex-high"},{"title":"gpt-5-codex-low","openapi":"api-reference/model-api/openai/openapi/gpt-5-codex-low/openapi.yaml POST /v1/chat/completions","href":"/api-reference/model-api/openai/gpt-5-codex-low"},{"title":"gpt-5-mini","openapi":"api-reference/model-api/openai/openapi/gpt-5-mini/openapi.yaml POST /v1/chat/completions","href":"/api-reference/model-api/openai/gpt-5-mini"},{"title":"gpt-5-nano","openapi":"api-reference/model-api/openai/openapi/gpt-5-nano/openapi.yaml POST /v1/chat/completions","href":"/api-reference/model-api/openai/gpt-5-nano"},{"title":"gpt-4o","openapi":"api-reference/model-api/openai/openapi/gpt-4o/openapi.yaml POST /v1/chat/completions","href":"/api-reference/model-api/openai/gpt-4o"},{"title":"gpt-4o-mini","openapi":"api-reference/model-api/openai/openapi/gpt-4o-mini/openapi.yaml POST /v1/chat/completions","href":"/api-reference/model-api/openai/gpt-4o-mini"},{"title":"gpt-4.1","openapi":"api-reference/model-api/openai/openapi/gpt-4-1/openapi.yaml POST /v1/chat/completions","href":"/api-reference/model-api/openai/gpt-4-1"},{"title":"gpt-4","openapi":"api-reference/model-api/openai/openapi/gpt-4/openapi.yaml POST /v1/chat/completions","href":"/api-reference/model-api/openai/gpt-4"},{"title":"sora-2-create-video","openapi":"api-reference/model-api/openai/openapi/sora-2/openapi.yaml POST /v1/videos","href":"/api-reference/model-api/openai/sora-2"},{"title":"sora-2-query-task","openapi":"api-reference/model-api/openai/openapi/sora-2-query/openapi.yaml GET /v1/videos/{id}","href":"/api-reference/model-api/openai/sora-2-query"},{"title":"sora-2-download-video","openapi":"api-reference/model-api/openai/openapi/sora-2-download/openapi.yaml GET /v1/videos/{id}/content","href":"/api-reference/model-api/openai/sora-2-download"},{"title":"GPT Image 2.5","tag":"NEW","href":"/api-reference/model-api/openai/gpt-image-2-5"},{"title":"GPT Image 2","href":"/api-reference/model-api/openai/gpt-image-2"},{"title":"gpt-image-2-c","openapi":"api-reference/model-api/openai/openapi/gpt-image-2-c/openapi.yaml POST /v1/images/generations","href":"/api-reference/model-api/openai/gpt-image-2-c"},{"title":"gpt-image-2-c-edit","openapi":"api-reference/model-api/openai/openapi/gpt-image-2-c-edit/openapi.yaml POST /v1/images/edits","href":"/api-reference/model-api/openai/gpt-image-2-c-edit"},{"title":"gpt-image-1.5","openapi":"api-reference/model-api/openai/openapi/gpt-image-1-5/openapi.yaml POST /v1/images/generations","href":"/api-reference/model-api/openai/gpt-image-1-5"},{"title":"gpt-image-1","openapi":"api-reference/model-api/openai/openapi/gpt-image-1/openapi.yaml POST /v1/images/generations","href":"/api-reference/model-api/openai/gpt-image-1"}]},{"group":"xAI","icon":"/images/providers/xai.svg","pages":[{"title":"grok-4.7","tag":"NEW","openapi":"api-reference/model-api/xai/openapi/grok-4-7/openapi.yaml POST /v1/responses","href":"/api-reference/model-api/xai/grok-4-7"},{"title":"grok-4.6","tag":"NEW","openapi":"api-reference/model-api/xai/openapi/grok-4-6/openapi.yaml POST /v1/chat/completions","href":"/api-reference/model-api/xai/grok-4-6"},{"title":"grok-4.5","tag":"NEW","openapi":"api-reference/model-api/xai/openapi/grok-4-5/openapi.yaml POST /v1/chat/completions","href":"/api-reference/model-api/xai/grok-4-5"},{"title":"grok-4.3","tag":"NEW","openapi":"api-reference/model-api/xai/openapi/grok-4-3/openapi.yaml POST /v1/chat/completions","href":"/api-reference/model-api/xai/grok-4-3"},{"title":"grok-4-1-fast-reasoning","openapi":"api-reference/model-api/xai/openapi/grok-4-1-fast-reasoning/openapi.yaml POST /v1/chat/completions","href":"/api-reference/model-api/xai/grok-4-1-fast-reasoning"},{"title":"grok-4-1-fast-non-reasoning","openapi":"api-reference/model-api/xai/openapi/grok-4-1-fast-non-reasoning/openapi.yaml POST /v1/chat/completions","href":"/api-reference/model-api/xai/grok-4-1-fast-non-reasoning"}]},{"group":"Zhipu","icon":"/images/providers/zhipu.svg","pages":[{"title":"glm-5.3","openapi":"api-reference/model-api/zhipu/openapi/glm-5.3/openapi.yaml POST /v1/chat/completions","href":"/api-reference/model-api/zhipu/glm-5.3"},{"title":"glm-5.2","openapi":"api-reference/model-api/zhipu/openapi/glm-5.2/openapi.yaml POST /v1/chat/completions","href":"/api-reference/model-api/zhipu/glm-5.2"},{"title":"glm-5.1","openapi":"api-reference/model-api/zhipu/openapi/glm-5.1/openapi.yaml POST /v1/chat/completions","href":"/api-reference/model-api/zhipu/glm-5.1"},{"title":"glm-5","openapi":"api-reference/model-api/zhipu/openapi/glm-5/openapi.yaml POST /v1/chat/completions","href":"/api-reference/model-api/zhipu/glm-5"},{"title":"glm-4-7","openapi":"api-reference/model-api/zhipu/openapi/glm-4.7/openapi.yaml POST /v1/chat/completions","href":"/api-reference/model-api/zhipu/glm-4.7"},{"title":"glm-4.5","openapi":"api-reference/model-api/zhipu/openapi/glm-4.5/openapi.yaml POST /v1/chat/completions","href":"/api-reference/model-api/zhipu/glm-4.5"}]}]}]},{"tab":"Use Cases","pages":[{"title":"Use Cases","href":"/guides/usecases/use-anyfast-in-claude-code"}]}]},{"language":"zh","pages":[{"title":"zh","href":"/zh/api-reference/model-api/kuaishou/kling-v2-6"}]}]},"title":"kling-v2-6 - AnyFast","buildId":"dpl_8LJVMfxYNq6LJkohTrn2iyWT8umj","deploymentId":"dpl_8LJVMfxYNq6LJkohTrn2iyWT8umj","dynamics":[],"chunks":[]}