Giao diện tác vụ gốc Kling 4.0. Sử dụng Bearer API Key của trang này để xác thực. Nội dung yêu cầu không cần model; settings.resolution=720p sử dụng kling-4.0, 1080p sử dụng kling-4.0-1080p, mặc định là 1080p. Sau khi tạo thành công, dùng data.id trả về để gọi GET /tasks?task_ids=ID tác vụ; nhiều ID được phân tách bằng dấu phẩy. data của kết quả truy vấn là một mảng, URL video kết quả nằm tại data[].outputs[].url.
Hiện hỗ trợ các trường hợp tạo tương ứng với prompt, first_frame, last_frame, refer_image và feature_video. Không hỗ trợ middle_frame, base_video, element, voice, tham chiếu âm thanh, callback hoặc ID tác vụ bên ngoài tùy chỉnh; options.callback_url không rỗng, options.external_task_id không rỗng, contents.id không rỗng và các trường không được hỗ trợ khác sẽ trả về 400. Có thể bỏ qua options hoặc truyền một đối tượng rỗng, hoặc truyền watermark_info.enabled=false; hiện chưa hỗ trợ bật hình mờ. Thời lượng hiện được hỗ trợ từ 4 đến 30 giây, mặc định là 10 giây; chưa hỗ trợ 3 giây. Tỷ lệ khung hình mặc định cho các trường hợp văn bản tạo sinh và tham chiếu là 16:9; việc chỉ định rõ adaptive sẽ trả về 400. Trường hợp khung hình đầu-cuối không chấp nhận settings.aspect_ratio được chỉ định rõ; tỷ lệ khung hình được xác định theo kích thước của ảnh frame đầu tiên.
contents cho tham chiếu đa năng phải bao gồm prompt không rỗng và ít nhất một nội dung đa phương tiện được hỗ trợ. Trong các trường hợp khung hình đầu/cuối trước đây, có thể truyền first_frame, last_frame hoặc cả hai, nhưng khả năng xử lý phụ thuộc vào các khả năng hiện có của mô hình; yêu cầu sẽ bị từ chối nếu khả năng không tương thích và hình khung sẽ không bị âm thầm chuyển thành hình tham chiếu thông thường. Đối với việc tích hợp mới khung hình đầu/cuối, bạn nên sử dụng điểm vào tạo video từ hình ảnh. Không thể dùng chung khung hình đầu/cuối với hình tham chiếu refer_image hoặc video tham chiếu feature_video; việc dùng chung sẽ trả về 400. Trong trường hợp tham chiếu, có thể kết hợp hình tham chiếu refer_image và video tham chiếu feature_video. Mỗi first_frame, last_frame và refer_image tối đa 1 mục; feature_video tối đa 5 mục. Hiện chưa hỗ trợ trường hợp nhiều hình tham chiếu dựa vào tham chiếu id.
Sử dụng xác thực Bearer Token.
Định dạng: Authorization: Bearer sk-xxxxxx
Nội dung
application/json
Option 1
Option 2
Các trường hợp tương thích khung hình đầu/cuối trước đây: first_frame, last_frame hoặc cả hai, tùy thuộc vào khả năng của các mô hình hiện có. Không dùng lẫn tài liệu tham chiếu; bỏ qua aspect_ratio, tỷ lệ khung hình theo frame đầu tiên.
Phải đồng thời bao gồm prompt không rỗng và nội dung đa phương tiện được hỗ trợ; tạo video từ ảnh phải bao gồm first_frame. Không thể dùng lẫn first_frame/last_frame với refer_image/feature_video, nếu không sẽ trả về 400. Giới hạn số lượng của từng loại nội dung đa phương tiện xem trong phần mô tả API. Các yêu cầu khung hình đầu-cuối trước đây được xác thực theo khả năng của mô hình hiện có; đối với tích hợp mới dùng khung hình đầu-cuối, bạn nên sử dụng điểm cuối tạo video từ ảnh.
{"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/vi/định-dạngkling-tạo-video/kling-tham-khảo-toàn-diện","slug":"/api-reference/vi/định-dạngkling-tạo-video/kling-tham-khảo-toàn-diện","pageMetadata":{"title":"Kling Tham khảo toàn diện","openapi":"api-reference/vi/openapi.json POST /omni-video/kling-4.0","generated":true,"description":"Dòng này hỗ trợ định dạng tạo video OpenAI (xem chi tiết tại liên kết [Định dạng tương thích với Sora tạo video](/api-reference/vi/tao-video-dinh-dang-tuong-thich-sora/tao-video)).\n\nGiao diện tác vụ gốc Kling 4.0. Sử dụng Bearer API Key của trang này để xác thực. Nội dung yêu cầu không cần `model`; `settings.resolution=720p` sử dụng `kling-4.0`, `1080p` sử dụng `kling-4.0-1080p`, mặc định là `1080p`. Sau khi tạo thành công, dùng `data.id` trả về để gọi `GET /tasks?task_ids=ID tác vụ`; nhiều ID được phân tách bằng dấu phẩy. `data` của kết quả truy vấn là một mảng, URL video kết quả nằm tại `data[].outputs[].url`.\n\nHiện hỗ trợ các trường hợp tạo tương ứng với prompt, first_frame, last_frame, refer_image và feature_video. Không hỗ trợ middle_frame, base_video, element, voice, tham chiếu âm thanh, callback hoặc ID tác vụ bên ngoài tùy chỉnh; options.callback_url không rỗng, options.external_task_id không rỗng, contents.id không rỗng và các trường không được hỗ trợ khác sẽ trả về 400. Có thể bỏ qua options hoặc truyền một đối tượng rỗng, hoặc truyền watermark_info.enabled=false; hiện chưa hỗ trợ bật hình mờ. Thời lượng hiện được hỗ trợ từ 4 đến 30 giây, mặc định là 10 giây; chưa hỗ trợ 3 giây. Tỷ lệ khung hình mặc định cho các trường hợp văn bản tạo sinh và tham chiếu là 16:9; việc chỉ định rõ adaptive sẽ trả về 400. Trường hợp khung hình đầu-cuối không chấp nhận settings.aspect_ratio được chỉ định rõ; tỷ lệ khung hình được xác định theo kích thước của ảnh frame đầu tiên.\n\n`contents` cho tham chiếu đa năng phải bao gồm `prompt` không rỗng và ít nhất một nội dung đa phương tiện được hỗ trợ. Trong các trường hợp khung hình đầu/cuối trước đây, có thể truyền `first_frame`, `last_frame` hoặc cả hai, nhưng khả năng xử lý phụ thuộc vào các khả năng hiện có của mô hình; yêu cầu sẽ bị từ chối nếu khả năng không tương thích và hình khung sẽ không bị âm thầm chuyển thành hình tham chiếu thông thường. Đối với việc tích hợp mới khung hình đầu/cuối, bạn nên sử dụng điểm vào tạo video từ hình ảnh. Không thể dùng chung khung hình đầu/cuối với hình tham chiếu `refer_image` hoặc video tham chiếu `feature_video`; việc dùng chung sẽ trả về 400. Trong trường hợp tham chiếu, có thể kết hợp hình tham chiếu `refer_image` và video tham chiếu `feature_video`. Mỗi `first_frame`, `last_frame` và `refer_image` tối đa 1 mục; `feature_video` tối đa 5 mục. Hiện chưa hỗ trợ trường hợp nhiều hình tham chiếu dựa vào tham chiếu `id`.","href":"/api-reference/vi/định-dạngkling-tạo-video/kling-tham-khảo-toàn-diện"},"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 code: \"code\",\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsxs(_components.p, {\n children: [\"Dòng này hỗ trợ định dạng tạo video OpenAI (xem chi tiết tại liên kết \", _jsx(_components.a, {\n href: \"/api-reference/vi/tao-video-dinh-dang-tuong-thich-sora/tao-video\",\n children: \"Định dạng tương thích với Sora tạo video\"\n }), \").\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"Giao diện tác vụ gốc Kling 4.0. Sử dụng Bearer API Key của trang này để xác thực. Nội dung yêu cầu không cần \", _jsx(_components.code, {\n children: \"model\"\n }), \"; \", _jsx(_components.code, {\n children: \"settings.resolution=720p\"\n }), \" sử dụng \", _jsx(_components.code, {\n children: \"kling-4.0\"\n }), \", \", _jsx(_components.code, {\n children: \"1080p\"\n }), \" sử dụng \", _jsx(_components.code, {\n children: \"kling-4.0-1080p\"\n }), \", mặc định là \", _jsx(_components.code, {\n children: \"1080p\"\n }), \". Sau khi tạo thành công, dùng \", _jsx(_components.code, {\n children: \"data.id\"\n }), \" trả về để gọi \", _jsx(_components.code, {\n children: \"GET /tasks?task_ids=ID tác vụ\"\n }), \"; nhiều ID được phân tách bằng dấu phẩy. \", _jsx(_components.code, {\n children: \"data\"\n }), \" của kết quả truy vấn là một mảng, URL video kết quả nằm tại \", _jsx(_components.code, {\n children: \"data[].outputs[].url\"\n }), \".\"]\n }), \"\\n\", _jsx(_components.p, {\n children: \"Hiện hỗ trợ các trường hợp tạo tương ứng với prompt, first_frame, last_frame, refer_image và feature_video. Không hỗ trợ middle_frame, base_video, element, voice, tham chiếu âm thanh, callback hoặc ID tác vụ bên ngoài tùy chỉnh; options.callback_url không rỗng, options.external_task_id không rỗng, contents.id không rỗng và các trường không được hỗ trợ khác sẽ trả về 400. Có thể bỏ qua options hoặc truyền một đối tượng rỗng, hoặc truyền watermark_info.enabled=false; hiện chưa hỗ trợ bật hình mờ. Thời lượng hiện được hỗ trợ từ 4 đến 30 giây, mặc định là 10 giây; chưa hỗ trợ 3 giây. Tỷ lệ khung hình mặc định cho các trường hợp văn bản tạo sinh và tham chiếu là 16:9; việc chỉ định rõ adaptive sẽ trả về 400. Trường hợp khung hình đầu-cuối không chấp nhận settings.aspect_ratio được chỉ định rõ; tỷ lệ khung hình được xác định theo kích thước của ảnh frame đầu tiên.\"\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.code, {\n children: \"contents\"\n }), \" cho tham chiếu đa năng phải bao gồm \", _jsx(_components.code, {\n children: \"prompt\"\n }), \" không rỗng và ít nhất một nội dung đa phương tiện được hỗ trợ. Trong các trường hợp khung hình đầu/cuối trước đây, có thể truyền \", _jsx(_components.code, {\n children: \"first_frame\"\n }), \", \", _jsx(_components.code, {\n children: \"last_frame\"\n }), \" hoặc cả hai, nhưng khả năng xử lý phụ thuộc vào các khả năng hiện có của mô hình; yêu cầu sẽ bị từ chối nếu khả năng không tương thích và hình khung sẽ không bị âm thầm chuyển thành hình tham chiếu thông thường. Đối với việc tích hợp mới khung hình đầu/cuối, bạn nên sử dụng điểm vào tạo video từ hình ảnh. Không thể dùng chung khung hình đầu/cuối với hình tham chiếu \", _jsx(_components.code, {\n children: \"refer_image\"\n }), \" hoặc video tham chiếu \", _jsx(_components.code, {\n children: \"feature_video\"\n }), \"; việc dùng chung sẽ trả về 400. Trong trường hợp tham chiếu, có thể kết hợp hình tham chiếu \", _jsx(_components.code, {\n children: \"refer_image\"\n }), \" và video tham chiếu \", _jsx(_components.code, {\n children: \"feature_video\"\n }), \". Mỗi \", _jsx(_components.code, {\n children: \"first_frame\"\n }), \", \", _jsx(_components.code, {\n children: \"last_frame\"\n }), \" và \", _jsx(_components.code, {\n children: \"refer_image\"\n }), \" tối đa 1 mục; \", _jsx(_components.code, {\n children: \"feature_video\"\n }), \" tối đa 5 mục. Hiện chưa hỗ trợ trường hợp nhiều hình tham chiếu dựa vào tham chiếu \", _jsx(_components.code, {\n children: \"id\"\n }), \".\"]\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 Tham khảo toàn diện","openapi":"api-reference/vi/openapi.json POST /omni-video/kling-4.0","generated":true,"description":"Dòng này hỗ trợ định dạng tạo video OpenAI (xem chi tiết tại liên kết [Định dạng tương thích với Sora tạo video](/api-reference/vi/tao-video-dinh-dang-tuong-thich-sora/tao-video)).\n\nGiao diện tác vụ gốc Kling 4.0. Sử dụng Bearer API Key của trang này để xác thực. Nội dung yêu cầu không cần `model`; `settings.resolution=720p` sử dụng `kling-4.0`, `1080p` sử dụng `kling-4.0-1080p`, mặc định là `1080p`. Sau khi tạo thành công, dùng `data.id` trả về để gọi `GET /tasks?task_ids=ID tác vụ`; nhiều ID được phân tách bằng dấu phẩy. `data` của kết quả truy vấn là một mảng, URL video kết quả nằm tại `data[].outputs[].url`.\n\nHiện hỗ trợ các trường hợp tạo tương ứng với prompt, first_frame, last_frame, refer_image và feature_video. Không hỗ trợ middle_frame, base_video, element, voice, tham chiếu âm thanh, callback hoặc ID tác vụ bên ngoài tùy chỉnh; options.callback_url không rỗng, options.external_task_id không rỗng, contents.id không rỗng và các trường không được hỗ trợ khác sẽ trả về 400. Có thể bỏ qua options hoặc truyền một đối tượng rỗng, hoặc truyền watermark_info.enabled=false; hiện chưa hỗ trợ bật hình mờ. Thời lượng hiện được hỗ trợ từ 4 đến 30 giây, mặc định là 10 giây; chưa hỗ trợ 3 giây. Tỷ lệ khung hình mặc định cho các trường hợp văn bản tạo sinh và tham chiếu là 16:9; việc chỉ định rõ adaptive sẽ trả về 400. Trường hợp khung hình đầu-cuối không chấp nhận settings.aspect_ratio được chỉ định rõ; tỷ lệ khung hình được xác định theo kích thước của ảnh frame đầu tiên.\n\n`contents` cho tham chiếu đa năng phải bao gồm `prompt` không rỗng và ít nhất một nội dung đa phương tiện được hỗ trợ. Trong các trường hợp khung hình đầu/cuối trước đây, có thể truyền `first_frame`, `last_frame` hoặc cả hai, nhưng khả năng xử lý phụ thuộc vào các khả năng hiện có của mô hình; yêu cầu sẽ bị từ chối nếu khả năng không tương thích và hình khung sẽ không bị âm thầm chuyển thành hình tham chiếu thông thường. Đối với việc tích hợp mới khung hình đầu/cuối, bạn nên sử dụng điểm vào tạo video từ hình ảnh. Không thể dùng chung khung hình đầu/cuối với hình tham chiếu `refer_image` hoặc video tham chiếu `feature_video`; việc dùng chung sẽ trả về 400. Trong trường hợp tham chiếu, có thể kết hợp hình tham chiếu `refer_image` và video tham chiếu `feature_video`. Mỗi `first_frame`, `last_frame` và `refer_image` tối đa 1 mục; `feature_video` tối đa 5 mục. Hiện chưa hỗ trợ trường hợp nhiều hình tham chiếu dựa vào tham chiếu `id`.","href":"/api-reference/vi/định-dạngkling-tạo-video/kling-tham-khảo-toàn-diện"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"summary":"Kling Tham khảo toàn diện","operationId":"create_kling4_native_omni_video","tags":["Định dạngKling tạo video"],"description":"Dòng này hỗ trợ định dạng tạo video OpenAI (xem chi tiết tại liên kết [Định dạng tương thích với Sora tạo video](/api-reference/vi/tao-video-dinh-dang-tuong-thich-sora/tao-video)).\n\nGiao diện tác vụ gốc Kling 4.0. Sử dụng Bearer API Key của trang này để xác thực. Nội dung yêu cầu không cần `model`; `settings.resolution=720p` sử dụng `kling-4.0`, `1080p` sử dụng `kling-4.0-1080p`, mặc định là `1080p`. Sau khi tạo thành công, dùng `data.id` trả về để gọi `GET /tasks?task_ids=ID tác vụ`; nhiều ID được phân tách bằng dấu phẩy. `data` của kết quả truy vấn là một mảng, URL video kết quả nằm tại `data[].outputs[].url`.\n\nHiện hỗ trợ các trường hợp tạo tương ứng với prompt, first_frame, last_frame, refer_image và feature_video. Không hỗ trợ middle_frame, base_video, element, voice, tham chiếu âm thanh, callback hoặc ID tác vụ bên ngoài tùy chỉnh; options.callback_url không rỗng, options.external_task_id không rỗng, contents.id không rỗng và các trường không được hỗ trợ khác sẽ trả về 400. Có thể bỏ qua options hoặc truyền một đối tượng rỗng, hoặc truyền watermark_info.enabled=false; hiện chưa hỗ trợ bật hình mờ. Thời lượng hiện được hỗ trợ từ 4 đến 30 giây, mặc định là 10 giây; chưa hỗ trợ 3 giây. Tỷ lệ khung hình mặc định cho các trường hợp văn bản tạo sinh và tham chiếu là 16:9; việc chỉ định rõ adaptive sẽ trả về 400. Trường hợp khung hình đầu-cuối không chấp nhận settings.aspect_ratio được chỉ định rõ; tỷ lệ khung hình được xác định theo kích thước của ảnh frame đầu tiên.\n\n`contents` cho tham chiếu đa năng phải bao gồm `prompt` không rỗng và ít nhất một nội dung đa phương tiện được hỗ trợ. Trong các trường hợp khung hình đầu/cuối trước đây, có thể truyền `first_frame`, `last_frame` hoặc cả hai, nhưng khả năng xử lý phụ thuộc vào các khả năng hiện có của mô hình; yêu cầu sẽ bị từ chối nếu khả năng không tương thích và hình khung sẽ không bị âm thầm chuyển thành hình tham chiếu thông thường. Đối với việc tích hợp mới khung hình đầu/cuối, bạn nên sử dụng điểm vào tạo video từ hình ảnh. Không thể dùng chung khung hình đầu/cuối với hình tham chiếu `refer_image` hoặc video tham chiếu `feature_video`; việc dùng chung sẽ trả về 400. Trong trường hợp tham chiếu, có thể kết hợp hình tham chiếu `refer_image` và video tham chiếu `feature_video`. Mỗi `first_frame`, `last_frame` và `refer_image` tối đa 1 mục; `feature_video` tối đa 5 mục. Hiện chưa hỗ trợ trường hợp nhiều hình tham chiếu dựa vào tham chiếu `id`.","requestBody":"a81869b6-fefa-4f49-8909-c8ff11543967","responses":{"200":"ecafc06f-eac0-46a6-a349-41dfb64fda86","400":"4b09fb6d-dd89-4e19-be51-363429399c06"},"x-doc-source":"relay-openapi+contract-transform","x-drift-status":"ok","x-drift-count":0,"x-drift-types":[],"x-mint":{"href":"/api-reference/vi/định-dạngkling-tạo-video/kling-tham-khảo-toàn-diện"},"method":"post","type":"path","servers":["b8fc9370-8e91-494a-904a-4f4afacfb1ab"],"security":["83b1d6d7-3c89-452c-a664-a7c449a483ba"],"path":"/omni-video/kling-4.0","baseUrlOptions":["https://api.aiid.edu.kg"],"title":"Kling Tham khảo toàn diện","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","description":"Các trường hợp tương thích khung hình đầu/cuối trước đây: first_frame, last_frame hoặc cả hai, tùy thuộc vào khả năng của các mô hình hiện có. Không dùng lẫn tài liệu tham chiếu; bỏ qua aspect_ratio, tỷ lệ khung hình theo frame đầu tiên.","required":["contents"],"properties":{"contents":{"type":"array","items":{"oneOf":[{"type":"object","required":["type","text"],"properties":{"type":{"type":"string","enum":["prompt"],"isRequired":true,"uniqueKey":"oneOf.0.contents.items.[INDEX].oneOf.0.type","typeLabel":"enum\u003cstring>"},"text":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"oneOf.0.contents.items.[INDEX].oneOf.0.text","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"oneOf.0.contents.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","required":["type","url"],"properties":{"type":{"type":"string","enum":["first_frame","last_frame"],"isRequired":true,"uniqueKey":"oneOf.0.contents.items.[INDEX].oneOf.1.type","typeLabel":"enum\u003cstring>"},"url":{"type":"string","format":"uri","pattern":"^https?://","isRequired":true,"uniqueKey":"oneOf.0.contents.items.[INDEX].oneOf.1.url","typeLabel":"string\u003curi>"}},"additionalProperties":false,"uniqueKey":"oneOf.0.contents.items.[INDEX].oneOf.1","typeLabel":"object"}],"uniqueKey":"oneOf.0.contents.items.[INDEX]","typeLabel":"object"},"description":"Phải đồng thời bao gồm `prompt` không rỗng và nội dung đa phương tiện được hỗ trợ; tạo video từ ảnh phải bao gồm `first_frame`. Không thể dùng lẫn `first_frame`/`last_frame` với `refer_image`/`feature_video`, nếu không sẽ trả về 400. Giới hạn số lượng của từng loại nội dung đa phương tiện xem trong phần mô tả API. Các yêu cầu khung hình đầu-cuối trước đây được xác thực theo khả năng của mô hình hiện có; đối với tích hợp mới dùng khung hình đầu-cuối, bạn nên sử dụng điểm cuối tạo video từ ảnh.","minItems":2,"isRequired":true,"uniqueKey":"oneOf.0.contents","typeLabel":"object[]"},"settings":{"type":"object","properties":{"resolution":{"type":"string","enum":["720p","1080p"],"default":"1080p","uniqueKey":"oneOf.0.settings.resolution","typeLabel":"enum\u003cstring>"},"duration":{"type":"integer","minimum":4,"maximum":30,"default":10,"uniqueKey":"oneOf.0.settings.duration","typeLabel":"integer"},"aspect_ratio":{"type":"string","enum":["21:9","16:9","9:16","1:1"],"uniqueKey":"oneOf.0.settings.aspect_ratio","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"oneOf.0.settings","typeLabel":"object"},"options":{"type":"object","additionalProperties":false,"description":"Có thể bỏ qua, truyền đối tượng rỗng hoặc tắt hình mờ một cách rõ ràng.","properties":{"watermark_info":{"type":"object","additionalProperties":false,"required":["enabled"],"properties":{"enabled":{"type":"boolean","enum":[false],"isRequired":true,"uniqueKey":"oneOf.0.options.watermark_info.enabled","typeLabel":"enum\u003cboolean>"}},"uniqueKey":"oneOf.0.options.watermark_info","typeLabel":"object"}},"uniqueKey":"oneOf.0.options","typeLabel":"object"}},"additionalProperties":false,"uniqueKey":"oneOf.0","typeLabel":"object"},{"type":"object","description":"Kịch bản tham khảo: Có thể kết hợp refer_image và feature_video, tỷ lệ khung hình mặc định là 16:9.","required":["contents"],"properties":{"contents":{"type":"array","items":{"oneOf":[{"type":"object","required":["type","text"],"properties":{"type":{"type":"string","enum":["prompt"],"isRequired":true,"uniqueKey":"oneOf.1.contents.items.[INDEX].oneOf.0.type","typeLabel":"enum\u003cstring>"},"text":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"oneOf.1.contents.items.[INDEX].oneOf.0.text","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"oneOf.1.contents.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","required":["type","url"],"properties":{"type":{"type":"string","enum":["refer_image","feature_video"],"isRequired":true,"uniqueKey":"oneOf.1.contents.items.[INDEX].oneOf.1.type","typeLabel":"enum\u003cstring>"},"url":{"type":"string","format":"uri","pattern":"^https?://","isRequired":true,"uniqueKey":"oneOf.1.contents.items.[INDEX].oneOf.1.url","typeLabel":"string\u003curi>"}},"additionalProperties":false,"uniqueKey":"oneOf.1.contents.items.[INDEX].oneOf.1","typeLabel":"object"}],"uniqueKey":"oneOf.1.contents.items.[INDEX]","typeLabel":"object"},"description":"Phải đồng thời bao gồm `prompt` không rỗng và nội dung đa phương tiện được hỗ trợ; tạo video từ ảnh phải bao gồm `first_frame`. Không thể dùng lẫn `first_frame`/`last_frame` với `refer_image`/`feature_video`, nếu không sẽ trả về 400. Giới hạn số lượng của từng loại nội dung đa phương tiện xem trong phần mô tả API. Các yêu cầu khung hình đầu-cuối trước đây được xác thực theo khả năng của mô hình hiện có; đối với tích hợp mới dùng khung hình đầu-cuối, bạn nên sử dụng điểm cuối tạo video từ ảnh.","minItems":2,"isRequired":true,"uniqueKey":"oneOf.1.contents","typeLabel":"object[]"},"settings":{"type":"object","properties":{"aspect_ratio":{"type":"string","default":"16:9","enum":["21:9","16:9","9:16","1:1"],"uniqueKey":"oneOf.1.settings.aspect_ratio","typeLabel":"enum\u003cstring>"},"resolution":{"type":"string","enum":["720p","1080p"],"default":"1080p","uniqueKey":"oneOf.1.settings.resolution","typeLabel":"enum\u003cstring>"},"duration":{"type":"integer","minimum":4,"maximum":30,"default":10,"uniqueKey":"oneOf.1.settings.duration","typeLabel":"integer"}},"additionalProperties":false,"uniqueKey":"oneOf.1.settings","typeLabel":"object"},"options":{"type":"object","additionalProperties":false,"description":"Có thể bỏ qua, truyền đối tượng rỗng hoặc tắt hình mờ một cách rõ ràng.","properties":{"watermark_info":{"type":"object","additionalProperties":false,"required":["enabled"],"properties":{"enabled":{"type":"boolean","enum":[false],"isRequired":true,"uniqueKey":"oneOf.1.options.watermark_info.enabled","typeLabel":"enum\u003cboolean>"}},"uniqueKey":"oneOf.1.options.watermark_info","typeLabel":"object"}},"uniqueKey":"oneOf.1.options","typeLabel":"object"}},"additionalProperties":false,"uniqueKey":"oneOf.1","typeLabel":"object"}],"uniqueKey":"","typeLabel":"object"},"examples":{"kling4_native_720p":{"title":"kling4_native_720p","value":{"settings":{"resolution":"720p","duration":10,"aspect_ratio":"16:9"},"options":{},"contents":[{"type":"prompt","text":"A cinematic product shot with natural motion"},{"type":"refer_image","url":"https://example.com/reference.jpg"},{"type":"feature_video","url":"https://example.com/motion.mp4"}]}},"kling4_native_1080p":{"title":"kling4_native_1080p","value":{"settings":{"resolution":"1080p","duration":10,"aspect_ratio":"16:9"},"options":{},"contents":[{"type":"prompt","text":"A cinematic product shot with natural motion"},{"type":"refer_image","url":"https://example.com/reference.jpg"},{"type":"feature_video","url":"https://example.com/motion.mp4"}]}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"ecafc06f-eac0-46a6-a349-41dfb64fda86":{"description":"Thành công","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":"ID tác vụ của trang này, khi truy vấn hãy truyền nguyên văn.","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":"Thời gian tạo, tính bằng mili giây Unix.","uniqueKey":"data.create_time","typeLabel":"integer\u003cint64>"},"update_time":{"type":"integer","format":"int64","description":"Thời gian cập nhật, tính bằng mili giây Unix.","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"},"4b09fb6d-dd89-4e19-be51-363429399c06":{"description":"Tham số yêu cầu không hợp lệ hoặc chứa trường không được hỗ trợ.","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}}},"security":{"83b1d6d7-3c89-452c-a664-a7c449a483ba":{"BearerAuth":{"type":"http","scheme":"bearer","description":"Sử dụng xác thực Bearer Token.\nĐịnh dạng: `Authorization: Bearer sk-xxxxxx`","scopes":[],"schemeName":"BearerAuth"}}},"servers":{"b8fc9370-8e91-494a-904a-4f4afacfb1ab":{"url":"https://api.aiid.edu.kg"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"Sử dụng xác thực Bearer Token.\nĐịnh dạng: `Authorization: Bearer sk-xxxxxx`","scopes":[],"schemeName":"BearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Sử dụng xác thực Bearer Token.\nĐịnh dạng: `Authorization: Bearer sk-xxxxxx`","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"BearerAuth","name":"Authorization"}],"title":"BearerAuth"}]},"originalFileLocation":"api-reference/vi/openapi.json"},"subdomain":"btc-de295b31","siteName":"OverseasAPI","title":"Kling Tham khảo toàn diện - OverseasAPI","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/api-reference/en/conventions","matchLevel":4},"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/định-dạngkling-tạo-video/kling-tham-khảo-toàn-diện","matchLevel":0}}},"lastModified":"2026-10-23T20:35:03.281Z","originalFileLocation":"api-reference/vi/định-dạngkling-tạo-video/kling-tham-khảo-toàn-diện.mdx","locale":"vi"},"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=\"Dòng này hỗ trợ định dạng tạo video OpenAI (xem chi tiết tại liên kết Định dạng tương thích với Sora tạo video). Giao diện tác vụ gốc Kling 4.0. Sử dụng Bearer API Key của trang này để xác thực. Nội dung yêu cầu không cần model; settings.resolution=720p sử dụng kling-4.0, 1080p sử dụng kling-4.0-1080p, mặc định là 1080p. Sau khi tạo thành công, dùng data.id trả về để gọi GET /tasks?task_ids=ID tác vụ; nhiều ID được phân tách bằng dấu phẩy. data của kết quả truy vấn là một mảng, URL video kết quả nằm tại data[].outputs[].url. Hiện hỗ trợ các trường hợp tạo tương ứng với prompt, first_frame, last_frame, refer_image và feature_video. Không hỗ trợ middle_frame, base_video, element, voice, tham chiếu âm thanh, callback hoặc ID tác vụ bên ngoài tùy chỉnh; options.callback_url không rỗng, options.external_task_id không rỗng, contents.id không rỗng và các trường không được hỗ trợ khác sẽ trả về 400. Có thể bỏ qua options hoặc truyền một đối tượng rỗng, hoặc truyền watermark_info.enabled=false; hiện chưa hỗ trợ bật hình mờ. Thời lượng hiện được hỗ trợ từ 4 đến 30 giây, mặc định là 10 giây; chưa hỗ trợ 3 giây. Tỷ lệ khung hình mặc định cho các trường hợp văn bản tạo sinh và tham chiếu là 16:9; việc chỉ định rõ adaptive sẽ trả về 400. Trường hợp khung hình đầu-cuối không chấp nhận settings.aspect_ratio được chỉ định rõ; tỷ lệ khung hình được xác định theo kích thước của ảnh frame đầu tiên. contents cho tham chiếu đa năng phải bao gồm prompt không rỗng và ít nhất một nội dung đa phương tiện được hỗ trợ. Trong các trường hợp khung hình đầu/cuối trước đây, có thể truyền first_frame, last_frame hoặc cả hai, nhưng khả năng xử lý phụ thuộc vào các khả năng hiện có của mô hình; yêu cầu sẽ bị từ chối nếu khả năng không tương thích và hình khung sẽ không bị âm thầm chuyển thành hình tham chiếu thông thường. Đối với việc tích hợp mới khung hình đầu/cuối, bạn nên sử dụng điểm vào tạo video từ hình ảnh. Không thể dùng chung khung hình đầu/cuối với hình tham chiếu refer_image hoặc video tham chiếu feature_video; việc dùng chung sẽ trả về 400. Trong trường hợp tham chiếu, có thể kết hợp hình tham chiếu refer_image và video tham chiếu feature_video. Mỗi first_frame, last_frame và refer_image tối đa 1 mục; feature_video tối đa 5 mục. Hiện chưa hỗ trợ trường hợp nhiều hình tham chiếu dựa vào tham chiếu id.\">\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 Tham khảo toàn diện - OverseasAPI\">\u003cmeta data-mint-head property=\"og:description\" content=\"Dòng này hỗ trợ định dạng tạo video OpenAI (xem chi tiết tại liên kết Định dạng tương thích với Sora tạo video). Giao diện tác vụ gốc Kling 4.0. Sử dụng Bearer API Key của trang này để xác thực. Nội dung yêu cầu không cần model; settings.resolution=720p sử dụng kling-4.0, 1080p sử dụng kling-4.0-1080p, mặc định là 1080p. Sau khi tạo thành công, dùng data.id trả về để gọi GET /tasks?task_ids=ID tác vụ; nhiều ID được phân tách bằng dấu phẩy. data của kết quả truy vấn là một mảng, URL video kết quả nằm tại data[].outputs[].url. Hiện hỗ trợ các trường hợp tạo tương ứng với prompt, first_frame, last_frame, refer_image và feature_video. Không hỗ trợ middle_frame, base_video, element, voice, tham chiếu âm thanh, callback hoặc ID tác vụ bên ngoài tùy chỉnh; options.callback_url không rỗng, options.external_task_id không rỗng, contents.id không rỗng và các trường không được hỗ trợ khác sẽ trả về 400. Có thể bỏ qua options hoặc truyền một đối tượng rỗng, hoặc truyền watermark_info.enabled=false; hiện chưa hỗ trợ bật hình mờ. Thời lượng hiện được hỗ trợ từ 4 đến 30 giây, mặc định là 10 giây; chưa hỗ trợ 3 giây. Tỷ lệ khung hình mặc định cho các trường hợp văn bản tạo sinh và tham chiếu là 16:9; việc chỉ định rõ adaptive sẽ trả về 400. Trường hợp khung hình đầu-cuối không chấp nhận settings.aspect_ratio được chỉ định rõ; tỷ lệ khung hình được xác định theo kích thước của ảnh frame đầu tiên. contents cho tham chiếu đa năng phải bao gồm prompt không rỗng và ít nhất một nội dung đa phương tiện được hỗ trợ. Trong các trường hợp khung hình đầu/cuối trước đây, có thể truyền first_frame, last_frame hoặc cả hai, nhưng khả năng xử lý phụ thuộc vào các khả năng hiện có của mô hình; yêu cầu sẽ bị từ chối nếu khả năng không tương thích và hình khung sẽ không bị âm thầm chuyển thành hình tham chiếu thông thường. Đối với việc tích hợp mới khung hình đầu/cuối, bạn nên sử dụng điểm vào tạo video từ hình ảnh. Không thể dùng chung khung hình đầu/cuối với hình tham chiếu refer_image hoặc video tham chiếu feature_video; việc dùng chung sẽ trả về 400. Trong trường hợp tham chiếu, có thể kết hợp hình tham chiếu refer_image và video tham chiếu feature_video. Mỗi first_frame, last_frame và refer_image tối đa 1 mục; feature_video tối đa 5 mục. Hiện chưa hỗ trợ trường hợp nhiều hình tham chiếu dựa vào tham chiếu id.\">\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/vi/định-dạngkling-tạo-video/kling-tham-khảo-toàn-diện\">\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=%C4%90%E1%BB%8Bnh+d%E1%BA%A1ngKling+t%E1%BA%A1o+video\u0026amp;title=Kling+Tham+kh%E1%BA%A3o+to%C3%A0n+di%E1%BB%87n\u0026amp;description=D%C3%B2ng+n%C3%A0y+h%E1%BB%97+tr%E1%BB%A3+%C4%91%E1%BB%8Bnh+d%E1%BA%A1ng+t%E1%BA%A1o+video+OpenAI+%28xem+chi+ti%E1%BA%BFt+t%E1%BA%A1i+li%C3%AAn+k%E1%BA%BFt+%5B%C4%90%E1%BB%8Bnh+d%E1%BA%A1ng+t%C6%B0%C6%A1ng+th%C3%ADch+v%E1%BB%9Bi+Sora+t%E1%BA%A1o+video%5D%28%2Fapi-reference%2Fvi%2Ftao-video-dinh-dang-tuong-thi\u0026amp;theme=4acb683881b01fff206da5f1\u0026amp;signature=ca5018dbc44eea413ff6ef015c3e888b1ff157b417aee2a0e129f09bee0fba69\">\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 Tham khảo toàn diện - OverseasAPI\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Dòng này hỗ trợ định dạng tạo video OpenAI (xem chi tiết tại liên kết Định dạng tương thích với Sora tạo video). Giao diện tác vụ gốc Kling 4.0. Sử dụng Bearer API Key của trang này để xác thực. Nội dung yêu cầu không cần model; settings.resolution=720p sử dụng kling-4.0, 1080p sử dụng kling-4.0-1080p, mặc định là 1080p. Sau khi tạo thành công, dùng data.id trả về để gọi GET /tasks?task_ids=ID tác vụ; nhiều ID được phân tách bằng dấu phẩy. data của kết quả truy vấn là một mảng, URL video kết quả nằm tại data[].outputs[].url. Hiện hỗ trợ các trường hợp tạo tương ứng với prompt, first_frame, last_frame, refer_image và feature_video. Không hỗ trợ middle_frame, base_video, element, voice, tham chiếu âm thanh, callback hoặc ID tác vụ bên ngoài tùy chỉnh; options.callback_url không rỗng, options.external_task_id không rỗng, contents.id không rỗng và các trường không được hỗ trợ khác sẽ trả về 400. Có thể bỏ qua options hoặc truyền một đối tượng rỗng, hoặc truyền watermark_info.enabled=false; hiện chưa hỗ trợ bật hình mờ. Thời lượng hiện được hỗ trợ từ 4 đến 30 giây, mặc định là 10 giây; chưa hỗ trợ 3 giây. Tỷ lệ khung hình mặc định cho các trường hợp văn bản tạo sinh và tham chiếu là 16:9; việc chỉ định rõ adaptive sẽ trả về 400. Trường hợp khung hình đầu-cuối không chấp nhận settings.aspect_ratio được chỉ định rõ; tỷ lệ khung hình được xác định theo kích thước của ảnh frame đầu tiên. contents cho tham chiếu đa năng phải bao gồm prompt không rỗng và ít nhất một nội dung đa phương tiện được hỗ trợ. Trong các trường hợp khung hình đầu/cuối trước đây, có thể truyền first_frame, last_frame hoặc cả hai, nhưng khả năng xử lý phụ thuộc vào các khả năng hiện có của mô hình; yêu cầu sẽ bị từ chối nếu khả năng không tương thích và hình khung sẽ không bị âm thầm chuyển thành hình tham chiếu thông thường. Đối với việc tích hợp mới khung hình đầu/cuối, bạn nên sử dụng điểm vào tạo video từ hình ảnh. Không thể dùng chung khung hình đầu/cuối với hình tham chiếu refer_image hoặc video tham chiếu feature_video; việc dùng chung sẽ trả về 400. Trong trường hợp tham chiếu, có thể kết hợp hình tham chiếu refer_image và video tham chiếu feature_video. Mỗi first_frame, last_frame và refer_image tối đa 1 mục; feature_video tối đa 5 mục. Hiện chưa hỗ trợ trường hợp nhiều hình tham chiếu dựa vào tham chiếu id.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://btc-de295b31.mintlify.app/_mintlify/api/og/v2?division=%C4%90%E1%BB%8Bnh+d%E1%BA%A1ngKling+t%E1%BA%A1o+video\u0026amp;title=Kling+Tham+kh%E1%BA%A3o+to%C3%A0n+di%E1%BB%87n\u0026amp;description=D%C3%B2ng+n%C3%A0y+h%E1%BB%97+tr%E1%BB%A3+%C4%91%E1%BB%8Bnh+d%E1%BA%A1ng+t%E1%BA%A1o+video+OpenAI+%28xem+chi+ti%E1%BA%BFt+t%E1%BA%A1i+li%C3%AAn+k%E1%BA%BFt+%5B%C4%90%E1%BB%8Bnh+d%E1%BA%A1ng+t%C6%B0%C6%A1ng+th%C3%ADch+v%E1%BB%9Bi+Sora+t%E1%BA%A1o+video%5D%28%2Fapi-reference%2Fvi%2Ftao-video-dinh-dang-tuong-thi\u0026amp;theme=4acb683881b01fff206da5f1\u0026amp;signature=ca5018dbc44eea413ff6ef015c3e888b1ff157b417aee2a0e129f09bee0fba69\">\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/vi/định-dạngkling-tạo-video/kling-tham-khảo-toàn-diện\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/vi/%C4%91%E1%BB%8Bnh-d%E1%BA%A1ngkling-t%E1%BA%A1o-video/kling-tham-kh%E1%BA%A3o-to%C3%A0n-di%E1%BB%87n.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/vi/%C4%91%E1%BB%8Bnh-d%E1%BA%A1ngkling-t%E1%BA%A1o-video/kling-tham-kh%E1%BA%A3o-to%C3%A0n-di%E1%BB%87n#webpage\",\"url\":\"https://docs.aiid.edu.kg/api-reference/vi/%C4%91%E1%BB%8Bnh-d%E1%BA%A1ngkling-t%E1%BA%A1o-video/kling-tham-kh%E1%BA%A3o-to%C3%A0n-di%E1%BB%87n\",\"name\":\"Kling Tham khảo toàn diện\",\"description\":\"Dòng này hỗ trợ định dạng tạo video OpenAI (xem chi tiết tại liên kết Định dạng tương thích với Sora tạo video). Giao diện tác vụ gốc Kling 4.0. Sử dụng Bearer API Key của trang này để xác thực. Nội dung yêu cầu không cần model; settings.resolution=720p sử dụng kling-4.0, 1080p sử dụng kling-4.0-1080p, mặc định là 1080p. Sau khi tạo thành công, dùng data.id trả về để gọi GET /tasks?task_ids=ID tác vụ; nhiều ID được phân tách bằng dấu phẩy. data của kết quả truy vấn là một mảng, URL video kết quả nằm tại data[].outputs[].url. Hiện hỗ trợ các trường hợp tạo tương ứng với prompt, first_frame, last_frame, refer_image và feature_video. Không hỗ trợ middle_frame, base_video, element, voice, tham chiếu âm thanh, callback hoặc ID tác vụ bên ngoài tùy chỉnh; options.callback_url không rỗng, options.external_task_id không rỗng, contents.id không rỗng và các trường không được hỗ trợ khác sẽ trả về 400. Có thể bỏ qua options hoặc truyền một đối tượng rỗng, hoặc truyền watermark_info.enabled=false; hiện chưa hỗ trợ bật hình mờ. Thời lượng hiện được hỗ trợ từ 4 đến 30 giây, mặc định là 10 giây; chưa hỗ trợ 3 giây. Tỷ lệ khung hình mặc định cho các trường hợp văn bản tạo sinh và tham chiếu là 16:9; việc chỉ định rõ adaptive sẽ trả về 400. Trường hợp khung hình đầu-cuối không chấp nhận settings.aspect_ratio được chỉ định rõ; tỷ lệ khung hình được xác định theo kích thước của ảnh frame đầu tiên. contents cho tham chiếu đa năng phải bao gồm prompt không rỗng và ít nhất một nội dung đa phương tiện được hỗ trợ. Trong các trường hợp khung hình đầu/cuối trước đây, có thể truyền first_frame, last_frame hoặc cả hai, nhưng khả năng xử lý phụ thuộc vào các khả năng hiện có của mô hình; yêu cầu sẽ bị từ chối nếu khả năng không tương thích và hình khung sẽ không bị âm thầm chuyển thành hình tham chiếu thông thường. Đối với việc tích hợp mới khung hình đầu/cuối, bạn nên sử dụng điểm vào tạo video từ hình ảnh. Không thể dùng chung khung hình đầu/cuối với hình tham chiếu refer_image hoặc video tham chiếu feature_video; việc dùng chung sẽ trả về 400. Trong trường hợp tham chiếu, có thể kết hợp hình tham chiếu refer_image và video tham chiếu feature_video. Mỗi first_frame, last_frame và refer_image tối đa 1 mục; feature_video tối đa 5 mục. Hiện chưa hỗ trợ trường hợp nhiều hình tham chiếu dựa vào tham chiếu id.\",\"dateModified\":\"2026-10-23T20:35:03.281Z\",\"isPartOf\":{\"@id\":\"https://docs.aiid.edu.kg#website\"},\"breadcrumb\":{\"@id\":\"https://docs.aiid.edu.kg/api-reference/vi/%C4%91%E1%BB%8Bnh-d%E1%BA%A1ngkling-t%E1%BA%A1o-video/kling-tham-kh%E1%BA%A3o-to%C3%A0n-di%E1%BB%87n#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.aiid.edu.kg/api-reference/vi/%C4%91%E1%BB%8Bnh-d%E1%BA%A1ngkling-t%E1%BA%A1o-video/kling-tham-kh%E1%BA%A3o-to%C3%A0n-di%E1%BB%87n#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Định dạngKling tạo video\",\"item\":\"https://docs.aiid.edu.kg/api-reference/vi/%C4%91%E1%BB%8Bnh-d%E1%BA%A1ngkling-t%E1%BA%A1o-video/kling-chuy%E1%BB%83n-h%C3%ACnh-%E1%BA%A3nh-th%C3%A0nh-video\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Kling Tham khảo toàn diện\",\"item\":\"https://docs.aiid.edu.kg/api-reference/vi/%C4%91%E1%BB%8Bnh-d%E1%BA%A1ngkling-t%E1%BA%A1o-video/kling-tham-kh%E1%BA%A3o-to%C3%A0n-di%E1%BB%87n\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.aiid.edu.kg/api-reference/vi/%C4%91%E1%BB%8Bnh-d%E1%BA%A1ngkling-t%E1%BA%A1o-video/kling-tham-kh%E1%BA%A3o-to%C3%A0n-di%E1%BB%87n#apireference\",\"headline\":\"Kling Tham khảo toàn diện\",\"name\":\"Kling Tham khảo toàn diện\",\"description\":\"Dòng này hỗ trợ định dạng tạo video OpenAI (xem chi tiết tại liên kết Định dạng tương thích với Sora tạo video). Giao diện tác vụ gốc Kling 4.0. Sử dụng Bearer API Key của trang này để xác thực. Nội dung yêu cầu không cần model; settings.resolution=720p sử dụng kling-4.0, 1080p sử dụng kling-4.0-1080p, mặc định là 1080p. Sau khi tạo thành công, dùng data.id trả về để gọi GET /tasks?task_ids=ID tác vụ; nhiều ID được phân tách bằng dấu phẩy. data của kết quả truy vấn là một mảng, URL video kết quả nằm tại data[].outputs[].url. Hiện hỗ trợ các trường hợp tạo tương ứng với prompt, first_frame, last_frame, refer_image và feature_video. Không hỗ trợ middle_frame, base_video, element, voice, tham chiếu âm thanh, callback hoặc ID tác vụ bên ngoài tùy chỉnh; options.callback_url không rỗng, options.external_task_id không rỗng, contents.id không rỗng và các trường không được hỗ trợ khác sẽ trả về 400. Có thể bỏ qua options hoặc truyền một đối tượng rỗng, hoặc truyền watermark_info.enabled=false; hiện chưa hỗ trợ bật hình mờ. Thời lượng hiện được hỗ trợ từ 4 đến 30 giây, mặc định là 10 giây; chưa hỗ trợ 3 giây. Tỷ lệ khung hình mặc định cho các trường hợp văn bản tạo sinh và tham chiếu là 16:9; việc chỉ định rõ adaptive sẽ trả về 400. Trường hợp khung hình đầu-cuối không chấp nhận settings.aspect_ratio được chỉ định rõ; tỷ lệ khung hình được xác định theo kích thước của ảnh frame đầu tiên. contents cho tham chiếu đa năng phải bao gồm prompt không rỗng và ít nhất một nội dung đa phương tiện được hỗ trợ. Trong các trường hợp khung hình đầu/cuối trước đây, có thể truyền first_frame, last_frame hoặc cả hai, nhưng khả năng xử lý phụ thuộc vào các khả năng hiện có của mô hình; yêu cầu sẽ bị từ chối nếu khả năng không tương thích và hình khung sẽ không bị âm thầm chuyển thành hình tham chiếu thông thường. Đối với việc tích hợp mới khung hình đầu/cuối, bạn nên sử dụng điểm vào tạo video từ hình ảnh. Không thể dùng chung khung hình đầu/cuối với hình tham chiếu refer_image hoặc video tham chiếu feature_video; việc dùng chung sẽ trả về 400. Trong trường hợp tham chiếu, có thể kết hợp hình tham chiếu refer_image và video tham chiếu feature_video. Mỗi first_frame, last_frame và refer_image tối đa 1 mục; feature_video tối đa 5 mục. Hiện chưa hỗ trợ trường hợp nhiều hình tham chiếu dựa vào tham chiếu id.\",\"url\":\"https://docs.aiid.edu.kg/api-reference/vi/%C4%91%E1%BB%8Bnh-d%E1%BA%A1ngkling-t%E1%BA%A1o-video/kling-tham-kh%E1%BA%A3o-to%C3%A0n-di%E1%BB%87n\",\"mainEntityOfPage\":{\"@id\":\"https://docs.aiid.edu.kg/api-reference/vi/%C4%91%E1%BB%8Bnh-d%E1%BA%A1ngkling-t%E1%BA%A1o-video/kling-tham-kh%E1%BA%A3o-to%C3%A0n-di%E1%BB%87n#webpage\"},\"dateModified\":\"2026-10-23T20:35:03.281Z\",\"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"}},"pages":[{"title":"en","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"}},"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"}},"tabs":[{"tab":"Tài liệu API","groups":[{"group":"Tổng quan","pages":[{"title":"Quy ước gọi","href":"/api-reference/vi/conventions"},{"title":"Bắt đầu nhanh","href":"/api-reference/vi/quickstart"},{"title":"Gỡ lỗi trực tuyến","href":"/api-reference/vi/online-debug"},{"title":"Mã gọi API do AI tạo","href":"/api-reference/vi/ai-codegen"}]},{"group":"Lấy danh sách mô hình","pages":[{"title":"Lấy danh sách mô hình","openapi":"api-reference/vi/openapi.json GET /v1/models","href":"/api-reference/vi/lấy-danh-sách-mô-hình/lấy-danh-sách-mô-hình"},{"title":"Lấy định dạng Gemini","openapi":"api-reference/vi/openapi.json GET /v1beta/models","href":"/api-reference/vi/lấy-danh-sách-mô-hình/lấy-định-dạng-gemini"}]},{"group":"Tạo hình ảnhOpenAI định dạng DALL-E","pages":[{"title":"Chỉnh sửa hình ảnh (tương thích với OpenAI Dall-E)","openapi":"api-reference/vi/openapi.json POST /v1/images/edits","href":"/api-reference/vi/tạo-hình-ảnhopenai-định-dạng-dall-e/chỉnh-sửa-hình-ảnh-tương-thích-với-openai-dall-e"},{"title":"Tạo hình ảnh (tương thích OpenAI Dall-E)","openapi":"api-reference/vi/openapi.json POST /v1/images/generations","href":"/api-reference/vi/tạo-hình-ảnhopenai-định-dạng-dall-e/tạo-hình-ảnh-tương-thích-openai-dall-e"}]},{"group":"Tạo video HappyHorse và Wan","pages":[{"title":"Tạo video (HappyHorse và Wan)","openapi":"api-reference/vi/openapi.json POST /api/v1/services/aigc/video-generation/video-synthesis","href":"/api-reference/vi/tạo-video-happyhorse-và-wan/tạo-video-happyhorse-và-wan"},{"title":"Truy vấn tác vụ (HappyHorse và Wan)","openapi":"api-reference/vi/openapi.json GET /api/v1/tasks/{task_id}","href":"/api-reference/vi/tạo-video-happyhorse-và-wan/truy-vấn-tác-vụ-happyhorse-và-wan"}]},{"group":"Tạo video Seedance","pages":[{"title":"Tạo video(Seedance)","openapi":"api-reference/vi/openapi.json POST /api/v3/contents/generations/tasks","href":"/api-reference/vi/tạo-video-seedance/tạo-video(seedance)"},{"title":"Truy vấn tác vụ(Seedance)","openapi":"api-reference/vi/openapi.json GET /api/v3/contents/generations/tasks/{task_id}","href":"/api-reference/vi/tạo-video-seedance/truy-vấn-tác-vụ(seedance)"}]},{"group":"Tạo video Vidu","pages":[{"title":"Tạo video từ hình ảnh (Vidu)","openapi":"api-reference/vi/openapi.json POST /ent/v2/img2video","href":"/api-reference/vi/tạo-video-vidu/tạo-video-từ-hình-ảnh-vidu"},{"title":"Tạo video sinh tham chiếu(Vidu)","openapi":"api-reference/vi/openapi.json POST /ent/v2/reference2video","href":"/api-reference/vi/tạo-video-vidu/tạo-video-sinh-tham-chiếuvidu"},{"title":"Tạo video khung đầu và khung cuối (Vidu)","openapi":"api-reference/vi/openapi.json POST /ent/v2/start-end2video","href":"/api-reference/vi/tạo-video-vidu/tạo-video-khung-đầu-và-khung-cuối-vidu"},{"title":"Truy vấn tác vụ(Vidu)","openapi":"api-reference/vi/openapi.json GET /ent/v2/tasks/{task_id}/creations","href":"/api-reference/vi/tạo-video-vidu/truy-vấn-tác-vụvidu"},{"title":"Tạo video từ văn bản(Vidu)","openapi":"api-reference/vi/openapi.json POST /ent/v2/text2video","href":"/api-reference/vi/tạo-video-vidu/tạo-video-từ-văn-bảnvidu"}]},{"group":"Định dạng Gemini cho tạo ảnh","pages":[{"title":"Hình ảnh Gemini (Nano Banana)","openapi":"api-reference/vi/openapi.json POST /v1beta/models/{model}:generateContent","href":"/api-reference/vi/định-dạng-gemini-cho-tạo-ảnh/hình-ảnh-gemini-nano-banana"}]},{"group":"Định dạng OpenAI (Chat)","pages":[{"title":"Tạo cuộc hội thoại chat","openapi":"api-reference/vi/openapi.json POST /v1/chat/completions","href":"/api-reference/vi/định-dạng-openai-chat/tạo-cuộc-hội-thoại-chat"}]},{"group":"Định dạng OpenAI (Responses)","pages":[{"title":"Tạo phản hồi (OpenAI Phản hồi API)","openapi":"api-reference/vi/openapi.json POST /v1/responses","href":"/api-reference/vi/định-dạng-openai-responses/tạo-phản-hồi-openai-phản-hồi-api"},{"title":"Phản hồi truy vấn (OpenAI Responses API)","openapi":"api-reference/vi/openapi.json GET /v1/responses/{response_id}","href":"/api-reference/vi/định-dạng-openai-responses/phản-hồi-truy-vấn-openai-responses-api"}]},{"group":"Định dạng Video Generation Omni và Veo","pages":[{"title":"Tạo video (định dạng Omni và Veo)","openapi":"api-reference/vi/openapi.json POST /v1beta/models/{model}:predictLongRunning","href":"/api-reference/vi/định-dạng-video-generation-omni-và-veo/tạo-video-định-dạng-omni-và-veo"},{"title":"Truy vấn tác vụ (định dạng Omni và Veo)","openapi":"api-reference/vi/openapi.json GET /v1beta/{operation_name}","href":"/api-reference/vi/định-dạng-video-generation-omni-và-veo/truy-vấn-tác-vụ-định-dạng-omni-và-veo"}]},{"group":"Định dạng tác vụ tạo nhạc","pages":[{"title":"Truy vấn tác vụ nhạc theo ID","openapi":"api-reference/vi/openapi.json GET /suno/fetch/{task_id}","href":"/api-reference/vi/định-dạng-tác-vụ-tạo-nhạc/truy-vấn-tác-vụ-nhạc-theo-id"},{"title":"Tạo tác vụ tạo nhạc hoặc âm thanh","openapi":"api-reference/vi/openapi.json POST /suno/submit/music","href":"/api-reference/vi/định-dạng-tác-vụ-tạo-nhạc/tạo-tác-vụ-tạo-nhạc-hoặc-âm-thanh"}]},{"group":"Định dạng tương thích Sora cho tạo video","pages":[{"title":"Tạo video","openapi":"api-reference/vi/openapi.json POST /v1/videos","href":"/api-reference/vi/định-dạng-tương-thích-sora-cho-tạo-video/tạo-video"},{"title":"Lấy trạng thái tác vụ video","openapi":"api-reference/vi/openapi.json GET /v1/videos/{task_id}","href":"/api-reference/vi/định-dạng-tương-thích-sora-cho-tạo-video/lấy-trạng-thái-tác-vụ-video"},{"title":"Lấy nội dung video","openapi":"api-reference/vi/openapi.json GET /v1/videos/{task_id}/content","href":"/api-reference/vi/định-dạng-tương-thích-sora-cho-tạo-video/lấy-nội-dung-video"}]},{"group":"Định dạngKling tạo video","pages":[{"title":"Kling Chuyển hình ảnh thành video","openapi":"api-reference/vi/openapi.json POST /image-to-video/kling-4.0","href":"/api-reference/vi/định-dạngkling-tạo-video/kling-chuyển-hình-ảnh-thành-video"},{"title":"Kling tạo video từ văn bản","openapi":"api-reference/vi/openapi.json POST /text-to-video/kling-4.0","description":"Dòng này hỗ trợ định dạng tạo video OpenAI (xem chi tiết tại liên kết [Định dạng tương thích với Sora tạo video](/api-reference/vi/tao-video-dinh-dang-tuong-thich-sora/tao-video)).\n\nGiao diện tác vụ gốc Kling 4.0. Sử dụng Bearer API Key của trang này để xác thực. Nội dung yêu cầu không cần `model`; `settings.resolution=720p` sử dụng `kling-4.0`, `1080p` sử dụng `kling-4.0-1080p`, mặc định là `1080p`. Sau khi tạo thành công, dùng `data.id` trả về để gọi `GET /tasks?task_ids=ID tác vụ`; nhiều ID được phân tách bằng dấu phẩy. `data` của kết quả truy vấn là một mảng, URL video kết quả nằm tại `data[].outputs[].url`.\n\nHiện hỗ trợ các trường hợp tạo tương ứng với prompt, first_frame, last_frame, refer_image và feature_video. Không hỗ trợ middle_frame, base_video, element, voice, tham chiếu âm thanh, callback hoặc ID tác vụ bên ngoài tùy chỉnh; options.callback_url không rỗng, options.external_task_id không rỗng, contents.id không rỗng và các trường không được hỗ trợ khác sẽ trả về 400. Có thể bỏ qua options hoặc truyền một đối tượng rỗng, hoặc truyền watermark_info.enabled=false; hiện chưa hỗ trợ bật hình mờ. Thời lượng hiện được hỗ trợ từ 4 đến 30 giây, mặc định là 10 giây; chưa hỗ trợ 3 giây. Tỷ lệ khung hình mặc định cho các trường hợp văn bản tạo sinh và tham chiếu là 16:9; việc chỉ định rõ adaptive sẽ trả về 400. Trường hợp khung hình đầu-cuối không chấp nhận settings.aspect_ratio được chỉ định rõ; tỷ lệ khung hình được xác định theo kích thước của ảnh frame đầu tiên.\n\nĐối với tạo video từ văn bản, truyền `prompt` ở cấp cao nhất, không cần `contents`.","href":"/api-reference/vi/định-dạngkling-tạo-video/kling-tạo-video-từ-văn-bản"},{"title":"Kling Tham khảo toàn diện","openapi":"api-reference/vi/openapi.json POST /omni-video/kling-4.0","href":"/api-reference/vi/định-dạngkling-tạo-video/kling-tham-khảo-toàn-diện"},{"title":"Truy vấn hàng loạt các tác vụ Kling","openapi":"api-reference/vi/openapi.json GET /tasks","description":"Dòng này hỗ trợ định dạng tạo video OpenAI (xem chi tiết tại liên kết [Định dạng tương thích với Sora tạo video](/api-reference/vi/tao-video-dinh-dang-tuong-thich-sora/tao-video)).\n\nSử dụng ID tác vụ của hệ thống này được trả về bởi API tạo. task_ids là từ 1 đến 100 ID duy nhất, được phân tách bằng dấu phẩy; chỉ truy vấn các tác vụ Kling 4.0 thuộc về người dùng sở hữu mã thông báo hiện tại. Nếu bất kỳ ID nào không tồn tại, không thuộc về người dùng hiện tại hoặc không phải là tác vụ Kling 4.0, toàn bộ yêu cầu sẽ trả về 404. data luôn là một mảng; outputs sau khi hoàn tất chứa URL video. Không hỗ trợ external_task_ids hoặc truy vấn danh sách POST /tasks.","href":"/api-reference/vi/định-dạngkling-tạo-video/truy-vấn-hàng-loạt-các-tác-vụ-kling"}]}]},{"tab":"Skills","pages":[{"title":"Skills","href":"/vi/skills/overview"}]},{"tab":"Hướng dẫn","pages":[{"title":"Hướng dẫn","href":"/vi/overview"}]}]}]},"basePath":"","title":"Kling Tham khảo toàn diện - 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"]}