Kling 4.0 native task API. Authenticate using this site’s Bearer API Key. The request body does not require model; settings.resolution=720p uses kling-4.0, while 1080p uses kling-4.0-1080p, with 1080p as the default. After successful creation, use the returned data.id to call GET /tasks?task_ids=task ID; separate multiple IDs with commas. The returned data is an array, and the result video is available at data[].outputs[].url.
Currently supported generation scenarios include prompts, first_frame, last_frame, refer_image, and feature_video. middle_frame, base_video, element, voice, audio references, callbacks, and custom external task IDs are not supported. Non-empty options.callback_url, non-empty options.external_task_id, non-empty contents.id, and other unsupported fields will return 400. options can be omitted or passed as an empty object; watermark_info.enabled=false can also be passed. Enabling watermarks is not currently supported. Supported durations range from 4 to 30 seconds, with a default of 10 seconds; 3 seconds is not supported. For text-to-video and reference scenarios, the default aspect ratio is 16:9; explicitly specifying adaptive will return 400. For first- and last-frame scenarios, explicitly specifying settings.aspect_ratio is not accepted; the aspect ratio is determined by the dimensions of the first frame image.
For text-to-video, pass prompt at the top level; contents is not required.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"OverseasAPI","description":"Overseas API documentation","colors":{"primary":"#6d28d9","light":"#f5f3ff","dark":"#2e1065"},"logo":{"light":"https://mintcdn.com/btc-de295b31/dNi9LBWUBzALFywP/public/assets/logo.webp?fit=max\u0026auto=format\u0026n=dNi9LBWUBzALFywP\u0026q=85\u0026s=bac78dc112e5baf91eafeb0fffd5fd7d","dark":"https://mintcdn.com/btc-de295b31/dNi9LBWUBzALFywP/public/assets/logo.webp?fit=max\u0026auto=format\u0026n=dNi9LBWUBzALFywP\u0026q=85\u0026s=bac78dc112e5baf91eafeb0fffd5fd7d"},"favicon":{"light":"https://mintcdn.com/btc-de295b31/dNi9LBWUBzALFywP/public/assets/favicon.ico?fit=max\u0026auto=format\u0026n=dNi9LBWUBzALFywP\u0026q=85\u0026s=3a7f47070b4df3f9f490ff43d87e6281","dark":"https://mintcdn.com/btc-de295b31/dNi9LBWUBzALFywP/public/assets/favicon.ico?fit=max\u0026auto=format\u0026n=dNi9LBWUBzALFywP\u0026q=85\u0026s=3a7f47070b4df3f9f490ff43d87e6281"},"api":{"params":{"expanded":"all"}},"contextual":{"options":["copy"],"display":"header"},"styling":{"latex":false},"navigation":{"languages":[{"language":"en","footer":{"socials":{"telegram":"https://t.me/overseas_api"}},"navbar":{"links":[{"href":"mailto:support@aiid.edu.kg","label":"Support"},{"href":"https://aiid.edu.kg/pricing","label":"Pricing"}],"primary":{"type":"button","label":"Console","href":"https://aiid.edu.kg/console"}},"href":"api-reference/en/conventions"},{"language":"cn","footer":{"socials":{"telegram":"https://t.me/overseas_api"}},"navbar":{"links":[{"href":"mailto:support@aiid.edu.kg","label":"支持"},{"href":"https://aiid.edu.kg/pricing","label":"价格"}],"primary":{"type":"button","label":"控制台","href":"https://aiid.edu.kg/console"}},"href":"api-reference/cn/conventions"},{"language":"zh-Hant","footer":{"socials":{"telegram":"https://t.me/overseas_api"}},"navbar":{"links":[{"href":"mailto:support@aiid.edu.kg","label":"支援"},{"href":"https://aiid.edu.kg/pricing","label":"價格"}],"primary":{"type":"button","label":"控制台","href":"https://aiid.edu.kg/console"}},"href":"api-reference/zh-tw/conventions"},{"language":"fr","footer":{"socials":{"telegram":"https://t.me/overseas_api"}},"navbar":{"links":[{"href":"mailto:support@aiid.edu.kg","label":"Support"},{"href":"https://aiid.edu.kg/pricing","label":"Tarifs"}],"primary":{"type":"button","label":"Console","href":"https://aiid.edu.kg/console"}},"href":"api-reference/fr/conventions"},{"language":"ja","footer":{"socials":{"telegram":"https://t.me/overseas_api"}},"navbar":{"links":[{"href":"mailto:support@aiid.edu.kg","label":"サポート"},{"href":"https://aiid.edu.kg/pricing","label":"料金"}],"primary":{"type":"button","label":"コンソール","href":"https://aiid.edu.kg/console"}},"href":"api-reference/ja/conventions"},{"language":"ru","footer":{"socials":{"telegram":"https://t.me/overseas_api"}},"navbar":{"links":[{"href":"mailto:support@aiid.edu.kg","label":"Поддержка"},{"href":"https://aiid.edu.kg/pricing","label":"Тарифы"}],"primary":{"type":"button","label":"Консоль","href":"https://aiid.edu.kg/console"}},"href":"api-reference/ru/conventions"},{"language":"vi","footer":{"socials":{"telegram":"https://t.me/overseas_api"}},"navbar":{"links":[{"href":"mailto:support@aiid.edu.kg","label":"Hỗ trợ"},{"href":"https://aiid.edu.kg/pricing","label":"Bảng giá"}],"primary":{"type":"button","label":"Bảng điều khiển","href":"https://aiid.edu.kg/console"}},"href":"api-reference/vi/conventions"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"btc-de295b31","hasAudioNarration":false,"actualSubdomain":"btc-de295b31","customDomains":["docs.aiid.edu.kg"],"gitSource":{"type":"github","owner":"btcfoxman","repo":"new-api-docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6adcd70fa22308d93b4ed191","collectionId":"a508850c-f314-4580-b926-7540fa8a2d66","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6adcd70fa22308d93b4ed191"},"entitlements":{},"buildId":"6adcd70fa22308d93b4ed191","clientVersion":"0.0.4045","searchFilterCounts":[{"language":"cn","tag":"API 参考","count":32},{"language":"en","tag":"API Reference","count":32},{"language":"fr","tag":"Référence API","count":32},{"language":"ja","tag":"API リファレンス","count":32},{"language":"ru","tag":"Справочник API","count":32},{"language":"vi","tag":"Tài liệu API","count":32},{"language":"zh-Hant","tag":"API 參考","count":32},{"language":"cn","tag":"开发文档","count":15},{"language":"en","tag":"Guides","count":15},{"language":"fr","tag":"Guides","count":15},{"language":"ja","tag":"ガイド","count":15},{"language":"ru","tag":"Руководства","count":15},{"language":"vi","tag":"Hướng dẫn","count":15},{"language":"zh-Hant","tag":"開發文檔","count":15},{"language":"cn","tag":"Skills","count":7},{"language":"en","tag":"Skills","count":7},{"language":"fr","tag":"Skills","count":7},{"language":"ja","tag":"Skills","count":7},{"language":"ru","tag":"Начало работы","count":7},{"language":"ru","tag":"Skills","count":7},{"language":"vi","tag":"Bắt đầu","count":7},{"language":"vi","tag":"Skills","count":7},{"language":"zh-Hant","tag":"Skills","count":7},{"language":"cn","tag":"集成与工具","count":6},{"language":"en","tag":"Tools","count":6},{"language":"fr","tag":"Outils","count":6},{"language":"ja","tag":"ツール","count":6},{"language":"ru","tag":"Инструменты","count":6},{"language":"vi","tag":"Công cụ","count":6},{"language":"zh-Hant","tag":"整合與工具","count":6},{"language":"cn","tag":"视频生成Vidu格式","count":5},{"language":"en","tag":"Video generation Vidu","count":5},{"language":"fr","tag":"Génération vidéo Vidu","count":5},{"language":"ja","tag":"Video generation Vidu","count":5},{"language":"ru","tag":"Генерация видео Vidu","count":5},{"language":"vi","tag":"Tạo video Vidu","count":5},{"language":"zh-Hant","tag":"影片生成 Vidu 格式","count":5},{"language":"cn","tag":"概览","count":4},{"language":"cn","tag":"视频生成Kling格式","count":4},{"language":"cn","tag":"开发指南","count":4},{"language":"cn","tag":"开始使用","count":4},{"language":"en","tag":"Overview","count":4},{"language":"en","tag":"Video generation Kling format","count":4},{"language":"en","tag":"Developer Guide","count":4},{"language":"en","tag":"Get started","count":4},{"language":"fr","tag":"Aperçu","count":4},{"language":"fr","tag":"Format de génération vidéo Kling","count":4},{"language":"fr","tag":"Guide développeur","count":4},{"language":"fr","tag":"Bien démarrer","count":4},{"language":"ja","tag":"概要","count":4},{"language":"ja","tag":"動画生成Kling形式","count":4},{"language":"ja","tag":"開発ガイド","count":4},{"language":"ja","tag":"はじめに","count":4},{"language":"ru","tag":"Обзор","count":4},{"language":"ru","tag":"ФорматKling генерации видео","count":4},{"language":"ru","tag":"Руководство разработчика","count":4},{"language":"vi","tag":"Tổng quan","count":4},{"language":"vi","tag":"Định dạngKling tạo video","count":4},{"language":"vi","tag":"Hướng dẫn phát triển","count":4},{"language":"zh-Hant","tag":"概覽","count":4},{"language":"zh-Hant","tag":"影片生成Kling格式","count":4},{"language":"zh-Hant","tag":"開發指南","count":4},{"language":"zh-Hant","tag":"開始使用","count":4},{"language":"cn","tag":"视频生成Sora兼容格式","count":3},{"language":"en","tag":"Video generation Sora compatible formats","count":3},{"language":"fr","tag":"Formats compatibles avec la génération de vidéosSora","count":3},{"language":"ja","tag":"動画生成Sora対応形式","count":3},{"language":"ru","tag":"Совместимый формат для Sora генерации видео","count":3},{"language":"vi","tag":"Định dạng tương thích Sora cho tạo video","count":3},{"language":"zh-Hant","tag":"影片生成Sora相容格式","count":3}]},"assistantConfig":{},"basePath":"","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":"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":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"html{font-size:15px}#api-playground-input,#body-content,#content-area,.api-section,.mdx-content,.request-example,.response-example{font-size:.9rem}.api-section pre,.request-example pre,.response-example pre,code{font-size:.85em}#page-title,.api-section h1,.api-section h2,.api-section h3{letter-spacing:-.01em}"}],"page":{"pagePath":"api-reference/en/video-generation-kling-format/create-kling-text-to-video","slug":"/api-reference/en/video-generation-kling-format/create-kling-text-to-video","pageMetadata":{"title":"Kling Text-to-Video","openapi":"api-reference/en/openapi.json POST /text-to-video/kling-4.0","generated":true,"description":"This series supports OpenAI video generation formats (see the link [Video generation Sora compatible formats](/api-reference/en/video-generation-sora-compatible-format/create-video)).\n\nKling 4.0 native task API. Authenticate using this site's Bearer API Key. The request body does not require model; settings.resolution=720p uses kling-4.0, while 1080p uses kling-4.0-1080p, with 1080p as the default. After successful creation, use the returned data.id to call GET /tasks?task_ids=task ID; separate multiple IDs with commas. The returned data is an array, and the result video is available at data[].outputs[].url.\n\nCurrently supported generation scenarios include prompts, first_frame, last_frame, refer_image, and feature_video. middle_frame, base_video, element, voice, audio references, callbacks, and custom external task IDs are not supported. Non-empty options.callback_url, non-empty options.external_task_id, non-empty contents.id, and other unsupported fields will return 400. options can be omitted or passed as an empty object; watermark_info.enabled=false can also be passed. Enabling watermarks is not currently supported. Supported durations range from 4 to 30 seconds, with a default of 10 seconds; 3 seconds is not supported. For text-to-video and reference scenarios, the default aspect ratio is 16:9; explicitly specifying adaptive will return 400. For first- and last-frame scenarios, explicitly specifying settings.aspect_ratio is not accepted; the aspect ratio is determined by the dimensions of the first frame image.\n\nFor text-to-video, pass prompt at the top level; contents is not required.","href":"/api-reference/en/video-generation-kling-format/create-kling-text-to-video"},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n a: \"a\",\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsxs(_components.p, {\n children: [\"This series supports OpenAI video generation formats (see the link \", _jsx(_components.a, {\n href: \"/api-reference/en/video-generation-sora-compatible-format/create-video\",\n children: \"Video generation Sora compatible formats\"\n }), \").\"]\n }), \"\\n\", _jsx(_components.p, {\n children: \"Kling 4.0 native task API. Authenticate using this site’s Bearer API Key. The request body does not require model; settings.resolution=720p uses kling-4.0, while 1080p uses kling-4.0-1080p, with 1080p as the default. After successful creation, use the returned data.id to call GET /tasks?task_ids=task ID; separate multiple IDs with commas. The returned data is an array, and the result video is available at data[].outputs[].url.\"\n }), \"\\n\", _jsx(_components.p, {\n children: \"Currently supported generation scenarios include prompts, first_frame, last_frame, refer_image, and feature_video. middle_frame, base_video, element, voice, audio references, callbacks, and custom external task IDs are not supported. Non-empty options.callback_url, non-empty options.external_task_id, non-empty contents.id, and other unsupported fields will return 400. options can be omitted or passed as an empty object; watermark_info.enabled=false can also be passed. Enabling watermarks is not currently supported. Supported durations range from 4 to 30 seconds, with a default of 10 seconds; 3 seconds is not supported. For text-to-video and reference scenarios, the default aspect ratio is 16:9; explicitly specifying adaptive will return 400. For first- and last-frame scenarios, explicitly specifying settings.aspect_ratio is not accepted; the aspect ratio is determined by the dimensions of the first frame image.\"\n }), \"\\n\", _jsx(_components.p, {\n children: \"For text-to-video, pass prompt at the top level; contents is not required.\"\n })]\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}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Kling Text-to-Video","openapi":"api-reference/en/openapi.json POST /text-to-video/kling-4.0","generated":true,"description":"This series supports OpenAI video generation formats (see the link [Video generation Sora compatible formats](/api-reference/en/video-generation-sora-compatible-format/create-video)).\n\nKling 4.0 native task API. Authenticate using this site's Bearer API Key. The request body does not require model; settings.resolution=720p uses kling-4.0, while 1080p uses kling-4.0-1080p, with 1080p as the default. After successful creation, use the returned data.id to call GET /tasks?task_ids=task ID; separate multiple IDs with commas. The returned data is an array, and the result video is available at data[].outputs[].url.\n\nCurrently supported generation scenarios include prompts, first_frame, last_frame, refer_image, and feature_video. middle_frame, base_video, element, voice, audio references, callbacks, and custom external task IDs are not supported. Non-empty options.callback_url, non-empty options.external_task_id, non-empty contents.id, and other unsupported fields will return 400. options can be omitted or passed as an empty object; watermark_info.enabled=false can also be passed. Enabling watermarks is not currently supported. Supported durations range from 4 to 30 seconds, with a default of 10 seconds; 3 seconds is not supported. For text-to-video and reference scenarios, the default aspect ratio is 16:9; explicitly specifying adaptive will return 400. For first- and last-frame scenarios, explicitly specifying settings.aspect_ratio is not accepted; the aspect ratio is determined by the dimensions of the first frame image.\n\nFor text-to-video, pass prompt at the top level; contents is not required.","href":"/api-reference/en/video-generation-kling-format/create-kling-text-to-video"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"summary":"Kling Text-to-Video","operationId":"create_kling4_native_text_to_video","tags":["Video generation Kling format"],"description":"This series supports OpenAI video generation formats (see the link [Video generation Sora compatible formats](/api-reference/en/video-generation-sora-compatible-format/create-video)).\n\nKling 4.0 native task API. Authenticate using this site's Bearer API Key. The request body does not require model; settings.resolution=720p uses kling-4.0, while 1080p uses kling-4.0-1080p, with 1080p as the default. After successful creation, use the returned data.id to call GET /tasks?task_ids=task ID; separate multiple IDs with commas. The returned data is an array, and the result video is available at data[].outputs[].url.\n\nCurrently supported generation scenarios include prompts, first_frame, last_frame, refer_image, and feature_video. middle_frame, base_video, element, voice, audio references, callbacks, and custom external task IDs are not supported. Non-empty options.callback_url, non-empty options.external_task_id, non-empty contents.id, and other unsupported fields will return 400. options can be omitted or passed as an empty object; watermark_info.enabled=false can also be passed. Enabling watermarks is not currently supported. Supported durations range from 4 to 30 seconds, with a default of 10 seconds; 3 seconds is not supported. For text-to-video and reference scenarios, the default aspect ratio is 16:9; explicitly specifying adaptive will return 400. For first- and last-frame scenarios, explicitly specifying settings.aspect_ratio is not accepted; the aspect ratio is determined by the dimensions of the first frame image.\n\nFor text-to-video, pass prompt at the top level; contents is not required.","requestBody":"2bc47d31-55cc-46e0-9f12-e80629aa4dea","responses":{"200":"d36b1f16-a3e4-4068-bc18-aa66c67392c9","400":"e927bca6-fdd6-400a-8e60-1e2136ae30be"},"x-doc-source":"relay-openapi+contract-transform","x-drift-status":"ok","x-drift-count":0,"x-drift-types":[],"x-mint":{"href":"/api-reference/en/video-generation-kling-format/create-kling-text-to-video"},"method":"post","type":"path","servers":["96249d24-7648-4dcd-a630-a1a9cdfe7c23"],"security":["999bc20d-1574-43d0-8017-379a5e866512"],"path":"/text-to-video/kling-4.0","baseUrlOptions":["https://api.aiid.edu.kg"],"title":"Kling Text-to-Video","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["prompt"],"properties":{"prompt":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"prompt","typeLabel":"string"},"settings":{"type":"object","additionalProperties":false,"properties":{"resolution":{"type":"string","enum":["720p","1080p"],"default":"1080p","uniqueKey":"settings.resolution","typeLabel":"enum\u003cstring>"},"duration":{"type":"integer","minimum":4,"maximum":30,"default":10,"uniqueKey":"settings.duration","typeLabel":"integer"},"aspect_ratio":{"type":"string","enum":["21:9","16:9","9:16","1:1"],"default":"16:9","uniqueKey":"settings.aspect_ratio","typeLabel":"enum\u003cstring>"}},"uniqueKey":"settings","typeLabel":"object"},"options":{"type":"object","additionalProperties":false,"description":"You can omit it, pass an empty object, or explicitly disable the watermark.","properties":{"watermark_info":{"type":"object","additionalProperties":false,"required":["enabled"],"properties":{"enabled":{"type":"boolean","enum":[false],"isRequired":true,"uniqueKey":"options.watermark_info.enabled","typeLabel":"enum\u003cboolean>"}},"uniqueKey":"options.watermark_info","typeLabel":"object"}},"uniqueKey":"options","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"kling4_native_720p":{"title":"kling4_native_720p","value":{"settings":{"resolution":"720p","duration":10,"aspect_ratio":"16:9"},"options":{},"prompt":"A cinematic landscape with natural motion"}},"kling4_native_1080p":{"title":"kling4_native_1080p","value":{"settings":{"resolution":"1080p","duration":10,"aspect_ratio":"16:9"},"options":{},"prompt":"A cinematic landscape with natural motion"}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"d36b1f16-a3e4-4068-bc18-aa66c67392c9":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["code","message","request_id","data"],"properties":{"code":{"type":"integer","example":0,"isRequired":true,"uniqueKey":"code","typeLabel":"integer"},"message":{"type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"request_id":{"type":"string","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"},"data":{"type":"object","properties":{"id":{"type":"string","description":"Task ID on this site. Pass it as-is when querying.","uniqueKey":"data.id","typeLabel":"string"},"status":{"type":"string","enum":["submitted","processing","succeeded","failed"],"uniqueKey":"data.status","typeLabel":"enum\u003cstring>"},"create_time":{"type":"integer","format":"int64","description":"Creation time, in Unix milliseconds.","uniqueKey":"data.create_time","typeLabel":"integer\u003cint64>"},"update_time":{"type":"integer","format":"int64","description":"Update time, in Unix milliseconds.","uniqueKey":"data.update_time","typeLabel":"integer\u003cint64>"},"external_id":{"type":"string","maxLength":0,"uniqueKey":"data.external_id","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"success":{"title":"success","value":{"code":0,"message":"SUCCEED","request_id":"request_example","data":{"id":"task_example","status":"submitted","create_time":1792710000000,"update_time":1792710000000,"external_id":""}}}},"exampleType":"examples"}},"exampleType":"examples"},"e927bca6-fdd6-400a-8e60-1e2136ae30be":{"description":"The request parameters are invalid or contain unsupported fields.","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}}},"security":{"999bc20d-1574-43d0-8017-379a5e866512":{"BearerAuth":{"type":"http","scheme":"bearer","description":"Use Bearer Token authentication.\nFormat: `Authorization: Bearer sk-xxxxxx`","scopes":[],"schemeName":"BearerAuth"}}},"servers":{"96249d24-7648-4dcd-a630-a1a9cdfe7c23":{"url":"https://api.aiid.edu.kg"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"Use Bearer Token authentication.\nFormat: `Authorization: Bearer sk-xxxxxx`","scopes":[],"schemeName":"BearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Use Bearer Token authentication.\nFormat: `Authorization: Bearer sk-xxxxxx`","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"BearerAuth","name":"Authorization"}],"title":"BearerAuth"}]},"originalFileLocation":"api-reference/en/openapi.json"},"subdomain":"btc-de295b31","siteName":"OverseasAPI","title":"Kling Text-to-Video - OverseasAPI","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/api-reference/en/video-generation-kling-format/create-kling-text-to-video","matchLevel":0},"cn":{"href":"/api-reference/cn/conventions","matchLevel":4},"zh-Hant":{"href":"/api-reference/zh-tw/conventions","matchLevel":4},"fr":{"href":"/api-reference/fr/conventions","matchLevel":4},"ja":{"href":"/api-reference/ja/conventions","matchLevel":4},"ru":{"href":"/api-reference/ru/conventions","matchLevel":4},"vi":{"href":"/api-reference/vi/conventions","matchLevel":4}}},"lastModified":"2026-10-23T20:35:03.501Z","originalFileLocation":"api-reference/en/video-generation-kling-format/create-kling-text-to-video.mdx","locale":"en"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"This series supports OpenAI video generation formats (see the link Video generation Sora compatible formats). Kling 4.0 native task API. Authenticate using this site\u0026#x27;s Bearer API Key. The request body does not require model; settings.resolution=720p uses kling-4.0, while 1080p uses kling-4.0-1080p, with 1080p as the default. After successful creation, use the returned data.id to call GET /tasks?task_ids=task ID; separate multiple IDs with commas. The returned data is an array, and the result video is available at data[].outputs[].url. Currently supported generation scenarios include prompts, first_frame, last_frame, refer_image, and feature_video. middle_frame, base_video, element, voice, audio references, callbacks, and custom external task IDs are not supported. Non-empty options.callback_url, non-empty options.external_task_id, non-empty contents.id, and other unsupported fields will return 400. options can be omitted or passed as an empty object; watermark_info.enabled=false can also be passed. Enabling watermarks is not currently supported. Supported durations range from 4 to 30 seconds, with a default of 10 seconds; 3 seconds is not supported. For text-to-video and reference scenarios, the default aspect ratio is 16:9; explicitly specifying adaptive will return 400. For first- and last-frame scenarios, explicitly specifying settings.aspect_ratio is not accepted; the aspect ratio is determined by the dimensions of the first frame image. For text-to-video, pass prompt at the top level; contents is not required.\">\u003cmeta data-mint-head name=\"application-name\" content=\"OverseasAPI\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/btc-de295b31/IplwZem2it_4bFJe/_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/btc-de295b31/IplwZem2it_4bFJe/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/btc-de295b31/IplwZem2it_4bFJe/_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/btc-de295b31/IplwZem2it_4bFJe/_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/btc-de295b31/IplwZem2it_4bFJe/_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/btc-de295b31/IplwZem2it_4bFJe/_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/btc-de295b31/IplwZem2it_4bFJe/_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/btc-de295b31/IplwZem2it_4bFJe/_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/btc-de295b31/IplwZem2it_4bFJe/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Kling Text-to-Video - OverseasAPI\">\u003cmeta data-mint-head property=\"og:description\" content=\"This series supports OpenAI video generation formats (see the link Video generation Sora compatible formats). Kling 4.0 native task API. Authenticate using this site\u0026#x27;s Bearer API Key. The request body does not require model; settings.resolution=720p uses kling-4.0, while 1080p uses kling-4.0-1080p, with 1080p as the default. After successful creation, use the returned data.id to call GET /tasks?task_ids=task ID; separate multiple IDs with commas. The returned data is an array, and the result video is available at data[].outputs[].url. Currently supported generation scenarios include prompts, first_frame, last_frame, refer_image, and feature_video. middle_frame, base_video, element, voice, audio references, callbacks, and custom external task IDs are not supported. Non-empty options.callback_url, non-empty options.external_task_id, non-empty contents.id, and other unsupported fields will return 400. options can be omitted or passed as an empty object; watermark_info.enabled=false can also be passed. Enabling watermarks is not currently supported. Supported durations range from 4 to 30 seconds, with a default of 10 seconds; 3 seconds is not supported. For text-to-video and reference scenarios, the default aspect ratio is 16:9; explicitly specifying adaptive will return 400. For first- and last-frame scenarios, explicitly specifying settings.aspect_ratio is not accepted; the aspect ratio is determined by the dimensions of the first frame image. For text-to-video, pass prompt at the top level; contents is not required.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"OverseasAPI\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.aiid.edu.kg/api-reference/en/video-generation-kling-format/create-kling-text-to-video\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://btc-de295b31.mintlify.app/_mintlify/api/og/v2?division=Video+generation+Kling+format\u0026amp;title=Kling+Text-to-Video\u0026amp;description=This+series+supports+OpenAI+video+generation+formats+%28see+the+link+%5BVideo+generation+Sora+compatible+formats%5D%28%2Fapi-reference%2Fen%2Fvideo-generation-sora-compatible\u0026amp;theme=4acb683881b01fff206da5f1\u0026amp;signature=e895cc9eaa2e82622586f4fafa78d51f7b441746a3652a0531604b270bc4a671\">\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 Text-to-Video - OverseasAPI\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"This series supports OpenAI video generation formats (see the link Video generation Sora compatible formats). Kling 4.0 native task API. Authenticate using this site\u0026#x27;s Bearer API Key. The request body does not require model; settings.resolution=720p uses kling-4.0, while 1080p uses kling-4.0-1080p, with 1080p as the default. After successful creation, use the returned data.id to call GET /tasks?task_ids=task ID; separate multiple IDs with commas. The returned data is an array, and the result video is available at data[].outputs[].url. Currently supported generation scenarios include prompts, first_frame, last_frame, refer_image, and feature_video. middle_frame, base_video, element, voice, audio references, callbacks, and custom external task IDs are not supported. Non-empty options.callback_url, non-empty options.external_task_id, non-empty contents.id, and other unsupported fields will return 400. options can be omitted or passed as an empty object; watermark_info.enabled=false can also be passed. Enabling watermarks is not currently supported. Supported durations range from 4 to 30 seconds, with a default of 10 seconds; 3 seconds is not supported. For text-to-video and reference scenarios, the default aspect ratio is 16:9; explicitly specifying adaptive will return 400. For first- and last-frame scenarios, explicitly specifying settings.aspect_ratio is not accepted; the aspect ratio is determined by the dimensions of the first frame image. For text-to-video, pass prompt at the top level; contents is not required.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://btc-de295b31.mintlify.app/_mintlify/api/og/v2?division=Video+generation+Kling+format\u0026amp;title=Kling+Text-to-Video\u0026amp;description=This+series+supports+OpenAI+video+generation+formats+%28see+the+link+%5BVideo+generation+Sora+compatible+formats%5D%28%2Fapi-reference%2Fen%2Fvideo-generation-sora-compatible\u0026amp;theme=4acb683881b01fff206da5f1\u0026amp;signature=e895cc9eaa2e82622586f4fafa78d51f7b441746a3652a0531604b270bc4a671\">\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/btc-de295b31/IplwZem2it_4bFJe/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"OverseasAPI\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#6d28d9\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.aiid.edu.kg/api-reference/en/video-generation-kling-format/create-kling-text-to-video\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/en/video-generation-kling-format/create-kling-text-to-video.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.aiid.edu.kg/#organization\",\"name\":\"OverseasAPI\",\"url\":\"https://docs.aiid.edu.kg\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/btc-de295b31/dNi9LBWUBzALFywP/public/assets/logo.webp?fit=max\u0026auto=format\u0026n=dNi9LBWUBzALFywP\u0026q=85\u0026s=bac78dc112e5baf91eafeb0fffd5fd7d\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.aiid.edu.kg#website\",\"name\":\"OverseasAPI\",\"url\":\"https://docs.aiid.edu.kg\",\"publisher\":{\"@id\":\"https://docs.aiid.edu.kg/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.aiid.edu.kg/api-reference/en/video-generation-kling-format/create-kling-text-to-video#webpage\",\"url\":\"https://docs.aiid.edu.kg/api-reference/en/video-generation-kling-format/create-kling-text-to-video\",\"name\":\"Kling Text-to-Video\",\"description\":\"This series supports OpenAI video generation formats (see the link Video generation Sora compatible formats). Kling 4.0 native task API. Authenticate using this site's Bearer API Key. The request body does not require model; settings.resolution=720p uses kling-4.0, while 1080p uses kling-4.0-1080p, with 1080p as the default. After successful creation, use the returned data.id to call GET /tasks?task_ids=task ID; separate multiple IDs with commas. The returned data is an array, and the result video is available at data[].outputs[].url. Currently supported generation scenarios include prompts, first_frame, last_frame, refer_image, and feature_video. middle_frame, base_video, element, voice, audio references, callbacks, and custom external task IDs are not supported. Non-empty options.callback_url, non-empty options.external_task_id, non-empty contents.id, and other unsupported fields will return 400. options can be omitted or passed as an empty object; watermark_info.enabled=false can also be passed. Enabling watermarks is not currently supported. Supported durations range from 4 to 30 seconds, with a default of 10 seconds; 3 seconds is not supported. For text-to-video and reference scenarios, the default aspect ratio is 16:9; explicitly specifying adaptive will return 400. For first- and last-frame scenarios, explicitly specifying settings.aspect_ratio is not accepted; the aspect ratio is determined by the dimensions of the first frame image. For text-to-video, pass prompt at the top level; contents is not required.\",\"dateModified\":\"2026-10-23T20:35:03.501Z\",\"isPartOf\":{\"@id\":\"https://docs.aiid.edu.kg#website\"},\"breadcrumb\":{\"@id\":\"https://docs.aiid.edu.kg/api-reference/en/video-generation-kling-format/create-kling-text-to-video#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.aiid.edu.kg/api-reference/en/video-generation-kling-format/create-kling-text-to-video#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Video generation Kling format\",\"item\":\"https://docs.aiid.edu.kg/api-reference/en/video-generation-kling-format/create-kling-image-to-video\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Kling Text-to-Video\",\"item\":\"https://docs.aiid.edu.kg/api-reference/en/video-generation-kling-format/create-kling-text-to-video\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.aiid.edu.kg/api-reference/en/video-generation-kling-format/create-kling-text-to-video#apireference\",\"headline\":\"Kling Text-to-Video\",\"name\":\"Kling Text-to-Video\",\"description\":\"This series supports OpenAI video generation formats (see the link Video generation Sora compatible formats). Kling 4.0 native task API. Authenticate using this site's Bearer API Key. The request body does not require model; settings.resolution=720p uses kling-4.0, while 1080p uses kling-4.0-1080p, with 1080p as the default. After successful creation, use the returned data.id to call GET /tasks?task_ids=task ID; separate multiple IDs with commas. The returned data is an array, and the result video is available at data[].outputs[].url. Currently supported generation scenarios include prompts, first_frame, last_frame, refer_image, and feature_video. middle_frame, base_video, element, voice, audio references, callbacks, and custom external task IDs are not supported. Non-empty options.callback_url, non-empty options.external_task_id, non-empty contents.id, and other unsupported fields will return 400. options can be omitted or passed as an empty object; watermark_info.enabled=false can also be passed. Enabling watermarks is not currently supported. Supported durations range from 4 to 30 seconds, with a default of 10 seconds; 3 seconds is not supported. For text-to-video and reference scenarios, the default aspect ratio is 16:9; explicitly specifying adaptive will return 400. For first- and last-frame scenarios, explicitly specifying settings.aspect_ratio is not accepted; the aspect ratio is determined by the dimensions of the first frame image. For text-to-video, pass prompt at the top level; contents is not required.\",\"url\":\"https://docs.aiid.edu.kg/api-reference/en/video-generation-kling-format/create-kling-text-to-video\",\"mainEntityOfPage\":{\"@id\":\"https://docs.aiid.edu.kg/api-reference/en/video-generation-kling-format/create-kling-text-to-video#webpage\"},\"dateModified\":\"2026-10-23T20:35:03.501Z\",\"publisher\":{\"@id\":\"https://docs.aiid.edu.kg/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.aiid.edu.kg#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"OverseasAPI\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"OverseasAPI","nav":{"global":null,"languages":[{"language":"en","footer":{"socials":{"telegram":"https://t.me/overseas_api"}},"navbar":{"links":[{"href":"mailto:support@aiid.edu.kg","label":"Support"},{"href":"https://aiid.edu.kg/pricing","label":"Pricing"}],"primary":{"type":"button","label":"Console","href":"https://aiid.edu.kg/console"}},"tabs":[{"tab":"API Reference","groups":[{"group":"Overview","pages":[{"title":"Calling Conventions","href":"/api-reference/en/conventions"},{"title":"Quickstart","href":"/api-reference/en/quickstart"},{"title":"Online Debugging","href":"/api-reference/en/online-debug"},{"title":"AI-Generated Integration Code","href":"/api-reference/en/ai-codegen"}]},{"group":"Gemini Format for Image Generation","pages":[{"title":"Gemini Images (Nano Banana)","openapi":"api-reference/en/openapi.json POST /v1beta/models/{model}:generateContent","href":"/api-reference/en/image-generation-gemini-format/gemini-images-nano-banana"}]},{"group":"Image generationOpenAI DALL-E format","pages":[{"title":"Edit images (OpenAI Dall-E compatible)","openapi":"api-reference/en/openapi.json POST /v1/images/edits","href":"/api-reference/en/image-generation-openai-dall-e-format/edit-images-openai-dall-e-compatible"},{"title":"Generate images (compatible with OpenAI Dall-E)","openapi":"api-reference/en/openapi.json POST /v1/images/generations","href":"/api-reference/en/image-generation-openai-dall-e-format/generate-images-compatible-with-openai-dall-e"}]},{"group":"List models","pages":[{"title":"List models","openapi":"api-reference/en/openapi.json GET /v1/models","href":"/api-reference/en/list-models/list-models"},{"title":"Get Gemini Format","openapi":"api-reference/en/openapi.json GET /v1beta/models","href":"/api-reference/en/list-models/get-gemini-format"}]},{"group":"Music generation task format","pages":[{"title":"Query a music task by ID","openapi":"api-reference/en/openapi.json GET /suno/fetch/{task_id}","href":"/api-reference/en/music-generation-task-format/query-a-music-task-by-id"},{"title":"Create a music or sound generation task","openapi":"api-reference/en/openapi.json POST /suno/submit/music","href":"/api-reference/en/music-generation-task-format/create-a-music-or-sound-generation-task"}]},{"group":"OpenAI Format (Responses)","pages":[{"title":"Create response (OpenAI Responses API)","openapi":"api-reference/en/openapi.json POST /v1/responses","href":"/api-reference/en/openai-format-responses/create-response"},{"title":"Query responses (OpenAI Responses API)","openapi":"api-reference/en/openapi.json GET /v1/responses/{response_id}","href":"/api-reference/en/openai-format-responses/query-responses-openai-responses-api"}]},{"group":"OpenAI format (Chat)","pages":[{"title":"Create chat session","openapi":"api-reference/en/openapi.json POST /v1/chat/completions","href":"/api-reference/en/openai-format-chat/create-chat-session"}]},{"group":"Video generation Kling format","pages":[{"title":"Kling Image-to-Video","openapi":"api-reference/en/openapi.json POST /image-to-video/kling-4.0","description":"This series supports OpenAI video generation formats (see the link [Video generation Sora compatible formats](/api-reference/en/video-generation-sora-compatible-format/create-video)).\n\nKling 4.0 native task API. Authenticate using this site's Bearer API Key. The request body does not require model; settings.resolution=720p uses kling-4.0, while 1080p uses kling-4.0-1080p, with 1080p as the default. After successful creation, use the returned data.id to call GET /tasks?task_ids=task ID; separate multiple IDs with commas. The returned data is an array, and the result video is available at data[].outputs[].url.\n\nCurrently supported generation scenarios include prompts, first_frame, last_frame, refer_image, and feature_video. middle_frame, base_video, element, voice, audio references, callbacks, and custom external task IDs are not supported. Non-empty options.callback_url, non-empty options.external_task_id, non-empty contents.id, and other unsupported fields will return 400. options can be omitted or passed as an empty object; watermark_info.enabled=false can also be passed. Enabling watermarks is not currently supported. Supported durations range from 4 to 30 seconds, with a default of 10 seconds; 3 seconds is not supported. For text-to-video and reference scenarios, the default aspect ratio is 16:9; explicitly specifying adaptive will return 400. For first- and last-frame scenarios, explicitly specifying settings.aspect_ratio is not accepted; the aspect ratio is determined by the dimensions of the first frame image.\n\nFor image-to-video, `contents` must include a non-empty `prompt` and `first_frame`, and may also include `last_frame`; `first_frame` and `last_frame` can each contain at most one image. The first and last frames cannot be used together with `refer_image` reference images or `feature_video` reference videos; doing so returns a 400 error. `settings.aspect_ratio` is not supported.","href":"/api-reference/en/video-generation-kling-format/create-kling-image-to-video"},{"title":"Kling Text-to-Video","openapi":"api-reference/en/openapi.json POST /text-to-video/kling-4.0","href":"/api-reference/en/video-generation-kling-format/create-kling-text-to-video"},{"title":"Kling All-in-One Reference","openapi":"api-reference/en/openapi.json POST /omni-video/kling-4.0","description":"This series supports OpenAI video generation formats (see the link [Video generation Sora compatible formats](/api-reference/en/video-generation-sora-compatible-format/create-video)).\n\nKling 4.0 native task API. Authenticate using this site's Bearer API Key. The request body does not require model; settings.resolution=720p uses kling-4.0, while 1080p uses kling-4.0-1080p, with 1080p as the default. After successful creation, use the returned data.id to call GET /tasks?task_ids=task ID; separate multiple IDs with commas. The returned data is an array, and the result video is available at data[].outputs[].url.\n\nCurrently supported generation scenarios include prompts, first_frame, last_frame, refer_image, and feature_video. middle_frame, base_video, element, voice, audio references, callbacks, and custom external task IDs are not supported. Non-empty options.callback_url, non-empty options.external_task_id, non-empty contents.id, and other unsupported fields will return 400. options can be omitted or passed as an empty object; watermark_info.enabled=false can also be passed. Enabling watermarks is not currently supported. Supported durations range from 4 to 30 seconds, with a default of 10 seconds; 3 seconds is not supported. For text-to-video and reference scenarios, the default aspect ratio is 16:9; explicitly specifying adaptive will return 400. For first- and last-frame scenarios, explicitly specifying settings.aspect_ratio is not accepted; the aspect ratio is determined by the dimensions of the first frame image.\n\nFor general-purpose reference, `contents` must include a non-empty `prompt` and at least one supported media item. For legacy first/last-frame scenarios, you can provide `first_frame`, `last_frame`, or both, but processing support depends on the capabilities of the currently available model. Requests with incompatible capabilities will be rejected; frame images will not be silently converted to regular reference images. For new first/last-frame integrations, we recommend using the image-to-video endpoint. First/last frames cannot be used together with `refer_image` reference images or `feature_video` reference videos; mixing them returns a 400 error. In reference scenarios, `refer_image` reference images and `feature_video` reference videos can be combined. `first_frame`, `last_frame`, and `refer_image` can each contain at most one item, while `feature_video` can contain up to five items. Multi-reference image scenarios that rely on ID references are not currently supported.","href":"/api-reference/en/video-generation-kling-format/kling-all-in-one-reference"},{"title":"Batch Query Kling Tasks","openapi":"api-reference/en/openapi.json GET /tasks","href":"/api-reference/en/video-generation-kling-format/batch-query-kling-tasks"}]},{"group":"Video generation Omni and Veo formats","pages":[{"title":"Create video (Omni and Veo formats)","openapi":"api-reference/en/openapi.json POST /v1beta/models/{model}:predictLongRunning","href":"/api-reference/en/video-generation-omni-and-veo-formats/create-video-omni-and-veo-formats"},{"title":"Query tasks (Omni and Veo formats)","openapi":"api-reference/en/openapi.json GET /v1beta/{operation_name}","href":"/api-reference/en/video-generation-omni-and-veo-formats/query-tasks-omni-and-veo-formats"}]},{"group":"Video generation Seedance","pages":[{"title":"Create video (Seedance)","openapi":"api-reference/en/openapi.json POST /api/v3/contents/generations/tasks","href":"/api-reference/en/video-generation-seedance/create-video-seedance"},{"title":"Query task (Seedance)","openapi":"api-reference/en/openapi.json GET /api/v3/contents/generations/tasks/{task_id}","href":"/api-reference/en/video-generation-seedance/get-task-seedance"}]},{"group":"Video generation Sora compatible formats","pages":[{"title":"Create video","openapi":"api-reference/en/openapi.json POST /v1/videos","href":"/api-reference/en/video-generation-sora-compatible-formats/create-video"},{"title":"Get video task status","openapi":"api-reference/en/openapi.json GET /v1/videos/{task_id}","href":"/api-reference/en/video-generation-sora-compatible-formats/get-video-task-status"},{"title":"Get video content","openapi":"api-reference/en/openapi.json GET /v1/videos/{task_id}/content","href":"/api-reference/en/video-generation-sora-compatible-formats/get-video-content"}]},{"group":"Video generation Vidu","pages":[{"title":"Create image-to-video (Vidu)","openapi":"api-reference/en/openapi.json POST /ent/v2/img2video","href":"/api-reference/en/video-generation-vidu/create-image-to-video-vidu"},{"title":"Create reference-generated video(Vidu)","openapi":"api-reference/en/openapi.json POST /ent/v2/reference2video","href":"/api-reference/en/video-generation-vidu/create-reference-generated-videovidu"},{"title":"Create a start-and-end frame video(Vidu)","openapi":"api-reference/en/openapi.json POST /ent/v2/start-end2video","href":"/api-reference/en/video-generation-vidu/create-a-start-and-end-frame-videovidu"},{"title":"Query tasks(Vidu)","openapi":"api-reference/en/openapi.json GET /ent/v2/tasks/{task_id}/creations","href":"/api-reference/en/video-generation-vidu/query-tasksvidu"},{"title":"Create text-to-video (Vidu)","openapi":"api-reference/en/openapi.json POST /ent/v2/text2video","href":"/api-reference/en/video-generation-vidu/create-text-to-video-vidu"}]},{"group":"Video generationHappyHorse and Wan","pages":[{"title":"Create video (HappyHorse and Wan)","openapi":"api-reference/en/openapi.json POST /api/v1/services/aigc/video-generation/video-synthesis","href":"/api-reference/en/video-generationhappyhorse-and-wan/create-video-happyhorse-and-wan"},{"title":"Query task(HappyHorse and Wan)","openapi":"api-reference/en/openapi.json GET /api/v1/tasks/{task_id}","href":"/api-reference/en/video-generationhappyhorse-and-wan/query-taskhappyhorse-and-wan"}]}]},{"tab":"Skills","pages":[{"title":"Skills","href":"/en/skills/overview"}]},{"tab":"Guides","pages":[{"title":"Guides","href":"/en/overview"}]}]},{"language":"cn","footer":{"socials":{"telegram":"https://t.me/overseas_api"}},"navbar":{"links":[{"href":"mailto:support@aiid.edu.kg","label":"支持"},{"href":"https://aiid.edu.kg/pricing","label":"价格"}],"primary":{"type":"button","label":"控制台","href":"https://aiid.edu.kg/console"}},"pages":[{"title":"cn","href":"/api-reference/cn/conventions"}]},{"language":"zh-Hant","footer":{"socials":{"telegram":"https://t.me/overseas_api"}},"navbar":{"links":[{"href":"mailto:support@aiid.edu.kg","label":"支援"},{"href":"https://aiid.edu.kg/pricing","label":"價格"}],"primary":{"type":"button","label":"控制台","href":"https://aiid.edu.kg/console"}},"pages":[{"title":"zh-Hant","href":"/api-reference/zh-tw/conventions"}]},{"language":"fr","footer":{"socials":{"telegram":"https://t.me/overseas_api"}},"navbar":{"links":[{"href":"mailto:support@aiid.edu.kg","label":"Support"},{"href":"https://aiid.edu.kg/pricing","label":"Tarifs"}],"primary":{"type":"button","label":"Console","href":"https://aiid.edu.kg/console"}},"pages":[{"title":"fr","href":"/api-reference/fr/conventions"}]},{"language":"ja","footer":{"socials":{"telegram":"https://t.me/overseas_api"}},"navbar":{"links":[{"href":"mailto:support@aiid.edu.kg","label":"サポート"},{"href":"https://aiid.edu.kg/pricing","label":"料金"}],"primary":{"type":"button","label":"コンソール","href":"https://aiid.edu.kg/console"}},"pages":[{"title":"ja","href":"/api-reference/ja/conventions"}]},{"language":"ru","footer":{"socials":{"telegram":"https://t.me/overseas_api"}},"navbar":{"links":[{"href":"mailto:support@aiid.edu.kg","label":"Поддержка"},{"href":"https://aiid.edu.kg/pricing","label":"Тарифы"}],"primary":{"type":"button","label":"Консоль","href":"https://aiid.edu.kg/console"}},"pages":[{"title":"ru","href":"/api-reference/ru/conventions"}]},{"language":"vi","footer":{"socials":{"telegram":"https://t.me/overseas_api"}},"navbar":{"links":[{"href":"mailto:support@aiid.edu.kg","label":"Hỗ trợ"},{"href":"https://aiid.edu.kg/pricing","label":"Bảng giá"}],"primary":{"type":"button","label":"Bảng điều khiển","href":"https://aiid.edu.kg/console"}},"pages":[{"title":"vi","href":"/api-reference/vi/conventions"}]}]},"basePath":"","title":"Kling Text-to-Video - OverseasAPI","buildId":"dpl_36EDyZCDfRuoUD9af5CH4M1bqY2h","deploymentId":"dpl_36EDyZCDfRuoUD9af5CH4M1bqY2h","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-DCDCdBVX.js","utils-ME8dDnLe.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-0e84ACsd.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-wgRBj-ia.js","snippetPresets-C11Sgb-o.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-C0lapOpP.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-ZeRQV8fF.js","shallow-BupWh095.js","getApiPlaygroundDisplay-BnYQO2Ss.js","CodeSnippet-RKKOc8c_.js","CodeSnippets-Drf_m8wS.js","Page-Bevw23-4.js","getPastedJson-u6QiPzNZ.js","icon-Bb-CBSxO.js","MethodPill-F7l5AI7V.js","DuplicateIcon-IiAXkdSg.js","createIcon-FliI8EBc.js","DynamicMarkdown-B62XqCSI.js","SectionHeading-Dj31pT03.js","axios-vUo_bRtp.js","Markdown-BOgQCTwD.js","clsx-BIWXJmsZ.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-DKZWslLH.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-UDqbR6xh.js"]}