Được dùng để tạo tác vụ tạo video và truy vấn trạng thái cũng như kết quả thông qua ID tác vụ.
Các trường cốt lõi để tạo tác vụ:
model: Bắt buộc, tên mô hình.
prompt: Không bắt buộc; nếu không truyền, cần cung cấp mục văn bản không rỗng trong content.
content: tùy chọn, mảng content của Volcano Ark, trộn văn bản, hình ảnh, video và âm thanh.
function_mode: Tùy chọn, thường dùng cho các chế độ nâng cao như tham chiếu toàn năng.
Các tham số đầu vào tương thích:
Các trường sau chủ yếu dùng để tương thích với client cũ và giao thức cũ. Với tích hợp mới, vui lòng ưu tiên dùng định dạng chuẩn trong “Ví dụ yêu cầu” trên trang này: văn bản và tài liệu tham chiếu sử dụng mảng content, còn cấu hình sinh sử dụng các trường cấp cao nhất duration, ratio, resolution, fps, v.v.
Khi là mode=reference_material hoặc function_mode=omni_reference, nên truyền văn bản và tài liệu tham chiếu thông qua content.
content mục văn bản được viết theo dạng { "type": "text", "text": "测试文字" }.
content các mục tài nguyên hình ảnh, video, âm thanh lần lượt dùng cú pháp đối tượng image_url, video_url, audio_url, ví dụ { "type": "image_url", "image_url": { "url": "https://example.com/ref.png" }, "role": "reference_image", "name": "1" }.
role có thể dùng để xác định mục đích của tài nguyên, name có thể được tham chiếu theo tên trong prompt.
ratio, duration, resolution, fps sẽ ảnh hưởng đến cấu hình tạo cuối cùng.
Seedance 2.5 Ví dụ tham chiếu kết hợp hình ảnh, video và âm thanh (URL tài nguyên là phần giữ chỗ; khi gọi, vui lòng thay bằng liên kết thực tế có thể truy cập):
gemini-omni cũng có thể được gọi thông qua giao diện tác vụ Seedance này.
mode=t2v dùng cho tạo video từ văn bản, mode=r2v dùng cho tạo bằng ảnh tham chiếu/tài nguyên tham chiếu, mode=edit dùng cho chỉnh sửa video.
Văn bản có thể đặt trong mục text của prompt hoặc content; hình ảnh có thể đặt trong image_url / image_urls / reference_images / input_reference / content; video có thể đặt trong video_urls / content.
Trường thời lượng có thể dùng duration hoặc seconds, hệ thống sẽ tự động khớp với các mức 4 / 6 / 8 / 10 giây.
MiniMax / Hailuo gọi:
minimax-h3 có thể được gọi thông qua API tác vụ này, hỗ trợ tạo video từ văn bản, tham chiếu ảnh và tham chiếu âm thanh; văn bản có thể đặt trong mục văn bản prompt hoặc content, dữ liệu có thể đặt trong các trường như content, image_urls, audio_urls.
hailuo-2.3 có thể được gọi thông qua API tác vụ này, cần ảnh khung hình đầu tiên; khuyến nghị truyền mục image_url của role=first_frame trong content.
minimax-h3 thường dùng duration=5~15, resolution=1440p; hailuo-2.3 thường dùng duration=6 hoặc 10, resolution=768p.
Các trường cần lưu ý trong kết quả truy vấn:
items[].status
items[].content.video_url hoặc items[].video_url
items[].error
items[].progress
Error fields: error.code, error.message.
{ "error": { "code": "invalid_request_error", "message": "requires at least one image in `images`" }}
Kling 4.0
Gọi Kling 4.0: kling-4.0 (720p) và kling-4.0-1080p đều hỗ trợ định dạng Seedance content/duration/resolution/ratio/mode, contents/settings/options và định dạng video OpenAI; hai điểm vào video hợp nhất có thể dùng lại cùng một request body. Độ phân giải phải khớp với tên mô hình. Kling 4.0 có thể trực tiếp sử dụng content/duration/resolution/ratio/mode ở định dạng Seedance, hoặc prompt/seconds/size/input_reference ở định dạng video OpenAI; cả hai đều không cần thêm contents/settings/options. Vỏ bọc contents/settings/options cũ chỉ nhằm mục đích tương thích. mode có các tùy chọn t2v (chỉ văn bản), i2v (một khung hình đầu), i2v_first_last (hai khung hình đầu và cuối), reference_images (ảnh tham chiếu thông thường), reference_material (tham chiếu ảnh hoặc video). Khi bỏ qua mode và không có công cụ được chỉ định rõ ràng, nếu có tài liệu tham chiếu thì mặc định là reference_material; nếu không có bất kỳ tài liệu tham chiếu nào thì mặc định là t2v. Chế độ tham chiếu sử dụng vai trò ảnh tham chiếu thông thường và không tự động chuyển các khung hình đầu/cuối được chỉ định rõ ràng thành ảnh tham chiếu; đối với khung hình đầu/cuối, hãy chọn rõ ràng i2v hoặc i2v_first_last và bỏ qua tham số tỷ lệ khung hình. Hiện chưa hỗ trợ âm thanh tham chiếu. settings.audio chỉ là tùy chọn trong chế độ đa năng của ảnh tham chiếu/tài liệu tham chiếu; với t2v, i2v và i2v_first_last, hãy bỏ qua công tắc âm thanh.
Vidu Q4
Vidu Q4: vidu-q4 cố định ở 720p, vidu-q4-540p cố định ở 540p, hỗ trợ tạo video dài 3~16 giây. Yêu cầu ít nhất 1 ảnh và hỗ trợ tối đa 15 ảnh tham chiếu; quá trình tạo từ tham chiếu có thể kèm tối đa 3 đoạn âm thanh MP3, mỗi đoạn dài 3~12 giây và tối đa 50MB. Không hỗ trợ chỉ tạo từ văn bản, chỉ định khung hình đầu/cuối hoặc video tham chiếu. Nhiều ảnh được dùng làm tham chiếu chung, không biểu thị vị trí đầu/cuối. Có thể tạo tác vụ qua POST /v1/videos, POST /api/v3/contents/generations/tasks, hoặc theo định dạng Vidu POST /ent/v2/img2video, POST /ent/v2/reference2video. Khuyến nghị dùng mode=reference_images làm điểm vào hợp nhất; khi có âm thanh, dùng mode=reference_material. Có thể dùng audio_urls cho âm thanh tham chiếu; ở định dạng Seedance, cũng có thể dùng mục audio_url của content tiêu chuẩn; trường boolean audio biểu thị công tắc tạo âm thanh và được sử dụng riêng với danh sách URL âm thanh tham chiếu. Độ phân giải phải khớp với tên mô hình.
Tùy chọn. Mảng content của Volcano Ark, sắp xếp xen kẽ theo thứ tự giữa văn bản và các mục nội dung. Mục văn bản dùng { "type": "text", "text": "..." }; các mục hình ảnh, video, âm thanh lần lượt dùng các đối tượng image_url, video_url, audio_url và đặt url bên trong, có thể kết hợp với role (như reference_image, reference_video, reference_audio) và name để văn bản tham chiếu.
{"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/tạo-video-seedance/tạo-video(seedance)","slug":"/api-reference/vi/tạo-video-seedance/tạo-video(seedance)","pageMetadata":{"title":"Tạo video(Seedance)","openapi":"api-reference/vi/openapi.json POST /api/v3/contents/generations/tasks","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\nĐược dùng để tạo tác vụ tạo video và truy vấn trạng thái cũng như kết quả thông qua ID tác vụ.\n\nCác trường cốt lõi để tạo tác vụ:\n- `model`: Bắt buộc, tên mô hình.\n- `prompt`: Không bắt buộc; nếu không truyền, cần cung cấp mục văn bản không rỗng trong `content`.\n- `content`: tùy chọn, mảng content của Volcano Ark, trộn văn bản, hình ảnh, video và âm thanh.\n- `function_mode`: Tùy chọn, thường dùng cho các chế độ nâng cao như tham chiếu toàn năng.\n\nCác tham số đầu vào tương thích:\n\nCác trường sau chủ yếu dùng để tương thích với client cũ và giao thức cũ. Với tích hợp mới, vui lòng ưu tiên dùng định dạng chuẩn trong “Ví dụ yêu cầu” trên trang này: văn bản và tài liệu tham chiếu sử dụng mảng `content`, còn cấu hình sinh sử dụng các trường cấp cao nhất `duration`, `ratio`, `resolution`, `fps`, v.v.\n\n- `mode`:`t2v / i2v / i2v_first_last / reference_images / reference_material`\n- `image_url / image_urls / input_reference`\n- `end_image_url / last_image_url`\n- `video_urls / audio_urls`\n- `seconds / duration`\n- `aspect_ratio / ratio / size`\n- `quality / resolution`\n- `fps`\n- `generate_audio / watermark`\n\nChi tiết gọi API:\n- Khi là `mode=reference_material` hoặc `function_mode=omni_reference`, nên truyền văn bản và tài liệu tham chiếu thông qua `content`.\n- `content` mục văn bản được viết theo dạng `{ \"type\": \"text\", \"text\": \"测试文字\" }`.\n- `content` các mục tài nguyên hình ảnh, video, âm thanh lần lượt dùng cú pháp đối tượng `image_url`, `video_url`, `audio_url`, ví dụ `{ \"type\": \"image_url\", \"image_url\": { \"url\": \"https://example.com/ref.png\" }, \"role\": \"reference_image\", \"name\": \"1\" }`.\n- `role` có thể dùng để xác định mục đích của tài nguyên, `name` có thể được tham chiếu theo tên trong prompt.\n- `ratio`, `duration`, `resolution`, `fps` sẽ ảnh hưởng đến cấu hình tạo cuối cùng.\n\nSeedance 2.5 Ví dụ tham chiếu kết hợp hình ảnh, video và âm thanh (URL tài nguyên là phần giữ chỗ; khi gọi, vui lòng thay bằng liên kết thực tế có thể truy cập):\n\n```json\n{\n \"model\": \"sd-2-5\",\n \"ratio\": \"9:16\",\n \"fps\": 24,\n \"duration\": 10,\n \"content\": [\n {\n \"type\": \"text\",\n \"text\": \"使用 @图片1 @图片2 @图片3 @音频1 参考@视频1 生成视频\"\n },\n {\n \"type\": \"image_url\",\n \"image_url\": {\n \"url\": \"https://demo1.png\"\n },\n \"role\": \"reference_image\",\n \"name\": \"图片1\"\n },\n {\n \"type\": \"image_url\",\n \"image_url\": {\n \"url\": \"https://demo2.png\"\n },\n \"role\": \"reference_image\",\n \"name\": \"图片2\"\n },\n {\n \"type\": \"image_url\",\n \"image_url\": {\n \"url\": \"https://demo3.png\"\n },\n \"role\": \"reference_image\",\n \"name\": \"图片3\"\n },\n {\n \"type\": \"video_url\",\n \"video_url\": {\n \"url\": \"https://video.mp4\"\n },\n \"role\": \"reference_video\",\n \"name\": \"视频1\"\n },\n {\n \"type\": \"audio_url\",\n \"audio_url\": {\n \"url\": \"https://audio.mp3\"\n },\n \"role\": \"reference_audio\",\n \"name\": \"音频1\"\n }\n ]\n}\n```\n\nGọi Gemini Omni:\n- `gemini-omni` cũng có thể được gọi thông qua giao diện tác vụ Seedance này.\n- `mode=t2v` dùng cho tạo video từ văn bản, `mode=r2v` dùng cho tạo bằng ảnh tham chiếu/tài nguyên tham chiếu, `mode=edit` dùng cho chỉnh sửa video.\n- Văn bản có thể đặt trong mục `text` của `prompt` hoặc `content`; hình ảnh có thể đặt trong `image_url / image_urls / reference_images / input_reference / content`; video có thể đặt trong `video_urls / content`.\n- Trường thời lượng có thể dùng `duration` hoặc `seconds`, hệ thống sẽ tự động khớp với các mức 4 / 6 / 8 / 10 giây.\n\nMiniMax / Hailuo gọi:\n- `minimax-h3` có thể được gọi thông qua API tác vụ này, hỗ trợ tạo video từ văn bản, tham chiếu ảnh và tham chiếu âm thanh; văn bản có thể đặt trong mục văn bản `prompt` hoặc `content`, dữ liệu có thể đặt trong các trường như `content`, `image_urls`, `audio_urls`.\n- `hailuo-2.3` có thể được gọi thông qua API tác vụ này, cần ảnh khung hình đầu tiên; khuyến nghị truyền mục `image_url` của `role=first_frame` trong `content`.\n- `minimax-h3` thường dùng `duration=5~15`, `resolution=1440p`; `hailuo-2.3` thường dùng `duration=6` hoặc `10`, `resolution=768p`.\n\nCác trường cần lưu ý trong kết quả truy vấn:\n- `items[].status`\n- `items[].content.video_url` hoặc `items[].video_url`\n- `items[].error`\n- `items[].progress`\n\nError fields: `error.code`, `error.message`.\n\n```json\n{\n \"error\": {\n \"code\": \"invalid_request_error\",\n \"message\": \"requires at least one image in `images`\"\n }\n}\n```\n\n## Kling 4.0\n\nGọi Kling 4.0: `kling-4.0` (720p) và `kling-4.0-1080p` đều hỗ trợ định dạng Seedance `content/duration/resolution/ratio/mode`, `contents/settings/options` và định dạng video OpenAI; hai điểm vào video hợp nhất có thể dùng lại cùng một request body. Độ phân giải phải khớp với tên mô hình. Kling 4.0 có thể trực tiếp sử dụng content/duration/resolution/ratio/mode ở định dạng Seedance, hoặc prompt/seconds/size/input_reference ở định dạng video OpenAI; cả hai đều không cần thêm contents/settings/options. Vỏ bọc contents/settings/options cũ chỉ nhằm mục đích tương thích. mode có các tùy chọn t2v (chỉ văn bản), i2v (một khung hình đầu), i2v_first_last (hai khung hình đầu và cuối), reference_images (ảnh tham chiếu thông thường), reference_material (tham chiếu ảnh hoặc video). Khi bỏ qua mode và không có công cụ được chỉ định rõ ràng, nếu có tài liệu tham chiếu thì mặc định là reference_material; nếu không có bất kỳ tài liệu tham chiếu nào thì mặc định là t2v. Chế độ tham chiếu sử dụng vai trò ảnh tham chiếu thông thường và không tự động chuyển các khung hình đầu/cuối được chỉ định rõ ràng thành ảnh tham chiếu; đối với khung hình đầu/cuối, hãy chọn rõ ràng i2v hoặc i2v_first_last và bỏ qua tham số tỷ lệ khung hình. Hiện chưa hỗ trợ âm thanh tham chiếu. settings.audio chỉ là tùy chọn trong chế độ đa năng của ảnh tham chiếu/tài liệu tham chiếu; với t2v, i2v và i2v_first_last, hãy bỏ qua công tắc âm thanh.\n\n## Vidu Q4\n\nVidu Q4: `vidu-q4` cố định ở 720p, `vidu-q4-540p` cố định ở 540p, hỗ trợ tạo video dài 3~16 giây. Yêu cầu ít nhất 1 ảnh và hỗ trợ tối đa 15 ảnh tham chiếu; quá trình tạo từ tham chiếu có thể kèm tối đa 3 đoạn âm thanh MP3, mỗi đoạn dài 3~12 giây và tối đa 50MB. Không hỗ trợ chỉ tạo từ văn bản, chỉ định khung hình đầu/cuối hoặc video tham chiếu. Nhiều ảnh được dùng làm tham chiếu chung, không biểu thị vị trí đầu/cuối. Có thể tạo tác vụ qua `POST /v1/videos`, `POST /api/v3/contents/generations/tasks`, hoặc theo định dạng Vidu `POST /ent/v2/img2video`, `POST /ent/v2/reference2video`. Khuyến nghị dùng `mode=reference_images` làm điểm vào hợp nhất; khi có âm thanh, dùng `mode=reference_material`. Có thể dùng `audio_urls` cho âm thanh tham chiếu; ở định dạng Seedance, cũng có thể dùng mục `audio_url` của `content` tiêu chuẩn; trường boolean `audio` biểu thị công tắc tạo âm thanh và được sử dụng riêng với danh sách URL âm thanh tham chiếu. Độ phân giải phải khớp với tên mô hình.","href":"/api-reference/vi/tạo-video-seedance/tạo-video(seedance)"},"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 h2: \"h2\",\n li: \"li\",\n p: \"p\",\n pre: \"pre\",\n span: \"span\",\n ul: \"ul\",\n ..._provideComponents(),\n ...props.components\n }, {CodeBlock} = _components;\n if (!CodeBlock) _missingMdxReference(\"CodeBlock\", true);\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\", _jsx(_components.p, {\n children: \"Được dùng để tạo tác vụ tạo video và truy vấn trạng thái cũng như kết quả thông qua ID tác vụ.\"\n }), \"\\n\", _jsx(_components.p, {\n children: \"Các trường cốt lõi để tạo tác vụ:\"\n }), \"\\n\", _jsxs(_components.ul, {\n children: [\"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.code, {\n children: \"model\"\n }), \": Bắt buộc, tên mô hình.\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.code, {\n children: \"prompt\"\n }), \": Không bắt buộc; nếu không truyền, cần cung cấp mục văn bản không rỗng trong \", _jsx(_components.code, {\n children: \"content\"\n }), \".\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.code, {\n children: \"content\"\n }), \": tùy chọn, mảng content của Volcano Ark, trộn văn bản, hình ảnh, video và âm thanh.\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.code, {\n children: \"function_mode\"\n }), \": Tùy chọn, thường dùng cho các chế độ nâng cao như tham chiếu toàn năng.\"]\n }), \"\\n\"]\n }), \"\\n\", _jsx(_components.p, {\n children: \"Các tham số đầu vào tương thích:\"\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"Các trường sau chủ yếu dùng để tương thích với client cũ và giao thức cũ. Với tích hợp mới, vui lòng ưu tiên dùng định dạng chuẩn trong “Ví dụ yêu cầu” trên trang này: văn bản và tài liệu tham chiếu sử dụng mảng \", _jsx(_components.code, {\n children: \"content\"\n }), \", còn cấu hình sinh sử dụng các trường cấp cao nhất \", _jsx(_components.code, {\n children: \"duration\"\n }), \", \", _jsx(_components.code, {\n children: \"ratio\"\n }), \", \", _jsx(_components.code, {\n children: \"resolution\"\n }), \", \", _jsx(_components.code, {\n children: \"fps\"\n }), \", v.v.\"]\n }), \"\\n\", _jsxs(_components.ul, {\n children: [\"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.code, {\n children: \"mode\"\n }), \":\", _jsx(_components.code, {\n children: \"t2v / i2v / i2v_first_last / reference_images / reference_material\"\n })]\n }), \"\\n\", _jsx(_components.li, {\n children: _jsx(_components.code, {\n children: \"image_url / image_urls / input_reference\"\n })\n }), \"\\n\", _jsx(_components.li, {\n children: _jsx(_components.code, {\n children: \"end_image_url / last_image_url\"\n })\n }), \"\\n\", _jsx(_components.li, {\n children: _jsx(_components.code, {\n children: \"video_urls / audio_urls\"\n })\n }), \"\\n\", _jsx(_components.li, {\n children: _jsx(_components.code, {\n children: \"seconds / duration\"\n })\n }), \"\\n\", _jsx(_components.li, {\n children: _jsx(_components.code, {\n children: \"aspect_ratio / ratio / size\"\n })\n }), \"\\n\", _jsx(_components.li, {\n children: _jsx(_components.code, {\n children: \"quality / resolution\"\n })\n }), \"\\n\", _jsx(_components.li, {\n children: _jsx(_components.code, {\n children: \"fps\"\n })\n }), \"\\n\", _jsx(_components.li, {\n children: _jsx(_components.code, {\n children: \"generate_audio / watermark\"\n })\n }), \"\\n\"]\n }), \"\\n\", _jsx(_components.p, {\n children: \"Chi tiết gọi API:\"\n }), \"\\n\", _jsxs(_components.ul, {\n children: [\"\\n\", _jsxs(_components.li, {\n children: [\"Khi là \", _jsx(_components.code, {\n children: \"mode=reference_material\"\n }), \" hoặc \", _jsx(_components.code, {\n children: \"function_mode=omni_reference\"\n }), \", nên truyền văn bản và tài liệu tham chiếu thông qua \", _jsx(_components.code, {\n children: \"content\"\n }), \".\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.code, {\n children: \"content\"\n }), \" mục văn bản được viết theo dạng \", _jsx(_components.code, {\n children: \"{ \\\"type\\\": \\\"text\\\", \\\"text\\\": \\\"测试文字\\\" }\"\n }), \".\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.code, {\n children: \"content\"\n }), \" các mục tài nguyên hình ảnh, video, âm thanh lần lượt dùng cú pháp đối tượng \", _jsx(_components.code, {\n children: \"image_url\"\n }), \", \", _jsx(_components.code, {\n children: \"video_url\"\n }), \", \", _jsx(_components.code, {\n children: \"audio_url\"\n }), \", ví dụ \", _jsx(_components.code, {\n children: \"{ \\\"type\\\": \\\"image_url\\\", \\\"image_url\\\": { \\\"url\\\": \\\"https://example.com/ref.png\\\" }, \\\"role\\\": \\\"reference_image\\\", \\\"name\\\": \\\"1\\\" }\"\n }), \".\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.code, {\n children: \"role\"\n }), \" có thể dùng để xác định mục đích của tài nguyên, \", _jsx(_components.code, {\n children: \"name\"\n }), \" có thể được tham chiếu theo tên trong prompt.\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.code, {\n children: \"ratio\"\n }), \", \", _jsx(_components.code, {\n children: \"duration\"\n }), \", \", _jsx(_components.code, {\n children: \"resolution\"\n }), \", \", _jsx(_components.code, {\n children: \"fps\"\n }), \" sẽ ảnh hưởng đến cấu hình tạo cuối cùng.\"]\n }), \"\\n\"]\n }), \"\\n\", _jsx(_components.p, {\n children: \"Seedance 2.5 Ví dụ tham chiếu kết hợp hình ảnh, video và âm thanh (URL tài nguyên là phần giữ chỗ; khi gọi, vui lòng thay bằng liên kết thực tế có thể truy cập):\"\n }), \"\\n\", _jsx(CodeBlock, {\n numberOfLines: \"52\",\n language: \"json\",\n children: _jsx(_components.pre, {\n className: \"shiki shiki-themes github-light-default dark-plus\",\n style: {\n backgroundColor: \"#ffffff\",\n \"--shiki-dark-bg\": \"#0B0C0E\",\n color: \"#1f2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n language: \"json\",\n children: _jsxs(_components.code, {\n language: \"json\",\n numberOfLines: \"52\",\n children: [_jsx(_components.span, {\n className: \"line\",\n children: _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \"{\"\n })\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#116329\",\n \"--shiki-dark\": \"#9CDCFE\"\n },\n children: \" \\\"model\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \": \"\n }), _jsx(_components.span, {\n style: {\n color: \"#0A3069\",\n \"--shiki-dark\": \"#CE9178\"\n },\n children: \"\\\"sd-2-5\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \",\"\n })]\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#116329\",\n \"--shiki-dark\": \"#9CDCFE\"\n },\n children: \" \\\"ratio\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \": \"\n }), _jsx(_components.span, {\n style: {\n color: \"#0A3069\",\n \"--shiki-dark\": \"#CE9178\"\n },\n children: \"\\\"9:16\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \",\"\n })]\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#116329\",\n \"--shiki-dark\": \"#9CDCFE\"\n },\n children: \" \\\"fps\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \": \"\n }), _jsx(_components.span, {\n style: {\n color: \"#0550AE\",\n \"--shiki-dark\": \"#B5CEA8\"\n },\n children: \"24\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \",\"\n })]\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#116329\",\n \"--shiki-dark\": \"#9CDCFE\"\n },\n children: \" \\\"duration\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \": \"\n }), _jsx(_components.span, {\n style: {\n color: \"#0550AE\",\n \"--shiki-dark\": \"#B5CEA8\"\n },\n children: \"10\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \",\"\n })]\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#116329\",\n \"--shiki-dark\": \"#9CDCFE\"\n },\n children: \" \\\"content\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \": [\"\n })]\n }), \"\\n\", _jsx(_components.span, {\n className: \"line\",\n children: _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \" {\"\n })\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#116329\",\n \"--shiki-dark\": \"#9CDCFE\"\n },\n children: \" \\\"type\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \": \"\n }), _jsx(_components.span, {\n style: {\n color: \"#0A3069\",\n \"--shiki-dark\": \"#CE9178\"\n },\n children: \"\\\"text\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \",\"\n })]\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#116329\",\n \"--shiki-dark\": \"#9CDCFE\"\n },\n children: \" \\\"text\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \": \"\n }), _jsx(_components.span, {\n style: {\n color: \"#0A3069\",\n \"--shiki-dark\": \"#CE9178\"\n },\n children: \"\\\"使用 @图片1 @图片2 @图片3 @音频1 参考@视频1 生成视频\\\"\"\n })]\n }), \"\\n\", _jsx(_components.span, {\n className: \"line\",\n children: _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \" },\"\n })\n }), \"\\n\", _jsx(_components.span, {\n className: \"line\",\n children: _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \" {\"\n })\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#116329\",\n \"--shiki-dark\": \"#9CDCFE\"\n },\n children: \" \\\"type\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \": \"\n }), _jsx(_components.span, {\n style: {\n color: \"#0A3069\",\n \"--shiki-dark\": \"#CE9178\"\n },\n children: \"\\\"image_url\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \",\"\n })]\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#116329\",\n \"--shiki-dark\": \"#9CDCFE\"\n },\n children: \" \\\"image_url\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \": {\"\n })]\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#116329\",\n \"--shiki-dark\": \"#9CDCFE\"\n },\n children: \" \\\"url\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \": \"\n }), _jsx(_components.span, {\n style: {\n color: \"#0A3069\",\n \"--shiki-dark\": \"#CE9178\"\n },\n children: \"\\\"https://demo1.png\\\"\"\n })]\n }), \"\\n\", _jsx(_components.span, {\n className: \"line\",\n children: _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \" },\"\n })\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#116329\",\n \"--shiki-dark\": \"#9CDCFE\"\n },\n children: \" \\\"role\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \": \"\n }), _jsx(_components.span, {\n style: {\n color: \"#0A3069\",\n \"--shiki-dark\": \"#CE9178\"\n },\n children: \"\\\"reference_image\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \",\"\n })]\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#116329\",\n \"--shiki-dark\": \"#9CDCFE\"\n },\n children: \" \\\"name\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \": \"\n }), _jsx(_components.span, {\n style: {\n color: \"#0A3069\",\n \"--shiki-dark\": \"#CE9178\"\n },\n children: \"\\\"图片1\\\"\"\n })]\n }), \"\\n\", _jsx(_components.span, {\n className: \"line\",\n children: _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \" },\"\n })\n }), \"\\n\", _jsx(_components.span, {\n className: \"line\",\n children: _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \" {\"\n })\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#116329\",\n \"--shiki-dark\": \"#9CDCFE\"\n },\n children: \" \\\"type\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \": \"\n }), _jsx(_components.span, {\n style: {\n color: \"#0A3069\",\n \"--shiki-dark\": \"#CE9178\"\n },\n children: \"\\\"image_url\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \",\"\n })]\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#116329\",\n \"--shiki-dark\": \"#9CDCFE\"\n },\n children: \" \\\"image_url\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \": {\"\n })]\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#116329\",\n \"--shiki-dark\": \"#9CDCFE\"\n },\n children: \" \\\"url\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \": \"\n }), _jsx(_components.span, {\n style: {\n color: \"#0A3069\",\n \"--shiki-dark\": \"#CE9178\"\n },\n children: \"\\\"https://demo2.png\\\"\"\n })]\n }), \"\\n\", _jsx(_components.span, {\n className: \"line\",\n children: _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \" },\"\n })\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#116329\",\n \"--shiki-dark\": \"#9CDCFE\"\n },\n children: \" \\\"role\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \": \"\n }), _jsx(_components.span, {\n style: {\n color: \"#0A3069\",\n \"--shiki-dark\": \"#CE9178\"\n },\n children: \"\\\"reference_image\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \",\"\n })]\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#116329\",\n \"--shiki-dark\": \"#9CDCFE\"\n },\n children: \" \\\"name\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \": \"\n }), _jsx(_components.span, {\n style: {\n color: \"#0A3069\",\n \"--shiki-dark\": \"#CE9178\"\n },\n children: \"\\\"图片2\\\"\"\n })]\n }), \"\\n\", _jsx(_components.span, {\n className: \"line\",\n children: _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \" },\"\n })\n }), \"\\n\", _jsx(_components.span, {\n className: \"line\",\n children: _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \" {\"\n })\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#116329\",\n \"--shiki-dark\": \"#9CDCFE\"\n },\n children: \" \\\"type\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \": \"\n }), _jsx(_components.span, {\n style: {\n color: \"#0A3069\",\n \"--shiki-dark\": \"#CE9178\"\n },\n children: \"\\\"image_url\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \",\"\n })]\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#116329\",\n \"--shiki-dark\": \"#9CDCFE\"\n },\n children: \" \\\"image_url\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \": {\"\n })]\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#116329\",\n \"--shiki-dark\": \"#9CDCFE\"\n },\n children: \" \\\"url\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \": \"\n }), _jsx(_components.span, {\n style: {\n color: \"#0A3069\",\n \"--shiki-dark\": \"#CE9178\"\n },\n children: \"\\\"https://demo3.png\\\"\"\n })]\n }), \"\\n\", _jsx(_components.span, {\n className: \"line\",\n children: _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \" },\"\n })\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#116329\",\n \"--shiki-dark\": \"#9CDCFE\"\n },\n children: \" \\\"role\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \": \"\n }), _jsx(_components.span, {\n style: {\n color: \"#0A3069\",\n \"--shiki-dark\": \"#CE9178\"\n },\n children: \"\\\"reference_image\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \",\"\n })]\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#116329\",\n \"--shiki-dark\": \"#9CDCFE\"\n },\n children: \" \\\"name\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \": \"\n }), _jsx(_components.span, {\n style: {\n color: \"#0A3069\",\n \"--shiki-dark\": \"#CE9178\"\n },\n children: \"\\\"图片3\\\"\"\n })]\n }), \"\\n\", _jsx(_components.span, {\n className: \"line\",\n children: _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \" },\"\n })\n }), \"\\n\", _jsx(_components.span, {\n className: \"line\",\n children: _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \" {\"\n })\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#116329\",\n \"--shiki-dark\": \"#9CDCFE\"\n },\n children: \" \\\"type\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \": \"\n }), _jsx(_components.span, {\n style: {\n color: \"#0A3069\",\n \"--shiki-dark\": \"#CE9178\"\n },\n children: \"\\\"video_url\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \",\"\n })]\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#116329\",\n \"--shiki-dark\": \"#9CDCFE\"\n },\n children: \" \\\"video_url\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \": {\"\n })]\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#116329\",\n \"--shiki-dark\": \"#9CDCFE\"\n },\n children: \" \\\"url\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \": \"\n }), _jsx(_components.span, {\n style: {\n color: \"#0A3069\",\n \"--shiki-dark\": \"#CE9178\"\n },\n children: \"\\\"https://video.mp4\\\"\"\n })]\n }), \"\\n\", _jsx(_components.span, {\n className: \"line\",\n children: _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \" },\"\n })\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#116329\",\n \"--shiki-dark\": \"#9CDCFE\"\n },\n children: \" \\\"role\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \": \"\n }), _jsx(_components.span, {\n style: {\n color: \"#0A3069\",\n \"--shiki-dark\": \"#CE9178\"\n },\n children: \"\\\"reference_video\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \",\"\n })]\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#116329\",\n \"--shiki-dark\": \"#9CDCFE\"\n },\n children: \" \\\"name\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \": \"\n }), _jsx(_components.span, {\n style: {\n color: \"#0A3069\",\n \"--shiki-dark\": \"#CE9178\"\n },\n children: \"\\\"视频1\\\"\"\n })]\n }), \"\\n\", _jsx(_components.span, {\n className: \"line\",\n children: _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \" },\"\n })\n }), \"\\n\", _jsx(_components.span, {\n className: \"line\",\n children: _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \" {\"\n })\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#116329\",\n \"--shiki-dark\": \"#9CDCFE\"\n },\n children: \" \\\"type\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \": \"\n }), _jsx(_components.span, {\n style: {\n color: \"#0A3069\",\n \"--shiki-dark\": \"#CE9178\"\n },\n children: \"\\\"audio_url\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \",\"\n })]\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#116329\",\n \"--shiki-dark\": \"#9CDCFE\"\n },\n children: \" \\\"audio_url\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \": {\"\n })]\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#116329\",\n \"--shiki-dark\": \"#9CDCFE\"\n },\n children: \" \\\"url\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \": \"\n }), _jsx(_components.span, {\n style: {\n color: \"#0A3069\",\n \"--shiki-dark\": \"#CE9178\"\n },\n children: \"\\\"https://audio.mp3\\\"\"\n })]\n }), \"\\n\", _jsx(_components.span, {\n className: \"line\",\n children: _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \" },\"\n })\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#116329\",\n \"--shiki-dark\": \"#9CDCFE\"\n },\n children: \" \\\"role\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \": \"\n }), _jsx(_components.span, {\n style: {\n color: \"#0A3069\",\n \"--shiki-dark\": \"#CE9178\"\n },\n children: \"\\\"reference_audio\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \",\"\n })]\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#116329\",\n \"--shiki-dark\": \"#9CDCFE\"\n },\n children: \" \\\"name\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \": \"\n }), _jsx(_components.span, {\n style: {\n color: \"#0A3069\",\n \"--shiki-dark\": \"#CE9178\"\n },\n children: \"\\\"音频1\\\"\"\n })]\n }), \"\\n\", _jsx(_components.span, {\n className: \"line\",\n children: _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \" }\"\n })\n }), \"\\n\", _jsx(_components.span, {\n className: \"line\",\n children: _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \" ]\"\n })\n }), \"\\n\", _jsx(_components.span, {\n className: \"line\",\n children: _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \"}\"\n })\n }), \"\\n\"]\n })\n })\n }), \"\\n\", _jsx(_components.p, {\n children: \"Gọi Gemini Omni:\"\n }), \"\\n\", _jsxs(_components.ul, {\n children: [\"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.code, {\n children: \"gemini-omni\"\n }), \" cũng có thể được gọi thông qua giao diện tác vụ Seedance này.\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.code, {\n children: \"mode=t2v\"\n }), \" dùng cho tạo video từ văn bản, \", _jsx(_components.code, {\n children: \"mode=r2v\"\n }), \" dùng cho tạo bằng ảnh tham chiếu/tài nguyên tham chiếu, \", _jsx(_components.code, {\n children: \"mode=edit\"\n }), \" dùng cho chỉnh sửa video.\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [\"Văn bản có thể đặt trong mục \", _jsx(_components.code, {\n children: \"text\"\n }), \" của \", _jsx(_components.code, {\n children: \"prompt\"\n }), \" hoặc \", _jsx(_components.code, {\n children: \"content\"\n }), \"; hình ảnh có thể đặt trong \", _jsx(_components.code, {\n children: \"image_url / image_urls / reference_images / input_reference / content\"\n }), \"; video có thể đặt trong \", _jsx(_components.code, {\n children: \"video_urls / content\"\n }), \".\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [\"Trường thời lượng có thể dùng \", _jsx(_components.code, {\n children: \"duration\"\n }), \" hoặc \", _jsx(_components.code, {\n children: \"seconds\"\n }), \", hệ thống sẽ tự động khớp với các mức 4 / 6 / 8 / 10 giây.\"]\n }), \"\\n\"]\n }), \"\\n\", _jsx(_components.p, {\n children: \"MiniMax / Hailuo gọi:\"\n }), \"\\n\", _jsxs(_components.ul, {\n children: [\"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.code, {\n children: \"minimax-h3\"\n }), \" có thể được gọi thông qua API tác vụ này, hỗ trợ tạo video từ văn bản, tham chiếu ảnh và tham chiếu âm thanh; văn bản có thể đặt trong mục văn bản \", _jsx(_components.code, {\n children: \"prompt\"\n }), \" hoặc \", _jsx(_components.code, {\n children: \"content\"\n }), \", dữ liệu có thể đặt trong các trường như \", _jsx(_components.code, {\n children: \"content\"\n }), \", \", _jsx(_components.code, {\n children: \"image_urls\"\n }), \", \", _jsx(_components.code, {\n children: \"audio_urls\"\n }), \".\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.code, {\n children: \"hailuo-2.3\"\n }), \" có thể được gọi thông qua API tác vụ này, cần ảnh khung hình đầu tiên; khuyến nghị truyền mục \", _jsx(_components.code, {\n children: \"image_url\"\n }), \" của \", _jsx(_components.code, {\n children: \"role=first_frame\"\n }), \" trong \", _jsx(_components.code, {\n children: \"content\"\n }), \".\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.code, {\n children: \"minimax-h3\"\n }), \" thường dùng \", _jsx(_components.code, {\n children: \"duration=5~15\"\n }), \", \", _jsx(_components.code, {\n children: \"resolution=1440p\"\n }), \"; \", _jsx(_components.code, {\n children: \"hailuo-2.3\"\n }), \" thường dùng \", _jsx(_components.code, {\n children: \"duration=6\"\n }), \" hoặc \", _jsx(_components.code, {\n children: \"10\"\n }), \", \", _jsx(_components.code, {\n children: \"resolution=768p\"\n }), \".\"]\n }), \"\\n\"]\n }), \"\\n\", _jsx(_components.p, {\n children: \"Các trường cần lưu ý trong kết quả truy vấn:\"\n }), \"\\n\", _jsxs(_components.ul, {\n children: [\"\\n\", _jsx(_components.li, {\n children: _jsx(_components.code, {\n children: \"items[].status\"\n })\n }), \"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.code, {\n children: \"items[].content.video_url\"\n }), \" hoặc \", _jsx(_components.code, {\n children: \"items[].video_url\"\n })]\n }), \"\\n\", _jsx(_components.li, {\n children: _jsx(_components.code, {\n children: \"items[].error\"\n })\n }), \"\\n\", _jsx(_components.li, {\n children: _jsx(_components.code, {\n children: \"items[].progress\"\n })\n }), \"\\n\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"Error fields: \", _jsx(_components.code, {\n children: \"error.code\"\n }), \", \", _jsx(_components.code, {\n children: \"error.message\"\n }), \".\"]\n }), \"\\n\", _jsx(CodeBlock, {\n numberOfLines: \"6\",\n language: \"json\",\n children: _jsx(_components.pre, {\n className: \"shiki shiki-themes github-light-default dark-plus\",\n style: {\n backgroundColor: \"#ffffff\",\n \"--shiki-dark-bg\": \"#0B0C0E\",\n color: \"#1f2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n language: \"json\",\n children: _jsxs(_components.code, {\n language: \"json\",\n numberOfLines: \"6\",\n children: [_jsx(_components.span, {\n className: \"line\",\n children: _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \"{\"\n })\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#116329\",\n \"--shiki-dark\": \"#9CDCFE\"\n },\n children: \" \\\"error\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \": {\"\n })]\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#116329\",\n \"--shiki-dark\": \"#9CDCFE\"\n },\n children: \" \\\"code\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \": \"\n }), _jsx(_components.span, {\n style: {\n color: \"#0A3069\",\n \"--shiki-dark\": \"#CE9178\"\n },\n children: \"\\\"invalid_request_error\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \",\"\n })]\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#116329\",\n \"--shiki-dark\": \"#9CDCFE\"\n },\n children: \" \\\"message\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \": \"\n }), _jsx(_components.span, {\n style: {\n color: \"#0A3069\",\n \"--shiki-dark\": \"#CE9178\"\n },\n children: \"\\\"requires at least one image in `images`\\\"\"\n })]\n }), \"\\n\", _jsx(_components.span, {\n className: \"line\",\n children: _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \" }\"\n })\n }), \"\\n\", _jsx(_components.span, {\n className: \"line\",\n children: _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \"}\"\n })\n }), \"\\n\"]\n })\n })\n }), \"\\n\", _jsx(_components.h2, {\n children: \"Kling 4.0\"\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"Gọi Kling 4.0: \", _jsx(_components.code, {\n children: \"kling-4.0\"\n }), \" (720p) và \", _jsx(_components.code, {\n children: \"kling-4.0-1080p\"\n }), \" đều hỗ trợ định dạng Seedance \", _jsx(_components.code, {\n children: \"content/duration/resolution/ratio/mode\"\n }), \", \", _jsx(_components.code, {\n children: \"contents/settings/options\"\n }), \" và định dạng video OpenAI; hai điểm vào video hợp nhất có thể dùng lại cùng một request body. Độ phân giải phải khớp với tên mô hình. Kling 4.0 có thể trực tiếp sử dụng content/duration/resolution/ratio/mode ở định dạng Seedance, hoặc prompt/seconds/size/input_reference ở định dạng video OpenAI; cả hai đều không cần thêm contents/settings/options. Vỏ bọc contents/settings/options cũ chỉ nhằm mục đích tương thích. mode có các tùy chọn t2v (chỉ văn bản), i2v (một khung hình đầu), i2v_first_last (hai khung hình đầu và cuối), reference_images (ảnh tham chiếu thông thường), reference_material (tham chiếu ảnh hoặc video). Khi bỏ qua mode và không có công cụ được chỉ định rõ ràng, nếu có tài liệu tham chiếu thì mặc định là reference_material; nếu không có bất kỳ tài liệu tham chiếu nào thì mặc định là t2v. Chế độ tham chiếu sử dụng vai trò ảnh tham chiếu thông thường và không tự động chuyển các khung hình đầu/cuối được chỉ định rõ ràng thành ảnh tham chiếu; đối với khung hình đầu/cuối, hãy chọn rõ ràng i2v hoặc i2v_first_last và bỏ qua tham số tỷ lệ khung hình. Hiện chưa hỗ trợ âm thanh tham chiếu. settings.audio chỉ là tùy chọn trong chế độ đa năng của ảnh tham chiếu/tài liệu tham chiếu; với t2v, i2v và i2v_first_last, hãy bỏ qua công tắc âm thanh.\"]\n }), \"\\n\", _jsx(_components.h2, {\n children: \"Vidu Q4\"\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"Vidu Q4: \", _jsx(_components.code, {\n children: \"vidu-q4\"\n }), \" cố định ở 720p, \", _jsx(_components.code, {\n children: \"vidu-q4-540p\"\n }), \" cố định ở 540p, hỗ trợ tạo video dài 3~16 giây. Yêu cầu ít nhất 1 ảnh và hỗ trợ tối đa 15 ảnh tham chiếu; quá trình tạo từ tham chiếu có thể kèm tối đa 3 đoạn âm thanh MP3, mỗi đoạn dài 3~12 giây và tối đa 50MB. Không hỗ trợ chỉ tạo từ văn bản, chỉ định khung hình đầu/cuối hoặc video tham chiếu. Nhiều ảnh được dùng làm tham chiếu chung, không biểu thị vị trí đầu/cuối. Có thể tạo tác vụ qua \", _jsx(_components.code, {\n children: \"POST /v1/videos\"\n }), \", \", _jsx(_components.code, {\n children: \"POST /api/v3/contents/generations/tasks\"\n }), \", hoặc theo định dạng Vidu \", _jsx(_components.code, {\n children: \"POST /ent/v2/img2video\"\n }), \", \", _jsx(_components.code, {\n children: \"POST /ent/v2/reference2video\"\n }), \". Khuyến nghị dùng \", _jsx(_components.code, {\n children: \"mode=reference_images\"\n }), \" làm điểm vào hợp nhất; khi có âm thanh, dùng \", _jsx(_components.code, {\n children: \"mode=reference_material\"\n }), \". Có thể dùng \", _jsx(_components.code, {\n children: \"audio_urls\"\n }), \" cho âm thanh tham chiếu; ở định dạng Seedance, cũng có thể dùng mục \", _jsx(_components.code, {\n children: \"audio_url\"\n }), \" của \", _jsx(_components.code, {\n children: \"content\"\n }), \" tiêu chuẩn; trường boolean \", _jsx(_components.code, {\n children: \"audio\"\n }), \" biểu thị công tắc tạo âm thanh và được sử dụng riêng với danh sách URL âm thanh tham chiếu. Độ phân giải phải khớp với tên mô hình.\"]\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};\nfunction _missingMdxReference(id, component) {\n throw new Error(\"Expected \" + (component ? \"component\" : \"object\") + \" `\" + id + \"` to be defined: you likely forgot to import, pass, or provide it.\");\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":"Tạo video(Seedance)","openapi":"api-reference/vi/openapi.json POST /api/v3/contents/generations/tasks","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\nĐược dùng để tạo tác vụ tạo video và truy vấn trạng thái cũng như kết quả thông qua ID tác vụ.\n\nCác trường cốt lõi để tạo tác vụ:\n- `model`: Bắt buộc, tên mô hình.\n- `prompt`: Không bắt buộc; nếu không truyền, cần cung cấp mục văn bản không rỗng trong `content`.\n- `content`: tùy chọn, mảng content của Volcano Ark, trộn văn bản, hình ảnh, video và âm thanh.\n- `function_mode`: Tùy chọn, thường dùng cho các chế độ nâng cao như tham chiếu toàn năng.\n\nCác tham số đầu vào tương thích:\n\nCác trường sau chủ yếu dùng để tương thích với client cũ và giao thức cũ. Với tích hợp mới, vui lòng ưu tiên dùng định dạng chuẩn trong “Ví dụ yêu cầu” trên trang này: văn bản và tài liệu tham chiếu sử dụng mảng `content`, còn cấu hình sinh sử dụng các trường cấp cao nhất `duration`, `ratio`, `resolution`, `fps`, v.v.\n\n- `mode`:`t2v / i2v / i2v_first_last / reference_images / reference_material`\n- `image_url / image_urls / input_reference`\n- `end_image_url / last_image_url`\n- `video_urls / audio_urls`\n- `seconds / duration`\n- `aspect_ratio / ratio / size`\n- `quality / resolution`\n- `fps`\n- `generate_audio / watermark`\n\nChi tiết gọi API:\n- Khi là `mode=reference_material` hoặc `function_mode=omni_reference`, nên truyền văn bản và tài liệu tham chiếu thông qua `content`.\n- `content` mục văn bản được viết theo dạng `{ \"type\": \"text\", \"text\": \"测试文字\" }`.\n- `content` các mục tài nguyên hình ảnh, video, âm thanh lần lượt dùng cú pháp đối tượng `image_url`, `video_url`, `audio_url`, ví dụ `{ \"type\": \"image_url\", \"image_url\": { \"url\": \"https://example.com/ref.png\" }, \"role\": \"reference_image\", \"name\": \"1\" }`.\n- `role` có thể dùng để xác định mục đích của tài nguyên, `name` có thể được tham chiếu theo tên trong prompt.\n- `ratio`, `duration`, `resolution`, `fps` sẽ ảnh hưởng đến cấu hình tạo cuối cùng.\n\nSeedance 2.5 Ví dụ tham chiếu kết hợp hình ảnh, video và âm thanh (URL tài nguyên là phần giữ chỗ; khi gọi, vui lòng thay bằng liên kết thực tế có thể truy cập):\n\n```json\n{\n \"model\": \"sd-2-5\",\n \"ratio\": \"9:16\",\n \"fps\": 24,\n \"duration\": 10,\n \"content\": [\n {\n \"type\": \"text\",\n \"text\": \"使用 @图片1 @图片2 @图片3 @音频1 参考@视频1 生成视频\"\n },\n {\n \"type\": \"image_url\",\n \"image_url\": {\n \"url\": \"https://demo1.png\"\n },\n \"role\": \"reference_image\",\n \"name\": \"图片1\"\n },\n {\n \"type\": \"image_url\",\n \"image_url\": {\n \"url\": \"https://demo2.png\"\n },\n \"role\": \"reference_image\",\n \"name\": \"图片2\"\n },\n {\n \"type\": \"image_url\",\n \"image_url\": {\n \"url\": \"https://demo3.png\"\n },\n \"role\": \"reference_image\",\n \"name\": \"图片3\"\n },\n {\n \"type\": \"video_url\",\n \"video_url\": {\n \"url\": \"https://video.mp4\"\n },\n \"role\": \"reference_video\",\n \"name\": \"视频1\"\n },\n {\n \"type\": \"audio_url\",\n \"audio_url\": {\n \"url\": \"https://audio.mp3\"\n },\n \"role\": \"reference_audio\",\n \"name\": \"音频1\"\n }\n ]\n}\n```\n\nGọi Gemini Omni:\n- `gemini-omni` cũng có thể được gọi thông qua giao diện tác vụ Seedance này.\n- `mode=t2v` dùng cho tạo video từ văn bản, `mode=r2v` dùng cho tạo bằng ảnh tham chiếu/tài nguyên tham chiếu, `mode=edit` dùng cho chỉnh sửa video.\n- Văn bản có thể đặt trong mục `text` của `prompt` hoặc `content`; hình ảnh có thể đặt trong `image_url / image_urls / reference_images / input_reference / content`; video có thể đặt trong `video_urls / content`.\n- Trường thời lượng có thể dùng `duration` hoặc `seconds`, hệ thống sẽ tự động khớp với các mức 4 / 6 / 8 / 10 giây.\n\nMiniMax / Hailuo gọi:\n- `minimax-h3` có thể được gọi thông qua API tác vụ này, hỗ trợ tạo video từ văn bản, tham chiếu ảnh và tham chiếu âm thanh; văn bản có thể đặt trong mục văn bản `prompt` hoặc `content`, dữ liệu có thể đặt trong các trường như `content`, `image_urls`, `audio_urls`.\n- `hailuo-2.3` có thể được gọi thông qua API tác vụ này, cần ảnh khung hình đầu tiên; khuyến nghị truyền mục `image_url` của `role=first_frame` trong `content`.\n- `minimax-h3` thường dùng `duration=5~15`, `resolution=1440p`; `hailuo-2.3` thường dùng `duration=6` hoặc `10`, `resolution=768p`.\n\nCác trường cần lưu ý trong kết quả truy vấn:\n- `items[].status`\n- `items[].content.video_url` hoặc `items[].video_url`\n- `items[].error`\n- `items[].progress`\n\nError fields: `error.code`, `error.message`.\n\n```json\n{\n \"error\": {\n \"code\": \"invalid_request_error\",\n \"message\": \"requires at least one image in `images`\"\n }\n}\n```\n\n## Kling 4.0\n\nGọi Kling 4.0: `kling-4.0` (720p) và `kling-4.0-1080p` đều hỗ trợ định dạng Seedance `content/duration/resolution/ratio/mode`, `contents/settings/options` và định dạng video OpenAI; hai điểm vào video hợp nhất có thể dùng lại cùng một request body. Độ phân giải phải khớp với tên mô hình. Kling 4.0 có thể trực tiếp sử dụng content/duration/resolution/ratio/mode ở định dạng Seedance, hoặc prompt/seconds/size/input_reference ở định dạng video OpenAI; cả hai đều không cần thêm contents/settings/options. Vỏ bọc contents/settings/options cũ chỉ nhằm mục đích tương thích. mode có các tùy chọn t2v (chỉ văn bản), i2v (một khung hình đầu), i2v_first_last (hai khung hình đầu và cuối), reference_images (ảnh tham chiếu thông thường), reference_material (tham chiếu ảnh hoặc video). Khi bỏ qua mode và không có công cụ được chỉ định rõ ràng, nếu có tài liệu tham chiếu thì mặc định là reference_material; nếu không có bất kỳ tài liệu tham chiếu nào thì mặc định là t2v. Chế độ tham chiếu sử dụng vai trò ảnh tham chiếu thông thường và không tự động chuyển các khung hình đầu/cuối được chỉ định rõ ràng thành ảnh tham chiếu; đối với khung hình đầu/cuối, hãy chọn rõ ràng i2v hoặc i2v_first_last và bỏ qua tham số tỷ lệ khung hình. Hiện chưa hỗ trợ âm thanh tham chiếu. settings.audio chỉ là tùy chọn trong chế độ đa năng của ảnh tham chiếu/tài liệu tham chiếu; với t2v, i2v và i2v_first_last, hãy bỏ qua công tắc âm thanh.\n\n## Vidu Q4\n\nVidu Q4: `vidu-q4` cố định ở 720p, `vidu-q4-540p` cố định ở 540p, hỗ trợ tạo video dài 3~16 giây. Yêu cầu ít nhất 1 ảnh và hỗ trợ tối đa 15 ảnh tham chiếu; quá trình tạo từ tham chiếu có thể kèm tối đa 3 đoạn âm thanh MP3, mỗi đoạn dài 3~12 giây và tối đa 50MB. Không hỗ trợ chỉ tạo từ văn bản, chỉ định khung hình đầu/cuối hoặc video tham chiếu. Nhiều ảnh được dùng làm tham chiếu chung, không biểu thị vị trí đầu/cuối. Có thể tạo tác vụ qua `POST /v1/videos`, `POST /api/v3/contents/generations/tasks`, hoặc theo định dạng Vidu `POST /ent/v2/img2video`, `POST /ent/v2/reference2video`. Khuyến nghị dùng `mode=reference_images` làm điểm vào hợp nhất; khi có âm thanh, dùng `mode=reference_material`. Có thể dùng `audio_urls` cho âm thanh tham chiếu; ở định dạng Seedance, cũng có thể dùng mục `audio_url` của `content` tiêu chuẩn; trường boolean `audio` biểu thị công tắc tạo âm thanh và được sử dụng riêng với danh sách URL âm thanh tham chiếu. Độ phân giải phải khớp với tên mô hình.","href":"/api-reference/vi/tạo-video-seedance/tạo-video(seedance)"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"summary":"Tạo video(Seedance)","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\nĐược dùng để tạo tác vụ tạo video và truy vấn trạng thái cũng như kết quả thông qua ID tác vụ.\n\nCác trường cốt lõi để tạo tác vụ:\n- `model`: Bắt buộc, tên mô hình.\n- `prompt`: Không bắt buộc; nếu không truyền, cần cung cấp mục văn bản không rỗng trong `content`.\n- `content`: tùy chọn, mảng content của Volcano Ark, trộn văn bản, hình ảnh, video và âm thanh.\n- `function_mode`: Tùy chọn, thường dùng cho các chế độ nâng cao như tham chiếu toàn năng.\n\nCác tham số đầu vào tương thích:\n\nCác trường sau chủ yếu dùng để tương thích với client cũ và giao thức cũ. Với tích hợp mới, vui lòng ưu tiên dùng định dạng chuẩn trong “Ví dụ yêu cầu” trên trang này: văn bản và tài liệu tham chiếu sử dụng mảng `content`, còn cấu hình sinh sử dụng các trường cấp cao nhất `duration`, `ratio`, `resolution`, `fps`, v.v.\n\n- `mode`:`t2v / i2v / i2v_first_last / reference_images / reference_material`\n- `image_url / image_urls / input_reference`\n- `end_image_url / last_image_url`\n- `video_urls / audio_urls`\n- `seconds / duration`\n- `aspect_ratio / ratio / size`\n- `quality / resolution`\n- `fps`\n- `generate_audio / watermark`\n\nChi tiết gọi API:\n- Khi là `mode=reference_material` hoặc `function_mode=omni_reference`, nên truyền văn bản và tài liệu tham chiếu thông qua `content`.\n- `content` mục văn bản được viết theo dạng `{ \"type\": \"text\", \"text\": \"测试文字\" }`.\n- `content` các mục tài nguyên hình ảnh, video, âm thanh lần lượt dùng cú pháp đối tượng `image_url`, `video_url`, `audio_url`, ví dụ `{ \"type\": \"image_url\", \"image_url\": { \"url\": \"https://example.com/ref.png\" }, \"role\": \"reference_image\", \"name\": \"1\" }`.\n- `role` có thể dùng để xác định mục đích của tài nguyên, `name` có thể được tham chiếu theo tên trong prompt.\n- `ratio`, `duration`, `resolution`, `fps` sẽ ảnh hưởng đến cấu hình tạo cuối cùng.\n\nSeedance 2.5 Ví dụ tham chiếu kết hợp hình ảnh, video và âm thanh (URL tài nguyên là phần giữ chỗ; khi gọi, vui lòng thay bằng liên kết thực tế có thể truy cập):\n\n```json\n{\n \"model\": \"sd-2-5\",\n \"ratio\": \"9:16\",\n \"fps\": 24,\n \"duration\": 10,\n \"content\": [\n {\n \"type\": \"text\",\n \"text\": \"使用 @图片1 @图片2 @图片3 @音频1 参考@视频1 生成视频\"\n },\n {\n \"type\": \"image_url\",\n \"image_url\": {\n \"url\": \"https://demo1.png\"\n },\n \"role\": \"reference_image\",\n \"name\": \"图片1\"\n },\n {\n \"type\": \"image_url\",\n \"image_url\": {\n \"url\": \"https://demo2.png\"\n },\n \"role\": \"reference_image\",\n \"name\": \"图片2\"\n },\n {\n \"type\": \"image_url\",\n \"image_url\": {\n \"url\": \"https://demo3.png\"\n },\n \"role\": \"reference_image\",\n \"name\": \"图片3\"\n },\n {\n \"type\": \"video_url\",\n \"video_url\": {\n \"url\": \"https://video.mp4\"\n },\n \"role\": \"reference_video\",\n \"name\": \"视频1\"\n },\n {\n \"type\": \"audio_url\",\n \"audio_url\": {\n \"url\": \"https://audio.mp3\"\n },\n \"role\": \"reference_audio\",\n \"name\": \"音频1\"\n }\n ]\n}\n```\n\nGọi Gemini Omni:\n- `gemini-omni` cũng có thể được gọi thông qua giao diện tác vụ Seedance này.\n- `mode=t2v` dùng cho tạo video từ văn bản, `mode=r2v` dùng cho tạo bằng ảnh tham chiếu/tài nguyên tham chiếu, `mode=edit` dùng cho chỉnh sửa video.\n- Văn bản có thể đặt trong mục `text` của `prompt` hoặc `content`; hình ảnh có thể đặt trong `image_url / image_urls / reference_images / input_reference / content`; video có thể đặt trong `video_urls / content`.\n- Trường thời lượng có thể dùng `duration` hoặc `seconds`, hệ thống sẽ tự động khớp với các mức 4 / 6 / 8 / 10 giây.\n\nMiniMax / Hailuo gọi:\n- `minimax-h3` có thể được gọi thông qua API tác vụ này, hỗ trợ tạo video từ văn bản, tham chiếu ảnh và tham chiếu âm thanh; văn bản có thể đặt trong mục văn bản `prompt` hoặc `content`, dữ liệu có thể đặt trong các trường như `content`, `image_urls`, `audio_urls`.\n- `hailuo-2.3` có thể được gọi thông qua API tác vụ này, cần ảnh khung hình đầu tiên; khuyến nghị truyền mục `image_url` của `role=first_frame` trong `content`.\n- `minimax-h3` thường dùng `duration=5~15`, `resolution=1440p`; `hailuo-2.3` thường dùng `duration=6` hoặc `10`, `resolution=768p`.\n\nCác trường cần lưu ý trong kết quả truy vấn:\n- `items[].status`\n- `items[].content.video_url` hoặc `items[].video_url`\n- `items[].error`\n- `items[].progress`\n\nError fields: `error.code`, `error.message`.\n\n```json\n{\n \"error\": {\n \"code\": \"invalid_request_error\",\n \"message\": \"requires at least one image in `images`\"\n }\n}\n```\n\n## Kling 4.0\n\nGọi Kling 4.0: `kling-4.0` (720p) và `kling-4.0-1080p` đều hỗ trợ định dạng Seedance `content/duration/resolution/ratio/mode`, `contents/settings/options` và định dạng video OpenAI; hai điểm vào video hợp nhất có thể dùng lại cùng một request body. Độ phân giải phải khớp với tên mô hình. Kling 4.0 có thể trực tiếp sử dụng content/duration/resolution/ratio/mode ở định dạng Seedance, hoặc prompt/seconds/size/input_reference ở định dạng video OpenAI; cả hai đều không cần thêm contents/settings/options. Vỏ bọc contents/settings/options cũ chỉ nhằm mục đích tương thích. mode có các tùy chọn t2v (chỉ văn bản), i2v (một khung hình đầu), i2v_first_last (hai khung hình đầu và cuối), reference_images (ảnh tham chiếu thông thường), reference_material (tham chiếu ảnh hoặc video). Khi bỏ qua mode và không có công cụ được chỉ định rõ ràng, nếu có tài liệu tham chiếu thì mặc định là reference_material; nếu không có bất kỳ tài liệu tham chiếu nào thì mặc định là t2v. Chế độ tham chiếu sử dụng vai trò ảnh tham chiếu thông thường và không tự động chuyển các khung hình đầu/cuối được chỉ định rõ ràng thành ảnh tham chiếu; đối với khung hình đầu/cuối, hãy chọn rõ ràng i2v hoặc i2v_first_last và bỏ qua tham số tỷ lệ khung hình. Hiện chưa hỗ trợ âm thanh tham chiếu. settings.audio chỉ là tùy chọn trong chế độ đa năng của ảnh tham chiếu/tài liệu tham chiếu; với t2v, i2v và i2v_first_last, hãy bỏ qua công tắc âm thanh.\n\n## Vidu Q4\n\nVidu Q4: `vidu-q4` cố định ở 720p, `vidu-q4-540p` cố định ở 540p, hỗ trợ tạo video dài 3~16 giây. Yêu cầu ít nhất 1 ảnh và hỗ trợ tối đa 15 ảnh tham chiếu; quá trình tạo từ tham chiếu có thể kèm tối đa 3 đoạn âm thanh MP3, mỗi đoạn dài 3~12 giây và tối đa 50MB. Không hỗ trợ chỉ tạo từ văn bản, chỉ định khung hình đầu/cuối hoặc video tham chiếu. Nhiều ảnh được dùng làm tham chiếu chung, không biểu thị vị trí đầu/cuối. Có thể tạo tác vụ qua `POST /v1/videos`, `POST /api/v3/contents/generations/tasks`, hoặc theo định dạng Vidu `POST /ent/v2/img2video`, `POST /ent/v2/reference2video`. Khuyến nghị dùng `mode=reference_images` làm điểm vào hợp nhất; khi có âm thanh, dùng `mode=reference_material`. Có thể dùng `audio_urls` cho âm thanh tham chiếu; ở định dạng Seedance, cũng có thể dùng mục `audio_url` của `content` tiêu chuẩn; trường boolean `audio` biểu thị công tắc tạo âm thanh và được sử dụng riêng với danh sách URL âm thanh tham chiếu. Độ phân giải phải khớp với tên mô hình.","operationId":"create__seedance__task","tags":["Tạo video Seedance"],"requestBody":"3e4ddbc6-ca1b-4faa-a143-fea49e445cc2","responses":{"200":"d81db950-e41d-4d3f-93cc-19cb9a779fae"},"security":["37abadcb-86b1-4d0d-bdd1-d31f8cece359"],"x-mint":{"href":"/api-reference/vi/tạo-video-seedance/tạo-video(seedance)"},"method":"post","type":"path","servers":["b8fc9370-8e91-494a-904a-4f4afacfb1ab"],"path":"/api/v3/contents/generations/tasks","baseUrlOptions":["https://api.aiid.edu.kg"],"title":"Tạo video(Seedance)","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","required":["model"],"properties":{"model":{"type":"string","example":"doubao-seedance-2-0-260128","enum":["sd-2-5","doubao-seedance-1-0-lite-i2v-250428","doubao-seedance-1-0-lite-t2v-250428","doubao-seedance-1-0-pro-250528","doubao-seedance-1-0-pro-fast-251015","doubao-seedance-1-5-pro-251215","doubao-seedance-2-0-260128","doubao-seedance-2-0-fast-260128","minimax-h3","hailuo-2.3","gemini-omni","vidu-q4","vidu-q4-540p"],"description":"Bắt buộc. Tên mô hình. Có thể truyền Seedance mô hình bên ngoài, `gemini-omni`, `minimax-h3` hoặc `hailuo-2.3`.","isRequired":true,"uniqueKey":"oneOf.0.model","typeLabel":"enum\u003cstring>"},"prompt":{"type":"string","description":"Tùy chọn; nếu không truyền, trong content phải cung cấp mục text không rỗng làm mô tả để tạo video.","example":"参考素材生成一段剧情短视频","uniqueKey":"oneOf.0.prompt","typeLabel":"string"},"content":{"type":"array","description":"Tùy chọn. Mảng content của Volcano Ark, sắp xếp xen kẽ theo thứ tự giữa văn bản và các mục nội dung. Mục văn bản dùng `{ \"type\": \"text\", \"text\": \"...\" }`; các mục hình ảnh, video, âm thanh lần lượt dùng các đối tượng `image_url`, `video_url`, `audio_url` và đặt `url` bên trong, có thể kết hợp với `role` (như `reference_image`, `reference_video`, `reference_audio`) và `name` để văn bản tham chiếu.","items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","image_url","video_url","audio_url"],"description":"Loại mục nội dung.","isRequired":true,"uniqueKey":"oneOf.0.content.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"text":{"type":"string","description":"Nội dung văn bản, chỉ dùng khi type=text.","uniqueKey":"oneOf.0.content.items.[INDEX].text","typeLabel":"string"},"image_url":{"oneOf":[{"type":"string","description":"URL hình ảnh, khuyến nghị dùng dạng đối tượng: `{\"url\":\"https://...\"}`.","uniqueKey":"oneOf.0.content.items.[INDEX].image_url.oneOf.0","typeLabel":"string"},{"type":"object","description":"URL hình ảnh, khuyến nghị dùng dạng đối tượng: `{\"url\":\"https://...\"}`.","properties":{"url":{"type":"string","uniqueKey":"oneOf.0.content.items.[INDEX].image_url.oneOf.1.url","typeLabel":"string"}},"uniqueKey":"oneOf.0.content.items.[INDEX].image_url.oneOf.1","typeLabel":"object"}],"uniqueKey":"oneOf.0.content.items.[INDEX].image_url","typeLabel":"string | object"},"video_url":{"oneOf":[{"type":"string","description":"URL video, khuyến nghị dùng dạng object: `{\"url\":\"https://...\"}`.","uniqueKey":"oneOf.0.content.items.[INDEX].video_url.oneOf.0","typeLabel":"string"},{"type":"object","description":"URL video, khuyến nghị dùng dạng object: `{\"url\":\"https://...\"}`.","properties":{"url":{"type":"string","uniqueKey":"oneOf.0.content.items.[INDEX].video_url.oneOf.1.url","typeLabel":"string"}},"uniqueKey":"oneOf.0.content.items.[INDEX].video_url.oneOf.1","typeLabel":"object"}],"uniqueKey":"oneOf.0.content.items.[INDEX].video_url","typeLabel":"string | object"},"audio_url":{"oneOf":[{"type":"string","description":"URL âm thanh, khuyến nghị dùng dạng đối tượng: `{\"url\":\"https://...\"}`.","uniqueKey":"oneOf.0.content.items.[INDEX].audio_url.oneOf.0","typeLabel":"string"},{"type":"object","description":"URL âm thanh, khuyến nghị dùng dạng đối tượng: `{\"url\":\"https://...\"}`.","properties":{"url":{"type":"string","uniqueKey":"oneOf.0.content.items.[INDEX].audio_url.oneOf.1.url","typeLabel":"string"}},"uniqueKey":"oneOf.0.content.items.[INDEX].audio_url.oneOf.1","typeLabel":"object"}],"uniqueKey":"oneOf.0.content.items.[INDEX].audio_url","typeLabel":"string | object"},"role":{"type":"string","description":"Mã định danh mục đích sử dụng tài nguyên, các giá trị thường gặp như reference_image, reference_video, reference_audio.","uniqueKey":"oneOf.0.content.items.[INDEX].role","typeLabel":"string"},"name":{"type":"string","description":"Tên tài liệu, có thể được tham chiếu trong prompt văn bản hoặc dùng để phân biệt nhiều tài liệu.","uniqueKey":"oneOf.0.content.items.[INDEX].name","typeLabel":"string"}},"uniqueKey":"oneOf.0.content.items.[INDEX]","typeLabel":"object"},"uniqueKey":"oneOf.0.content","typeLabel":"object[]"},"function_mode":{"type":"string","description":"Tùy chọn. Chế độ tính năng nâng cao, chẳng hạn như `omni_reference` dùng để tham khảo toàn diện.","uniqueKey":"oneOf.0.function_mode","typeLabel":"string"},"mode":{"type":"string","description":"Tùy chọn. Các trường ở chế độ tương thích, như `t2v`, `i2v`, `i2v_first_last`, `reference_images`, `reference_material`; `gemini-omni` hỗ trợ `t2v`, `r2v`, `edit`.","uniqueKey":"oneOf.0.mode","typeLabel":"string"},"image_url":{"type":"string","description":"Tùy chọn. URL của một ảnh tham chiếu duy nhất.","uniqueKey":"oneOf.0.image_url","typeLabel":"string"},"image_urls":{"type":"array","items":{"type":"string","uniqueKey":"oneOf.0.image_urls.items.[INDEX]","typeLabel":"string"},"description":"Tùy chọn. Danh sách URL của nhiều ảnh tham chiếu.","uniqueKey":"oneOf.0.image_urls","typeLabel":"string[]"},"input_reference":{"type":"string","description":"Tùy chọn. Tương thích với các trường nhập liệu tham chiếu.","uniqueKey":"oneOf.0.input_reference","typeLabel":"string"},"end_image_url":{"type":"string","description":"Tùy chọn. URL hình ảnh tham chiếu cho khung hình cuối.","uniqueKey":"oneOf.0.end_image_url","typeLabel":"string"},"last_image_url":{"type":"string","description":"Tùy chọn. Alias URL của hình ảnh tham chiếu khung hình cuối.","uniqueKey":"oneOf.0.last_image_url","typeLabel":"string"},"video_urls":{"type":"array","items":{"type":"string","uniqueKey":"oneOf.0.video_urls.items.[INDEX]","typeLabel":"string"},"description":"Tùy chọn. Danh sách URL video tham chiếu.","uniqueKey":"oneOf.0.video_urls","typeLabel":"string[]"},"audio_urls":{"type":"array","items":{"type":"string","uniqueKey":"oneOf.0.audio_urls.items.[INDEX]","typeLabel":"string"},"description":"Tùy chọn. Danh sách URL âm thanh tham chiếu.","uniqueKey":"oneOf.0.audio_urls","typeLabel":"string[]"},"seconds":{"oneOf":[{"type":"number","description":"Tùy chọn. Thời lượng video, tính bằng giây; tương thích với `duration`.","uniqueKey":"oneOf.0.seconds.oneOf.0","typeLabel":"number"},{"type":"string","description":"Tùy chọn. Thời lượng video, tính bằng giây; tương thích với `duration`.","uniqueKey":"oneOf.0.seconds.oneOf.1","typeLabel":"string"}],"uniqueKey":"oneOf.0.seconds","typeLabel":"number | string"},"duration":{"oneOf":[{"type":"number","description":"Tùy chọn. Thời lượng video, tính bằng giây; tương thích với `seconds`.","uniqueKey":"oneOf.0.duration.oneOf.0","typeLabel":"number"},{"type":"string","description":"Tùy chọn. Thời lượng video, tính bằng giây; tương thích với `seconds`.","uniqueKey":"oneOf.0.duration.oneOf.1","typeLabel":"string"}],"uniqueKey":"oneOf.0.duration","typeLabel":"number | string"},"aspect_ratio":{"type":"string","description":"Tùy chọn. Tỷ lệ khung hình, ví dụ: `16:9`.","uniqueKey":"oneOf.0.aspect_ratio","typeLabel":"string"},"ratio":{"type":"string","description":"Tùy chọn. Biệt danh của tỷ lệ khung hình, ví dụ: `16:9`.","uniqueKey":"oneOf.0.ratio","typeLabel":"string"},"size":{"type":"string","description":"Tùy chọn. Trường tương thích với độ phân giải hoặc kích thước.","uniqueKey":"oneOf.0.size","typeLabel":"string"},"quality":{"type":"string","description":"Tùy chọn. Cấu hình chất lượng tạo.","uniqueKey":"oneOf.0.quality","typeLabel":"string"},"resolution":{"type":"string","description":"Tùy chọn. Độ phân giải đầu ra.","uniqueKey":"oneOf.0.resolution","typeLabel":"string"},"fps":{"type":"number","description":"Tùy chọn. Tốc độ khung hình.","uniqueKey":"oneOf.0.fps","typeLabel":"number"},"generate_audio":{"type":"boolean","description":"Tùy chọn. Có tạo âm thanh hay không.","uniqueKey":"oneOf.0.generate_audio","typeLabel":"boolean"},"watermark":{"type":"boolean","description":"Tùy chọn. Có thêm hình mờ (watermark) hay không.","uniqueKey":"oneOf.0.watermark","typeLabel":"boolean"}},"uniqueKey":"oneOf.0","typeLabel":"object"},{"type":"object","title":"Kling 4.0","required":["model"],"x-kling-4-request":true,"properties":{"model":{"type":"string","example":"kling-4.0","enum":["kling-4.0","kling-4.0-1080p"],"description":"Bắt buộc. Tên mô hình. Có thể truyền các mô hình công khai Seedance, Kling 4.0, `gemini-omni`, `minimax-h3` hoặc `hailuo-2.3`.","isRequired":true,"uniqueKey":"oneOf.1.model","typeLabel":"enum\u003cstring>"},"prompt":{"type":"string","description":"Không bắt buộc; các yêu cầu Seedance tiêu chuẩn có thể cung cấp văn bản trực tiếp trong mục text không rỗng của content hoặc sử dụng prompt cấp cao nhất. Kling 4.0 cũng áp dụng, không cần contents/settings/options.","example":"参考素材生成一段剧情短视频","uniqueKey":"oneOf.1.prompt","typeLabel":"string"},"content":{"type":"array","description":"Tùy chọn. Mảng content của Volcano Ark, sắp xếp xen kẽ theo thứ tự giữa văn bản và các mục nội dung. Mục văn bản dùng `{ \"type\": \"text\", \"text\": \"...\" }`; các mục hình ảnh, video, âm thanh lần lượt dùng các đối tượng `image_url`, `video_url`, `audio_url` và đặt `url` bên trong, có thể kết hợp với `role` (như `reference_image`, `reference_video`, `reference_audio`) và `name` để văn bản tham chiếu.","items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","image_url","video_url","audio_url"],"description":"Loại mục nội dung.","isRequired":true,"uniqueKey":"oneOf.1.content.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"text":{"type":"string","description":"Nội dung văn bản, chỉ dùng khi type=text.","uniqueKey":"oneOf.1.content.items.[INDEX].text","typeLabel":"string"},"image_url":{"oneOf":[{"type":"string","description":"URL hình ảnh, khuyến nghị dùng dạng đối tượng: `{\"url\":\"https://...\"}`.","uniqueKey":"oneOf.1.content.items.[INDEX].image_url.oneOf.0","typeLabel":"string"},{"type":"object","description":"URL hình ảnh, khuyến nghị dùng dạng đối tượng: `{\"url\":\"https://...\"}`.","properties":{"url":{"type":"string","uniqueKey":"oneOf.1.content.items.[INDEX].image_url.oneOf.1.url","typeLabel":"string"}},"uniqueKey":"oneOf.1.content.items.[INDEX].image_url.oneOf.1","typeLabel":"object"}],"uniqueKey":"oneOf.1.content.items.[INDEX].image_url","typeLabel":"string | object"},"video_url":{"oneOf":[{"type":"string","description":"URL video, khuyến nghị dùng dạng object: `{\"url\":\"https://...\"}`.","uniqueKey":"oneOf.1.content.items.[INDEX].video_url.oneOf.0","typeLabel":"string"},{"type":"object","description":"URL video, khuyến nghị dùng dạng object: `{\"url\":\"https://...\"}`.","properties":{"url":{"type":"string","uniqueKey":"oneOf.1.content.items.[INDEX].video_url.oneOf.1.url","typeLabel":"string"}},"uniqueKey":"oneOf.1.content.items.[INDEX].video_url.oneOf.1","typeLabel":"object"}],"uniqueKey":"oneOf.1.content.items.[INDEX].video_url","typeLabel":"string | object"},"audio_url":{"oneOf":[{"type":"string","description":"URL âm thanh, khuyến nghị dùng dạng đối tượng: `{\"url\":\"https://...\"}`.","uniqueKey":"oneOf.1.content.items.[INDEX].audio_url.oneOf.0","typeLabel":"string"},{"type":"object","description":"URL âm thanh, khuyến nghị dùng dạng đối tượng: `{\"url\":\"https://...\"}`.","properties":{"url":{"type":"string","uniqueKey":"oneOf.1.content.items.[INDEX].audio_url.oneOf.1.url","typeLabel":"string"}},"uniqueKey":"oneOf.1.content.items.[INDEX].audio_url.oneOf.1","typeLabel":"object"}],"uniqueKey":"oneOf.1.content.items.[INDEX].audio_url","typeLabel":"string | object"},"role":{"type":"string","description":"Mã định danh mục đích sử dụng tài nguyên, các giá trị thường gặp như reference_image, reference_video, reference_audio.","uniqueKey":"oneOf.1.content.items.[INDEX].role","typeLabel":"string"},"name":{"type":"string","description":"Tên tài liệu, có thể được tham chiếu trong prompt văn bản hoặc dùng để phân biệt nhiều tài liệu.","uniqueKey":"oneOf.1.content.items.[INDEX].name","typeLabel":"string"}},"uniqueKey":"oneOf.1.content.items.[INDEX]","typeLabel":"object"},"uniqueKey":"oneOf.1.content","typeLabel":"object[]"},"contents":{"type":"array","minItems":1,"description":"Mảng tương thích phong bì cũ của Kling 4.0; không cần cung cấp cho yêu cầu Seedance tiêu chuẩn; dùng trực tiếp content.","items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["prompt","reference_image","reference_video","first_frame","last_frame"],"isRequired":true,"uniqueKey":"oneOf.1.contents.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"text":{"type":"string","description":"Mô tả văn bản khi type=prompt.","uniqueKey":"oneOf.1.contents.items.[INDEX].text","typeLabel":"string"},"url":{"type":"string","format":"uri","description":"URL có thể truy cập của tài liệu tham khảo hoặc khung hình đầu/cuối.","uniqueKey":"oneOf.1.contents.items.[INDEX].url","typeLabel":"string\u003curi>"}},"uniqueKey":"oneOf.1.contents.items.[INDEX]","typeLabel":"object"},"uniqueKey":"oneOf.1.contents","typeLabel":"object[]"},"settings":{"type":"object","description":"Cài đặt tương thích envelope cũ; Seedance tiêu chuẩn sử dụng trực tiếp duration/resolution/ratio ở cấp cao nhất, không cần cung cấp.","properties":{"duration":{"type":"integer","minimum":4,"maximum":30,"example":4,"uniqueKey":"oneOf.1.settings.duration","typeLabel":"integer"},"resolution":{"type":"string","enum":["720p","1080p"],"uniqueKey":"oneOf.1.settings.resolution","typeLabel":"enum\u003cstring>"},"aspect_ratio":{"type":"string","enum":["21:9","16:9","9:16","1:1"],"uniqueKey":"oneOf.1.settings.aspect_ratio","typeLabel":"enum\u003cstring>"},"audio":{"oneOf":[{"type":"boolean","description":"Chỉ khả dụng ở chế độ đa năng reference_images/reference_material. Vui lòng bỏ qua t2v, i2v, i2v_first_last; không có nghĩa là hỗ trợ âm thanh tham chiếu.","uniqueKey":"oneOf.1.settings.audio.oneOf.0","typeLabel":"boolean"},{"type":"string","description":"Chỉ khả dụng ở chế độ đa năng reference_images/reference_material. Vui lòng bỏ qua t2v, i2v, i2v_first_last; không có nghĩa là hỗ trợ âm thanh tham chiếu.","enum":["native","on","off","none"],"uniqueKey":"oneOf.1.settings.audio.oneOf.1","typeLabel":"enum\u003cstring>"}],"uniqueKey":"oneOf.1.settings.audio","typeLabel":"boolean | enum\u003cstring>"}},"uniqueKey":"oneOf.1.settings","typeLabel":"object"},"options":{"type":"object","maxProperties":0,"description":"Trường tương thích dành cho phong bì cũ; không cần cung cấp cho yêu cầu Seedance tiêu chuẩn.","uniqueKey":"oneOf.1.options","typeLabel":"object"},"function_mode":{"type":"string","description":"Tùy chọn. Chế độ tính năng nâng cao, chẳng hạn như `omni_reference` dùng để tham khảo toàn diện.","uniqueKey":"oneOf.1.function_mode","typeLabel":"string"},"mode":{"type":"string","description":"Tùy chọn. Các trường ở chế độ tương thích, chẳng hạn như `t2v`, `i2v`, `i2v_first_last`, `reference_images`, `reference_material`; `gemini-omni` hỗ trợ `t2v`, `r2v`, `edit`. Kling 4.0 có thể dùng trực tiếp định dạng Seedance content/duration/resolution/ratio/mode, hoặc định dạng video OpenAI prompt/seconds/size/input_reference; cả hai đều không cần contents/settings/options bổ sung. Vỏ bọc contents/settings/options cũ chỉ được giữ lại để tương thích. mode có thể là t2v (chỉ văn bản), i2v (một khung hình đầu), i2v_first_last (hai khung hình đầu và cuối), reference_images (ảnh tham chiếu thông thường), hoặc reference_material (tham chiếu ảnh hoặc video). Khi bỏ qua mode và không có công cụ được chỉ định rõ ràng, nếu có tư liệu tham chiếu thì mặc định là reference_material; nếu không có bất kỳ tư liệu tham chiếu nào thì mặc định là t2v. Chế độ tham chiếu sử dụng vai trò ảnh tham chiếu thông thường, không âm thầm chuyển các khung hình đầu và cuối được chỉ định rõ ràng thành ảnh tham chiếu; đối với khung hình đầu và cuối, hãy chọn rõ ràng i2v hoặc i2v_first_last, đồng thời bỏ qua tham số tỷ lệ khung hình. Hiện không hỗ trợ âm thanh tham chiếu. settings.audio chỉ là tùy chọn trong chế độ toàn năng cho ảnh tham chiếu/tư liệu tham chiếu; với t2v, i2v và i2v_first_last, hãy bỏ qua công tắc âm thanh.","example":"reference_material","x-kling-modes":["t2v","i2v","i2v_first_last","reference_images","reference_material"],"uniqueKey":"oneOf.1.mode","typeLabel":"string"},"image_url":{"type":"string","description":"Tùy chọn. URL của một ảnh tham chiếu duy nhất.","uniqueKey":"oneOf.1.image_url","typeLabel":"string"},"image_urls":{"type":"array","items":{"type":"string","uniqueKey":"oneOf.1.image_urls.items.[INDEX]","typeLabel":"string"},"description":"Tùy chọn. Danh sách URL của nhiều ảnh tham chiếu.","uniqueKey":"oneOf.1.image_urls","typeLabel":"string[]"},"input_reference":{"type":"string","description":"Tùy chọn. Tương thích với các trường nhập liệu tham chiếu.","uniqueKey":"oneOf.1.input_reference","typeLabel":"string"},"end_image_url":{"type":"string","description":"Tùy chọn. URL hình ảnh tham chiếu cho khung hình cuối.","uniqueKey":"oneOf.1.end_image_url","typeLabel":"string"},"last_image_url":{"type":"string","description":"Tùy chọn. Alias URL của hình ảnh tham chiếu khung hình cuối.","uniqueKey":"oneOf.1.last_image_url","typeLabel":"string"},"video_urls":{"type":"array","items":{"type":"string","uniqueKey":"oneOf.1.video_urls.items.[INDEX]","typeLabel":"string"},"description":"Tùy chọn. Danh sách URL video tham chiếu.","uniqueKey":"oneOf.1.video_urls","typeLabel":"string[]"},"audio_urls":{"type":"array","items":{"type":"string","uniqueKey":"oneOf.1.audio_urls.items.[INDEX]","typeLabel":"string"},"description":"Tùy chọn. Danh sách URL âm thanh tham chiếu.","uniqueKey":"oneOf.1.audio_urls","typeLabel":"string[]"},"seconds":{"oneOf":[{"type":"number","description":"Tùy chọn. Thời lượng video, tính bằng giây; tương thích với `duration`.","uniqueKey":"oneOf.1.seconds.oneOf.0","typeLabel":"number"},{"type":"string","description":"Tùy chọn. Thời lượng video, tính bằng giây; tương thích với `duration`.","uniqueKey":"oneOf.1.seconds.oneOf.1","typeLabel":"string"}],"uniqueKey":"oneOf.1.seconds","typeLabel":"number | string"},"duration":{"oneOf":[{"type":"number","description":"Tùy chọn. Thời lượng video, tính bằng giây; tương thích với `seconds`.","uniqueKey":"oneOf.1.duration.oneOf.0","typeLabel":"number"},{"type":"string","description":"Tùy chọn. Thời lượng video, tính bằng giây; tương thích với `seconds`.","uniqueKey":"oneOf.1.duration.oneOf.1","typeLabel":"string"}],"uniqueKey":"oneOf.1.duration","typeLabel":"number | string"},"aspect_ratio":{"type":"string","description":"Tùy chọn. Tỷ lệ khung hình, ví dụ: `16:9`.","uniqueKey":"oneOf.1.aspect_ratio","typeLabel":"string"},"ratio":{"type":"string","description":"Tùy chọn. Biệt danh của tỷ lệ khung hình, ví dụ: `16:9`.","uniqueKey":"oneOf.1.ratio","typeLabel":"string"},"size":{"type":"string","description":"Tùy chọn. Trường tương thích với độ phân giải hoặc kích thước.","uniqueKey":"oneOf.1.size","typeLabel":"string"},"quality":{"type":"string","description":"Tùy chọn. Cấu hình chất lượng tạo.","uniqueKey":"oneOf.1.quality","typeLabel":"string"},"resolution":{"type":"string","description":"Tùy chọn. Độ phân giải đầu ra.","uniqueKey":"oneOf.1.resolution","typeLabel":"string"},"fps":{"type":"number","description":"Tùy chọn. Tốc độ khung hình.","uniqueKey":"oneOf.1.fps","typeLabel":"number"},"generate_audio":{"type":"boolean","description":"Tùy chọn. Có tạo âm thanh hay không.","uniqueKey":"oneOf.1.generate_audio","typeLabel":"boolean"},"watermark":{"type":"boolean","description":"Tùy chọn. Có thêm hình mờ (watermark) hay không.","uniqueKey":"oneOf.1.watermark","typeLabel":"boolean"}},"uniqueKey":"oneOf.1","typeLabel":"Kling 4.0 · object"}],"uniqueKey":"","typeLabel":"object | Kling 4.0 · object"},"examples":{"seedance_sd25_mixed_content":{"title":"seedance_sd25_mixed_content","value":{"model":"sd-2-5","ratio":"9:16","fps":24,"duration":10,"content":[{"type":"text","text":"使用 @图片1 @图片2 @图片3 @音频1 参考@视频1 生成视频"},{"type":"image_url","image_url":{"url":"https://demo1.png"},"role":"reference_image","name":"图片1"},{"type":"image_url","image_url":{"url":"https://demo2.png"},"role":"reference_image","name":"图片2"},{"type":"image_url","image_url":{"url":"https://demo3.png"},"role":"reference_image","name":"图片3"},{"type":"video_url","video_url":{"url":"https://video.mp4"},"role":"reference_video","name":"视频1"},{"type":"audio_url","audio_url":{"url":"https://audio.mp3"},"role":"reference_audio","name":"音频1"}]}},"seedance_tasks_reference_material":{"title":"seedance_tasks_reference_material","value":{"model":"doubao-seedance-1-0-lite-i2v-250428","mode":"reference_material","prompt":"测试文字","content":[{"type":"text","text":"测试文字"},{"type":"image_url","image_url":{"url":"https://imageproxy.zhongzhuan.chat/api/proxy/image/9979f1a754b3571d5e8bdcc397eedf53.png"},"role":"reference_image","name":"1"},{"type":"video_url","video_url":{"url":"https://imageproxy.zhongzhuan.chat/api/proxy/video/1979f1a754b3571d5e8bdcc397eedf53.mp4"},"role":"reference_video","name":"2"},{"type":"audio_url","audio_url":{"url":"https://imageproxy.zhongzhuan.chat/api/proxy/video/3979f1a754b3571d5e8bdcc397eedf53.mp3"},"role":"reference_audio","name":"3"}],"duration":5,"size":"1280x720"}},"minimax_h3_tasks_content":{"title":"minimax_h3_tasks_content","value":{"model":"minimax-h3","prompt":"A cinematic product video with smooth camera motion","content":[{"type":"text","text":"Use the product image as reference and match the rhythm of the audio."},{"type":"image_url","image_url":{"url":"https://example.com/product.jpg"},"role":"reference_image","name":"product"},{"type":"audio_url","audio_url":{"url":"https://example.com/music.mp3"},"role":"reference_audio","name":"music"}],"duration":8,"resolution":"1440p","ratio":"16:9","generate_audio":true}},"hailuo_2_3_tasks_first_frame":{"title":"hailuo_2_3_tasks_first_frame","value":{"model":"hailuo-2.3","prompt":"The camera slowly pushes in, natural motion and cinematic lighting.","content":[{"type":"text","text":"The camera slowly pushes in, natural motion and cinematic lighting."},{"type":"image_url","image_url":{"url":"https://example.com/first-frame.jpg"},"role":"first_frame","name":"first"}],"duration":10,"resolution":"768p","ratio":"16:9"}},"gemini_omni_seedance_t2v":{"title":"gemini_omni_seedance_t2v","value":{"model":"gemini-omni","mode":"t2v","prompt":"A cinematic product video with smooth camera motion","duration":8,"size":"1280x720"}},"gemini_omni_seedance_r2v":{"title":"gemini_omni_seedance_r2v","value":{"model":"gemini-omni","mode":"r2v","content":[{"type":"text","text":"Keep the product consistent and create a short ad video"},{"type":"image_url","image_url":{"url":"https://example.com/product.jpg"}}],"duration":8,"size":"1280x720"}},"gemini_omni_seedance_edit":{"title":"gemini_omni_seedance_edit","value":{"model":"gemini-omni","mode":"edit","content":[{"type":"text","text":"Change the outfit color while keeping the motion natural"},{"type":"video_url","video_url":{"url":"https://example.com/input.mp4"}},{"type":"image_url","image_url":{"url":"https://example.com/style.jpg"}}],"duration":8,"size":"1280x720"}},"kling_4_seedance_reference_material":{"title":"kling_4_seedance_reference_material","value":{"model":"kling-4.0","mode":"reference_material","duration":4,"resolution":"720p","content":[{"type":"text","text":"A cinematic product shot with natural motion"},{"type":"image_url","image_url":{"url":"https://example.com/product.jpg"},"role":"reference_image"}],"ratio":"16:9"}},"kling_4_seedance_t2v":{"title":"kling_4_seedance_t2v","value":{"model":"kling-4.0","mode":"t2v","duration":4,"resolution":"720p","content":[{"type":"text","text":"A cinematic product shot with natural motion"}],"ratio":"16:9"}},"kling_4_seedance_i2v":{"title":"kling_4_seedance_i2v","value":{"model":"kling-4.0","mode":"i2v","duration":4,"resolution":"720p","content":[{"type":"text","text":"A cinematic product shot with natural motion"},{"type":"image_url","image_url":{"url":"https://example.com/first-frame.jpg"},"role":"first_frame"}]}},"kling_4_seedance_i2v_first_last":{"title":"kling_4_seedance_i2v_first_last","value":{"model":"kling-4.0","mode":"i2v_first_last","duration":4,"resolution":"720p","content":[{"type":"text","text":"A cinematic product shot with natural motion"},{"type":"image_url","image_url":{"url":"https://example.com/first-frame.jpg"},"role":"first_frame"},{"type":"image_url","image_url":{"url":"https://example.com/last-frame.jpg"},"role":"last_frame"}]}},"kling_4_seedance_reference_images":{"title":"kling_4_seedance_reference_images","value":{"model":"kling-4.0","mode":"reference_images","duration":4,"resolution":"720p","content":[{"type":"text","text":"A cinematic product shot with natural motion"},{"type":"image_url","image_url":{"url":"https://example.com/product.jpg"},"role":"reference_image"}],"ratio":"16:9"}},"kling_4_seedance_reference_material_1080p":{"title":"kling_4_seedance_reference_material_1080p","value":{"model":"kling-4.0-1080p","mode":"reference_material","duration":4,"resolution":"1080p","content":[{"type":"text","text":"A cinematic product shot with natural motion"},{"type":"image_url","image_url":{"url":"https://example.com/product.jpg"},"role":"reference_image"}],"ratio":"16:9"}},"kling_4_seedance_t2v_1080p":{"title":"kling_4_seedance_t2v_1080p","value":{"model":"kling-4.0-1080p","mode":"t2v","duration":4,"resolution":"1080p","content":[{"type":"text","text":"A cinematic product shot with natural motion"}],"ratio":"16:9"}},"kling_4_seedance_i2v_1080p":{"title":"kling_4_seedance_i2v_1080p","value":{"model":"kling-4.0-1080p","mode":"i2v","duration":4,"resolution":"1080p","content":[{"type":"text","text":"A cinematic product shot with natural motion"},{"type":"image_url","image_url":{"url":"https://example.com/first-frame.jpg"},"role":"first_frame"}]}},"kling_4_seedance_i2v_first_last_1080p":{"title":"kling_4_seedance_i2v_first_last_1080p","value":{"model":"kling-4.0-1080p","mode":"i2v_first_last","duration":4,"resolution":"1080p","content":[{"type":"text","text":"A cinematic product shot with natural motion"},{"type":"image_url","image_url":{"url":"https://example.com/first-frame.jpg"},"role":"first_frame"},{"type":"image_url","image_url":{"url":"https://example.com/last-frame.jpg"},"role":"last_frame"}]}},"kling_4_seedance_reference_images_1080p":{"title":"kling_4_seedance_reference_images_1080p","value":{"model":"kling-4.0-1080p","mode":"reference_images","duration":4,"resolution":"1080p","content":[{"type":"text","text":"A cinematic product shot with natural motion"},{"type":"image_url","image_url":{"url":"https://example.com/product.jpg"},"role":"reference_image"}],"ratio":"16:9"}},"kling_4_ark_contents":{"title":"kling_4_ark_contents","value":{"model":"kling-4.0","mode":"reference_material","contents":[{"type":"prompt","text":"A cinematic product shot with natural motion"},{"type":"reference_image","url":"https://example.com/product.jpg"},{"type":"reference_video","url":"https://example.com/motion.mp4"}],"settings":{"duration":4,"resolution":"720p","aspect_ratio":"16:9"},"options":{}}},"kling_4_ark_contents_1080p":{"title":"kling_4_ark_contents_1080p","value":{"model":"kling-4.0-1080p","mode":"reference_material","contents":[{"type":"prompt","text":"A cinematic product shot with natural motion"},{"type":"reference_image","url":"https://example.com/product.jpg"},{"type":"reference_video","url":"https://example.com/motion.mp4"}],"settings":{"duration":4,"resolution":"1080p","aspect_ratio":"16:9"},"options":{}}},"vidu_q4_seedance_720p_reference":{"title":"vidu_q4_seedance_720p_reference","value":{"model":"vidu-q4","duration":3,"resolution":"720p","mode":"reference_material","content":[{"type":"text","text":"保持参考图中的主体与色彩,镜头缓慢推进,主体自然运动。"},{"type":"image_url","image_url":{"url":"https://example.com/reference-1.jpg"},"role":"reference_image"},{"type":"image_url","image_url":{"url":"https://example.com/reference-2.jpg"},"role":"reference_image"},{"type":"audio_url","audio_url":{"url":"https://example.com/reference-1.mp3"},"role":"reference_audio"},{"type":"audio_url","audio_url":{"url":"https://example.com/reference-2.mp3"},"role":"reference_audio"}]}},"vidu_q4_seedance_540p_reference":{"title":"vidu_q4_seedance_540p_reference","value":{"model":"vidu-q4-540p","duration":3,"resolution":"540p","mode":"reference_material","content":[{"type":"text","text":"保持参考图中的主体与色彩,镜头缓慢推进,主体自然运动。"},{"type":"image_url","image_url":{"url":"https://example.com/reference-1.jpg"},"role":"reference_image"},{"type":"image_url","image_url":{"url":"https://example.com/reference-2.jpg"},"role":"reference_image"},{"type":"audio_url","audio_url":{"url":"https://example.com/reference-1.mp3"},"role":"reference_audio"},{"type":"audio_url","audio_url":{"url":"https://example.com/reference-2.mp3"},"role":"reference_audio"}]}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"d81db950-e41d-4d3f-93cc-19cb9a779fae":{"description":"Tạo nhiệm vụ thành công","content":{"application/json":{"schema":{"type":"object","required":["id"],"properties":{"id":{"type":"string","example":"task_xxx","description":"ID của tác vụ.","isRequired":true,"uniqueKey":"id","typeLabel":"string"},"status":{"type":"string","description":"Trạng thái nhiệm vụ.","enum":["queued","running","succeeded","failed"],"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"created_at":{"type":"string","description":"Thời gian tạo (giây Unix).","uniqueKey":"created_at","typeLabel":"string"},"items":{"type":"string","items":{"type":"object","properties":{"id":{"type":"string","description":"ID của tác vụ."},"status":{"type":"string","description":"Trạng thái tác vụ, thường là `queued`, `running`, `succeeded`, `failed`."},"content":{"type":"object","properties":{"video_url":{"type":"string","description":"Địa chỉ kết quả video."}}},"video_url":{"type":"string","description":"Địa chỉ kết quả video."},"error":{"type":"string","description":"Thông báo lỗi khi thất bại."},"progress":{"type":"string","description":"Tiến độ tác vụ."}}},"uniqueKey":"\\items","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"id":"task_xxx","status":"queued","created_at":"\u003cstring>","items":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"37abadcb-86b1-4d0d-bdd1-d31f8cece359":{"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":"Tạo video(Seedance) - 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/tạo-video-seedance/tạo-video(seedance)","matchLevel":0}}},"lastModified":"2026-10-24T16:04:50.427Z","originalFileLocation":"api-reference/vi/tạo-video-seedance/tạo-video(seedance).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). Được dùng để tạo tác vụ tạo video và truy vấn trạng thái cũng như kết quả thông qua ID tác vụ. Các trường cốt lõi để tạo tác vụ: - model: Bắt buộc, tên mô hình. - prompt: Không bắt buộc; nếu không truyền, cần cung cấp mục văn bản không rỗng trong content. - content: tùy chọn, mảng content của Volcano Ark, trộn văn bản, hình ảnh, video và âm thanh. - function_mode: Tùy chọn, thường dùng cho các chế độ nâng cao như tham chiếu toàn năng. Các tham số đầu vào tương thích: Các trường sau chủ yếu dùng để tương thích với client cũ và giao thức cũ. Với tích hợp mới, vui lòng ưu tiên dùng định dạng chuẩn trong “Ví dụ yêu cầu” trên trang này: văn bản và tài liệu tham chiếu sử dụng mảng content, còn cấu hình sinh sử dụng các trường cấp cao nhất duration, ratio, resolution, fps, v.v. - mode:t2v / i2v / i2v_first_last / reference_images / reference_material - image_url / image_urls / input_reference - end_image_url / last_image_url - video_urls / audio_urls - seconds / duration - aspect_ratio / ratio / size - quality / resolution - fps - generate_audio / watermark Chi tiết gọi API: - Khi là mode=reference_material hoặc function_mode=omni_reference, nên truyền văn bản và tài liệu tham chiếu thông qua content. - content mục văn bản được viết theo dạng { \u0026quot;type\u0026quot;: \u0026quot;text\u0026quot;, \u0026quot;text\u0026quot;: \u0026quot;测试文字\u0026quot; }. - content các mục tài nguyên hình ảnh, video, âm thanh lần lượt dùng cú pháp đối tượng image_url, video_url, audio_url, ví dụ { \u0026quot;type\u0026quot;: \u0026quot;image_url\u0026quot;, \u0026quot;image_url\u0026quot;: { \u0026quot;url\u0026quot;: \u0026quot;https://example.com/ref.png\u0026quot; }, \u0026quot;role\u0026quot;: \u0026quot;reference_image\u0026quot;, \u0026quot;name\u0026quot;: \u0026quot;1\u0026quot; }. - role có thể dùng để xác định mục đích của tài nguyên, name có thể được tham chiếu theo tên trong prompt. - ratio, duration, resolution, fps sẽ ảnh hưởng đến cấu hình tạo cuối cùng. Seedance 2.5 Ví dụ tham chiếu kết hợp hình ảnh, video và âm thanh (URL tài nguyên là phần giữ chỗ; khi gọi, vui lòng thay bằng liên kết thực tế có thể truy cập): json { \u0026quot;model\u0026quot;: \u0026quot;sd-2-5\u0026quot;, \u0026quot;ratio\u0026quot;: \u0026quot;9:16\u0026quot;, \u0026quot;fps\u0026quot;: 24, \u0026quot;duration\u0026quot;: 10, \u0026quot;content\u0026quot;: [ { \u0026quot;type\u0026quot;: \u0026quot;text\u0026quot;, \u0026quot;text\u0026quot;: \u0026quot;使用 @图片1 @图片2 @图片3 @音频1 参考@视频1 生成视频\u0026quot; }, { \u0026quot;type\u0026quot;: \u0026quot;image_url\u0026quot;, \u0026quot;image_url\u0026quot;: { \u0026quot;url\u0026quot;: \u0026quot;https://demo1.png\u0026quot; }, \u0026quot;role\u0026quot;: \u0026quot;reference_image\u0026quot;, \u0026quot;name\u0026quot;: \u0026quot;图片1\u0026quot; }, { \u0026quot;type\u0026quot;: \u0026quot;image_url\u0026quot;, \u0026quot;image_url\u0026quot;: { \u0026quot;url\u0026quot;: \u0026quot;https://demo2.png\u0026quot; }, \u0026quot;role\u0026quot;: \u0026quot;reference_image\u0026quot;, \u0026quot;name\u0026quot;: \u0026quot;图片2\u0026quot; }, { \u0026quot;type\u0026quot;: \u0026quot;image_url\u0026quot;, \u0026quot;image_url\u0026quot;: { \u0026quot;url\u0026quot;: \u0026quot;https://demo3.png\u0026quot; }, \u0026quot;role\u0026quot;: \u0026quot;reference_image\u0026quot;, \u0026quot;name\u0026quot;: \u0026quot;图片3\u0026quot; }, { \u0026quot;type\u0026quot;: \u0026quot;video_url\u0026quot;, \u0026quot;video_url\u0026quot;: { \u0026quot;url\u0026quot;: \u0026quot;https://video.mp4\u0026quot; }, \u0026quot;role\u0026quot;: \u0026quot;reference_video\u0026quot;, \u0026quot;name\u0026quot;: \u0026quot;视频1\u0026quot; }, { \u0026quot;type\u0026quot;: \u0026quot;audio_url\u0026quot;, \u0026quot;audio_url\u0026quot;: { \u0026quot;url\u0026quot;: \u0026quot;https://audio.mp3\u0026quot; }, \u0026quot;role\u0026quot;: \u0026quot;reference_audio\u0026quot;, \u0026quot;name\u0026quot;: \u0026quot;音频1\u0026quot; } ] } Gọi Gemini Omni: - gemini-omni cũng có thể được gọi thông qua giao diện tác vụ Seedance này. - mode=t2v dùng cho tạo video từ văn bản, mode=r2v dùng cho tạo bằng ảnh tham chiếu/tài nguyên tham chiếu, mode=edit dùng cho chỉnh sửa video. - Văn bản có thể đặt trong mục text của prompt hoặc content; hình ảnh có thể đặt trong image_url / image_urls / reference_images / input_reference / content; video có thể đặt trong video_urls / content. - Trường thời lượng có thể dùng duration hoặc seconds, hệ thống sẽ tự động khớp với các mức 4 / 6 / 8 / 10 giây. MiniMax / Hailuo gọi: - minimax-h3 có thể được gọi thông qua API tác vụ này, hỗ trợ tạo video từ văn bản, tham chiếu ảnh và tham chiếu âm thanh; văn bản có thể đặt trong mục văn bản prompt hoặc content, dữ liệu có thể đặt trong các trường như content, image_urls, audio_urls. - hailuo-2.3 có thể được gọi thông qua API tác vụ này, cần ảnh khung hình đầu tiên; khuyến nghị truyền mục image_url của role=first_frame trong content. - minimax-h3 thường dùng duration=5~15, resolution=1440p; hailuo-2.3 thường dùng duration=6 hoặc 10, resolution=768p. Các trường cần lưu ý trong kết quả truy vấn: - items[].status - items[].content.video_url hoặc items[].video_url - items[].error - items[].progress Error fields: error.code, error.message. ``json { \u0026quot;error\u0026quot;: { \u0026quot;code\u0026quot;: \u0026quot;invalid_request_error\u0026quot;, \u0026quot;message\u0026quot;: \u0026quot;requires at least one image in images\u0026quot; } } ` ## Kling 4.0 Gọi Kling 4.0: kling-4.0 (720p) và kling-4.0-1080p đều hỗ trợ định dạng Seedance content/duration/resolution/ratio/mode, contents/settings/options và định dạng video OpenAI; hai điểm vào video hợp nhất có thể dùng lại cùng một request body. Độ phân giải phải khớp với tên mô hình. Kling 4.0 có thể trực tiếp sử dụng content/duration/resolution/ratio/mode ở định dạng Seedance, hoặc prompt/seconds/size/input_reference ở định dạng video OpenAI; cả hai đều không cần thêm contents/settings/options. Vỏ bọc contents/settings/options cũ chỉ nhằm mục đích tương thích. mode có các tùy chọn t2v (chỉ văn bản), i2v (một khung hình đầu), i2v_first_last (hai khung hình đầu và cuối), reference_images (ảnh tham chiếu thông thường), reference_material (tham chiếu ảnh hoặc video). Khi bỏ qua mode và không có công cụ được chỉ định rõ ràng, nếu có tài liệu tham chiếu thì mặc định là reference_material; nếu không có bất kỳ tài liệu tham chiếu nào thì mặc định là t2v. Chế độ tham chiếu sử dụng vai trò ảnh tham chiếu thông thường và không tự động chuyển các khung hình đầu/cuối được chỉ định rõ ràng thành ảnh tham chiếu; đối với khung hình đầu/cuối, hãy chọn rõ ràng i2v hoặc i2v_first_last và bỏ qua tham số tỷ lệ khung hình. Hiện chưa hỗ trợ âm thanh tham chiếu. settings.audio chỉ là tùy chọn trong chế độ đa năng của ảnh tham chiếu/tài liệu tham chiếu; với t2v, i2v và i2v_first_last, hãy bỏ qua công tắc âm thanh. ## Vidu Q4 Vidu Q4: vidu-q4 cố định ở 720p, vidu-q4-540p cố định ở 540p, hỗ trợ tạo video dài 3~16 giây. Yêu cầu ít nhất 1 ảnh và hỗ trợ tối đa 15 ảnh tham chiếu; quá trình tạo từ tham chiếu có thể kèm tối đa 3 đoạn âm thanh MP3, mỗi đoạn dài 3~12 giây và tối đa 50MB. Không hỗ trợ chỉ tạo từ văn bản, chỉ định khung hình đầu/cuối hoặc video tham chiếu. Nhiều ảnh được dùng làm tham chiếu chung, không biểu thị vị trí đầu/cuối. Có thể tạo tác vụ qua POST /v1/videos, POST /api/v3/contents/generations/tasks, hoặc theo định dạng Vidu POST /ent/v2/img2video, POST /ent/v2/reference2video. Khuyến nghị dùng mode=reference_images làm điểm vào hợp nhất; khi có âm thanh, dùng mode=reference_material. Có thể dùng audio_urls cho âm thanh tham chiếu; ở định dạng Seedance, cũng có thể dùng mục audio_url của content tiêu chuẩn; trường boolean audio` biểu thị công tắc tạo âm thanh và được sử dụng riêng với danh sách URL âm thanh tham chiếu. Độ phân giải phải khớp với tên mô hình.\">\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=\"Tạo video(Seedance) - 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). Được dùng để tạo tác vụ tạo video và truy vấn trạng thái cũng như kết quả thông qua ID tác vụ. Các trường cốt lõi để tạo tác vụ: - model: Bắt buộc, tên mô hình. - prompt: Không bắt buộc; nếu không truyền, cần cung cấp mục văn bản không rỗng trong content. - content: tùy chọn, mảng content của Volcano Ark, trộn văn bản, hình ảnh, video và âm thanh. - function_mode: Tùy chọn, thường dùng cho các chế độ nâng cao như tham chiếu toàn năng. Các tham số đầu vào tương thích: Các trường sau chủ yếu dùng để tương thích với client cũ và giao thức cũ. Với tích hợp mới, vui lòng ưu tiên dùng định dạng chuẩn trong “Ví dụ yêu cầu” trên trang này: văn bản và tài liệu tham chiếu sử dụng mảng content, còn cấu hình sinh sử dụng các trường cấp cao nhất duration, ratio, resolution, fps, v.v. - mode:t2v / i2v / i2v_first_last / reference_images / reference_material - image_url / image_urls / input_reference - end_image_url / last_image_url - video_urls / audio_urls - seconds / duration - aspect_ratio / ratio / size - quality / resolution - fps - generate_audio / watermark Chi tiết gọi API: - Khi là mode=reference_material hoặc function_mode=omni_reference, nên truyền văn bản và tài liệu tham chiếu thông qua content. - content mục văn bản được viết theo dạng { \u0026quot;type\u0026quot;: \u0026quot;text\u0026quot;, \u0026quot;text\u0026quot;: \u0026quot;测试文字\u0026quot; }. - content các mục tài nguyên hình ảnh, video, âm thanh lần lượt dùng cú pháp đối tượng image_url, video_url, audio_url, ví dụ { \u0026quot;type\u0026quot;: \u0026quot;image_url\u0026quot;, \u0026quot;image_url\u0026quot;: { \u0026quot;url\u0026quot;: \u0026quot;https://example.com/ref.png\u0026quot; }, \u0026quot;role\u0026quot;: \u0026quot;reference_image\u0026quot;, \u0026quot;name\u0026quot;: \u0026quot;1\u0026quot; }. - role có thể dùng để xác định mục đích của tài nguyên, name có thể được tham chiếu theo tên trong prompt. - ratio, duration, resolution, fps sẽ ảnh hưởng đến cấu hình tạo cuối cùng. Seedance 2.5 Ví dụ tham chiếu kết hợp hình ảnh, video và âm thanh (URL tài nguyên là phần giữ chỗ; khi gọi, vui lòng thay bằng liên kết thực tế có thể truy cập): json { \u0026quot;model\u0026quot;: \u0026quot;sd-2-5\u0026quot;, \u0026quot;ratio\u0026quot;: \u0026quot;9:16\u0026quot;, \u0026quot;fps\u0026quot;: 24, \u0026quot;duration\u0026quot;: 10, \u0026quot;content\u0026quot;: [ { \u0026quot;type\u0026quot;: \u0026quot;text\u0026quot;, \u0026quot;text\u0026quot;: \u0026quot;使用 @图片1 @图片2 @图片3 @音频1 参考@视频1 生成视频\u0026quot; }, { \u0026quot;type\u0026quot;: \u0026quot;image_url\u0026quot;, \u0026quot;image_url\u0026quot;: { \u0026quot;url\u0026quot;: \u0026quot;https://demo1.png\u0026quot; }, \u0026quot;role\u0026quot;: \u0026quot;reference_image\u0026quot;, \u0026quot;name\u0026quot;: \u0026quot;图片1\u0026quot; }, { \u0026quot;type\u0026quot;: \u0026quot;image_url\u0026quot;, \u0026quot;image_url\u0026quot;: { \u0026quot;url\u0026quot;: \u0026quot;https://demo2.png\u0026quot; }, \u0026quot;role\u0026quot;: \u0026quot;reference_image\u0026quot;, \u0026quot;name\u0026quot;: \u0026quot;图片2\u0026quot; }, { \u0026quot;type\u0026quot;: \u0026quot;image_url\u0026quot;, \u0026quot;image_url\u0026quot;: { \u0026quot;url\u0026quot;: \u0026quot;https://demo3.png\u0026quot; }, \u0026quot;role\u0026quot;: \u0026quot;reference_image\u0026quot;, \u0026quot;name\u0026quot;: \u0026quot;图片3\u0026quot; }, { \u0026quot;type\u0026quot;: \u0026quot;video_url\u0026quot;, \u0026quot;video_url\u0026quot;: { \u0026quot;url\u0026quot;: \u0026quot;https://video.mp4\u0026quot; }, \u0026quot;role\u0026quot;: \u0026quot;reference_video\u0026quot;, \u0026quot;name\u0026quot;: \u0026quot;视频1\u0026quot; }, { \u0026quot;type\u0026quot;: \u0026quot;audio_url\u0026quot;, \u0026quot;audio_url\u0026quot;: { \u0026quot;url\u0026quot;: \u0026quot;https://audio.mp3\u0026quot; }, \u0026quot;role\u0026quot;: \u0026quot;reference_audio\u0026quot;, \u0026quot;name\u0026quot;: \u0026quot;音频1\u0026quot; } ] } Gọi Gemini Omni: - gemini-omni cũng có thể được gọi thông qua giao diện tác vụ Seedance này. - mode=t2v dùng cho tạo video từ văn bản, mode=r2v dùng cho tạo bằng ảnh tham chiếu/tài nguyên tham chiếu, mode=edit dùng cho chỉnh sửa video. - Văn bản có thể đặt trong mục text của prompt hoặc content; hình ảnh có thể đặt trong image_url / image_urls / reference_images / input_reference / content; video có thể đặt trong video_urls / content. - Trường thời lượng có thể dùng duration hoặc seconds, hệ thống sẽ tự động khớp với các mức 4 / 6 / 8 / 10 giây. MiniMax / Hailuo gọi: - minimax-h3 có thể được gọi thông qua API tác vụ này, hỗ trợ tạo video từ văn bản, tham chiếu ảnh và tham chiếu âm thanh; văn bản có thể đặt trong mục văn bản prompt hoặc content, dữ liệu có thể đặt trong các trường như content, image_urls, audio_urls. - hailuo-2.3 có thể được gọi thông qua API tác vụ này, cần ảnh khung hình đầu tiên; khuyến nghị truyền mục image_url của role=first_frame trong content. - minimax-h3 thường dùng duration=5~15, resolution=1440p; hailuo-2.3 thường dùng duration=6 hoặc 10, resolution=768p. Các trường cần lưu ý trong kết quả truy vấn: - items[].status - items[].content.video_url hoặc items[].video_url - items[].error - items[].progress Error fields: error.code, error.message. ``json { \u0026quot;error\u0026quot;: { \u0026quot;code\u0026quot;: \u0026quot;invalid_request_error\u0026quot;, \u0026quot;message\u0026quot;: \u0026quot;requires at least one image in images\u0026quot; } } ` ## Kling 4.0 Gọi Kling 4.0: kling-4.0 (720p) và kling-4.0-1080p đều hỗ trợ định dạng Seedance content/duration/resolution/ratio/mode, contents/settings/options và định dạng video OpenAI; hai điểm vào video hợp nhất có thể dùng lại cùng một request body. Độ phân giải phải khớp với tên mô hình. Kling 4.0 có thể trực tiếp sử dụng content/duration/resolution/ratio/mode ở định dạng Seedance, hoặc prompt/seconds/size/input_reference ở định dạng video OpenAI; cả hai đều không cần thêm contents/settings/options. Vỏ bọc contents/settings/options cũ chỉ nhằm mục đích tương thích. mode có các tùy chọn t2v (chỉ văn bản), i2v (một khung hình đầu), i2v_first_last (hai khung hình đầu và cuối), reference_images (ảnh tham chiếu thông thường), reference_material (tham chiếu ảnh hoặc video). Khi bỏ qua mode và không có công cụ được chỉ định rõ ràng, nếu có tài liệu tham chiếu thì mặc định là reference_material; nếu không có bất kỳ tài liệu tham chiếu nào thì mặc định là t2v. Chế độ tham chiếu sử dụng vai trò ảnh tham chiếu thông thường và không tự động chuyển các khung hình đầu/cuối được chỉ định rõ ràng thành ảnh tham chiếu; đối với khung hình đầu/cuối, hãy chọn rõ ràng i2v hoặc i2v_first_last và bỏ qua tham số tỷ lệ khung hình. Hiện chưa hỗ trợ âm thanh tham chiếu. settings.audio chỉ là tùy chọn trong chế độ đa năng của ảnh tham chiếu/tài liệu tham chiếu; với t2v, i2v và i2v_first_last, hãy bỏ qua công tắc âm thanh. ## Vidu Q4 Vidu Q4: vidu-q4 cố định ở 720p, vidu-q4-540p cố định ở 540p, hỗ trợ tạo video dài 3~16 giây. Yêu cầu ít nhất 1 ảnh và hỗ trợ tối đa 15 ảnh tham chiếu; quá trình tạo từ tham chiếu có thể kèm tối đa 3 đoạn âm thanh MP3, mỗi đoạn dài 3~12 giây và tối đa 50MB. Không hỗ trợ chỉ tạo từ văn bản, chỉ định khung hình đầu/cuối hoặc video tham chiếu. Nhiều ảnh được dùng làm tham chiếu chung, không biểu thị vị trí đầu/cuối. Có thể tạo tác vụ qua POST /v1/videos, POST /api/v3/contents/generations/tasks, hoặc theo định dạng Vidu POST /ent/v2/img2video, POST /ent/v2/reference2video. Khuyến nghị dùng mode=reference_images làm điểm vào hợp nhất; khi có âm thanh, dùng mode=reference_material. Có thể dùng audio_urls cho âm thanh tham chiếu; ở định dạng Seedance, cũng có thể dùng mục audio_url của content tiêu chuẩn; trường boolean audio` biểu thị công tắc tạo âm thanh và được sử dụng riêng với danh sách URL âm thanh tham chiếu. Độ phân giải phải khớp với tên mô hình.\">\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/tạo-video-seedance/tạo-video(seedance)\">\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=T%E1%BA%A1o+video+Seedance\u0026amp;title=T%E1%BA%A1o+video%EF%BC%88Seedance%EF%BC%89\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=5bcff84cf771c06c2878950ae5aee0184ad23bfcba272c5fde23ba57b867394a\">\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=\"Tạo video(Seedance) - 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). Được dùng để tạo tác vụ tạo video và truy vấn trạng thái cũng như kết quả thông qua ID tác vụ. Các trường cốt lõi để tạo tác vụ: - model: Bắt buộc, tên mô hình. - prompt: Không bắt buộc; nếu không truyền, cần cung cấp mục văn bản không rỗng trong content. - content: tùy chọn, mảng content của Volcano Ark, trộn văn bản, hình ảnh, video và âm thanh. - function_mode: Tùy chọn, thường dùng cho các chế độ nâng cao như tham chiếu toàn năng. Các tham số đầu vào tương thích: Các trường sau chủ yếu dùng để tương thích với client cũ và giao thức cũ. Với tích hợp mới, vui lòng ưu tiên dùng định dạng chuẩn trong “Ví dụ yêu cầu” trên trang này: văn bản và tài liệu tham chiếu sử dụng mảng content, còn cấu hình sinh sử dụng các trường cấp cao nhất duration, ratio, resolution, fps, v.v. - mode:t2v / i2v / i2v_first_last / reference_images / reference_material - image_url / image_urls / input_reference - end_image_url / last_image_url - video_urls / audio_urls - seconds / duration - aspect_ratio / ratio / size - quality / resolution - fps - generate_audio / watermark Chi tiết gọi API: - Khi là mode=reference_material hoặc function_mode=omni_reference, nên truyền văn bản và tài liệu tham chiếu thông qua content. - content mục văn bản được viết theo dạng { \u0026quot;type\u0026quot;: \u0026quot;text\u0026quot;, \u0026quot;text\u0026quot;: \u0026quot;测试文字\u0026quot; }. - content các mục tài nguyên hình ảnh, video, âm thanh lần lượt dùng cú pháp đối tượng image_url, video_url, audio_url, ví dụ { \u0026quot;type\u0026quot;: \u0026quot;image_url\u0026quot;, \u0026quot;image_url\u0026quot;: { \u0026quot;url\u0026quot;: \u0026quot;https://example.com/ref.png\u0026quot; }, \u0026quot;role\u0026quot;: \u0026quot;reference_image\u0026quot;, \u0026quot;name\u0026quot;: \u0026quot;1\u0026quot; }. - role có thể dùng để xác định mục đích của tài nguyên, name có thể được tham chiếu theo tên trong prompt. - ratio, duration, resolution, fps sẽ ảnh hưởng đến cấu hình tạo cuối cùng. Seedance 2.5 Ví dụ tham chiếu kết hợp hình ảnh, video và âm thanh (URL tài nguyên là phần giữ chỗ; khi gọi, vui lòng thay bằng liên kết thực tế có thể truy cập): json { \u0026quot;model\u0026quot;: \u0026quot;sd-2-5\u0026quot;, \u0026quot;ratio\u0026quot;: \u0026quot;9:16\u0026quot;, \u0026quot;fps\u0026quot;: 24, \u0026quot;duration\u0026quot;: 10, \u0026quot;content\u0026quot;: [ { \u0026quot;type\u0026quot;: \u0026quot;text\u0026quot;, \u0026quot;text\u0026quot;: \u0026quot;使用 @图片1 @图片2 @图片3 @音频1 参考@视频1 生成视频\u0026quot; }, { \u0026quot;type\u0026quot;: \u0026quot;image_url\u0026quot;, \u0026quot;image_url\u0026quot;: { \u0026quot;url\u0026quot;: \u0026quot;https://demo1.png\u0026quot; }, \u0026quot;role\u0026quot;: \u0026quot;reference_image\u0026quot;, \u0026quot;name\u0026quot;: \u0026quot;图片1\u0026quot; }, { \u0026quot;type\u0026quot;: \u0026quot;image_url\u0026quot;, \u0026quot;image_url\u0026quot;: { \u0026quot;url\u0026quot;: \u0026quot;https://demo2.png\u0026quot; }, \u0026quot;role\u0026quot;: \u0026quot;reference_image\u0026quot;, \u0026quot;name\u0026quot;: \u0026quot;图片2\u0026quot; }, { \u0026quot;type\u0026quot;: \u0026quot;image_url\u0026quot;, \u0026quot;image_url\u0026quot;: { \u0026quot;url\u0026quot;: \u0026quot;https://demo3.png\u0026quot; }, \u0026quot;role\u0026quot;: \u0026quot;reference_image\u0026quot;, \u0026quot;name\u0026quot;: \u0026quot;图片3\u0026quot; }, { \u0026quot;type\u0026quot;: \u0026quot;video_url\u0026quot;, \u0026quot;video_url\u0026quot;: { \u0026quot;url\u0026quot;: \u0026quot;https://video.mp4\u0026quot; }, \u0026quot;role\u0026quot;: \u0026quot;reference_video\u0026quot;, \u0026quot;name\u0026quot;: \u0026quot;视频1\u0026quot; }, { \u0026quot;type\u0026quot;: \u0026quot;audio_url\u0026quot;, \u0026quot;audio_url\u0026quot;: { \u0026quot;url\u0026quot;: \u0026quot;https://audio.mp3\u0026quot; }, \u0026quot;role\u0026quot;: \u0026quot;reference_audio\u0026quot;, \u0026quot;name\u0026quot;: \u0026quot;音频1\u0026quot; } ] } Gọi Gemini Omni: - gemini-omni cũng có thể được gọi thông qua giao diện tác vụ Seedance này. - mode=t2v dùng cho tạo video từ văn bản, mode=r2v dùng cho tạo bằng ảnh tham chiếu/tài nguyên tham chiếu, mode=edit dùng cho chỉnh sửa video. - Văn bản có thể đặt trong mục text của prompt hoặc content; hình ảnh có thể đặt trong image_url / image_urls / reference_images / input_reference / content; video có thể đặt trong video_urls / content. - Trường thời lượng có thể dùng duration hoặc seconds, hệ thống sẽ tự động khớp với các mức 4 / 6 / 8 / 10 giây. MiniMax / Hailuo gọi: - minimax-h3 có thể được gọi thông qua API tác vụ này, hỗ trợ tạo video từ văn bản, tham chiếu ảnh và tham chiếu âm thanh; văn bản có thể đặt trong mục văn bản prompt hoặc content, dữ liệu có thể đặt trong các trường như content, image_urls, audio_urls. - hailuo-2.3 có thể được gọi thông qua API tác vụ này, cần ảnh khung hình đầu tiên; khuyến nghị truyền mục image_url của role=first_frame trong content. - minimax-h3 thường dùng duration=5~15, resolution=1440p; hailuo-2.3 thường dùng duration=6 hoặc 10, resolution=768p. Các trường cần lưu ý trong kết quả truy vấn: - items[].status - items[].content.video_url hoặc items[].video_url - items[].error - items[].progress Error fields: error.code, error.message. ``json { \u0026quot;error\u0026quot;: { \u0026quot;code\u0026quot;: \u0026quot;invalid_request_error\u0026quot;, \u0026quot;message\u0026quot;: \u0026quot;requires at least one image in images\u0026quot; } } ` ## Kling 4.0 Gọi Kling 4.0: kling-4.0 (720p) và kling-4.0-1080p đều hỗ trợ định dạng Seedance content/duration/resolution/ratio/mode, contents/settings/options và định dạng video OpenAI; hai điểm vào video hợp nhất có thể dùng lại cùng một request body. Độ phân giải phải khớp với tên mô hình. Kling 4.0 có thể trực tiếp sử dụng content/duration/resolution/ratio/mode ở định dạng Seedance, hoặc prompt/seconds/size/input_reference ở định dạng video OpenAI; cả hai đều không cần thêm contents/settings/options. Vỏ bọc contents/settings/options cũ chỉ nhằm mục đích tương thích. mode có các tùy chọn t2v (chỉ văn bản), i2v (một khung hình đầu), i2v_first_last (hai khung hình đầu và cuối), reference_images (ảnh tham chiếu thông thường), reference_material (tham chiếu ảnh hoặc video). Khi bỏ qua mode và không có công cụ được chỉ định rõ ràng, nếu có tài liệu tham chiếu thì mặc định là reference_material; nếu không có bất kỳ tài liệu tham chiếu nào thì mặc định là t2v. Chế độ tham chiếu sử dụng vai trò ảnh tham chiếu thông thường và không tự động chuyển các khung hình đầu/cuối được chỉ định rõ ràng thành ảnh tham chiếu; đối với khung hình đầu/cuối, hãy chọn rõ ràng i2v hoặc i2v_first_last và bỏ qua tham số tỷ lệ khung hình. Hiện chưa hỗ trợ âm thanh tham chiếu. settings.audio chỉ là tùy chọn trong chế độ đa năng của ảnh tham chiếu/tài liệu tham chiếu; với t2v, i2v và i2v_first_last, hãy bỏ qua công tắc âm thanh. ## Vidu Q4 Vidu Q4: vidu-q4 cố định ở 720p, vidu-q4-540p cố định ở 540p, hỗ trợ tạo video dài 3~16 giây. Yêu cầu ít nhất 1 ảnh và hỗ trợ tối đa 15 ảnh tham chiếu; quá trình tạo từ tham chiếu có thể kèm tối đa 3 đoạn âm thanh MP3, mỗi đoạn dài 3~12 giây và tối đa 50MB. Không hỗ trợ chỉ tạo từ văn bản, chỉ định khung hình đầu/cuối hoặc video tham chiếu. Nhiều ảnh được dùng làm tham chiếu chung, không biểu thị vị trí đầu/cuối. Có thể tạo tác vụ qua POST /v1/videos, POST /api/v3/contents/generations/tasks, hoặc theo định dạng Vidu POST /ent/v2/img2video, POST /ent/v2/reference2video. Khuyến nghị dùng mode=reference_images làm điểm vào hợp nhất; khi có âm thanh, dùng mode=reference_material. Có thể dùng audio_urls cho âm thanh tham chiếu; ở định dạng Seedance, cũng có thể dùng mục audio_url của content tiêu chuẩn; trường boolean audio` biểu thị công tắc tạo âm thanh và được sử dụng riêng với danh sách URL âm thanh tham chiếu. Độ phân giải phải khớp với tên mô hình.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://btc-de295b31.mintlify.app/_mintlify/api/og/v2?division=T%E1%BA%A1o+video+Seedance\u0026amp;title=T%E1%BA%A1o+video%EF%BC%88Seedance%EF%BC%89\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=5bcff84cf771c06c2878950ae5aee0184ad23bfcba272c5fde23ba57b867394a\">\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/tạo-video-seedance/tạo-video(seedance)\">\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/t%E1%BA%A1o-video-seedance/t%E1%BA%A1o-video%EF%BC%88seedance%EF%BC%89.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/t%E1%BA%A1o-video-seedance/t%E1%BA%A1o-video%EF%BC%88seedance%EF%BC%89#webpage\",\"url\":\"https://docs.aiid.edu.kg/api-reference/vi/t%E1%BA%A1o-video-seedance/t%E1%BA%A1o-video%EF%BC%88seedance%EF%BC%89\",\"name\":\"Tạo video(Seedance)\",\"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). Được dùng để tạo tác vụ tạo video và truy vấn trạng thái cũng như kết quả thông qua ID tác vụ. Các trường cốt lõi để tạo tác vụ: - model: Bắt buộc, tên mô hình. - prompt: Không bắt buộc; nếu không truyền, cần cung cấp mục văn bản không rỗng trong content. - content: tùy chọn, mảng content của Volcano Ark, trộn văn bản, hình ảnh, video và âm thanh. - function_mode: Tùy chọn, thường dùng cho các chế độ nâng cao như tham chiếu toàn năng. Các tham số đầu vào tương thích: Các trường sau chủ yếu dùng để tương thích với client cũ và giao thức cũ. Với tích hợp mới, vui lòng ưu tiên dùng định dạng chuẩn trong “Ví dụ yêu cầu” trên trang này: văn bản và tài liệu tham chiếu sử dụng mảng content, còn cấu hình sinh sử dụng các trường cấp cao nhất duration, ratio, resolution, fps, v.v. - mode:t2v / i2v / i2v_first_last / reference_images / reference_material - image_url / image_urls / input_reference - end_image_url / last_image_url - video_urls / audio_urls - seconds / duration - aspect_ratio / ratio / size - quality / resolution - fps - generate_audio / watermark Chi tiết gọi API: - Khi là mode=reference_material hoặc function_mode=omni_reference, nên truyền văn bản và tài liệu tham chiếu thông qua content. - content mục văn bản được viết theo dạng { \\\"type\\\": \\\"text\\\", \\\"text\\\": \\\"测试文字\\\" }. - content các mục tài nguyên hình ảnh, video, âm thanh lần lượt dùng cú pháp đối tượng image_url, video_url, audio_url, ví dụ { \\\"type\\\": \\\"image_url\\\", \\\"image_url\\\": { \\\"url\\\": \\\"https://example.com/ref.png\\\" }, \\\"role\\\": \\\"reference_image\\\", \\\"name\\\": \\\"1\\\" }. - role có thể dùng để xác định mục đích của tài nguyên, name có thể được tham chiếu theo tên trong prompt. - ratio, duration, resolution, fps sẽ ảnh hưởng đến cấu hình tạo cuối cùng. Seedance 2.5 Ví dụ tham chiếu kết hợp hình ảnh, video và âm thanh (URL tài nguyên là phần giữ chỗ; khi gọi, vui lòng thay bằng liên kết thực tế có thể truy cập): json { \\\"model\\\": \\\"sd-2-5\\\", \\\"ratio\\\": \\\"9:16\\\", \\\"fps\\\": 24, \\\"duration\\\": 10, \\\"content\\\": [ { \\\"type\\\": \\\"text\\\", \\\"text\\\": \\\"使用 @图片1 @图片2 @图片3 @音频1 参考@视频1 生成视频\\\" }, { \\\"type\\\": \\\"image_url\\\", \\\"image_url\\\": { \\\"url\\\": \\\"https://demo1.png\\\" }, \\\"role\\\": \\\"reference_image\\\", \\\"name\\\": \\\"图片1\\\" }, { \\\"type\\\": \\\"image_url\\\", \\\"image_url\\\": { \\\"url\\\": \\\"https://demo2.png\\\" }, \\\"role\\\": \\\"reference_image\\\", \\\"name\\\": \\\"图片2\\\" }, { \\\"type\\\": \\\"image_url\\\", \\\"image_url\\\": { \\\"url\\\": \\\"https://demo3.png\\\" }, \\\"role\\\": \\\"reference_image\\\", \\\"name\\\": \\\"图片3\\\" }, { \\\"type\\\": \\\"video_url\\\", \\\"video_url\\\": { \\\"url\\\": \\\"https://video.mp4\\\" }, \\\"role\\\": \\\"reference_video\\\", \\\"name\\\": \\\"视频1\\\" }, { \\\"type\\\": \\\"audio_url\\\", \\\"audio_url\\\": { \\\"url\\\": \\\"https://audio.mp3\\\" }, \\\"role\\\": \\\"reference_audio\\\", \\\"name\\\": \\\"音频1\\\" } ] } Gọi Gemini Omni: - gemini-omni cũng có thể được gọi thông qua giao diện tác vụ Seedance này. - mode=t2v dùng cho tạo video từ văn bản, mode=r2v dùng cho tạo bằng ảnh tham chiếu/tài nguyên tham chiếu, mode=edit dùng cho chỉnh sửa video. - Văn bản có thể đặt trong mục text của prompt hoặc content; hình ảnh có thể đặt trong image_url / image_urls / reference_images / input_reference / content; video có thể đặt trong video_urls / content. - Trường thời lượng có thể dùng duration hoặc seconds, hệ thống sẽ tự động khớp với các mức 4 / 6 / 8 / 10 giây. MiniMax / Hailuo gọi: - minimax-h3 có thể được gọi thông qua API tác vụ này, hỗ trợ tạo video từ văn bản, tham chiếu ảnh và tham chiếu âm thanh; văn bản có thể đặt trong mục văn bản prompt hoặc content, dữ liệu có thể đặt trong các trường như content, image_urls, audio_urls. - hailuo-2.3 có thể được gọi thông qua API tác vụ này, cần ảnh khung hình đầu tiên; khuyến nghị truyền mục image_url của role=first_frame trong content. - minimax-h3 thường dùng duration=5~15, resolution=1440p; hailuo-2.3 thường dùng duration=6 hoặc 10, resolution=768p. Các trường cần lưu ý trong kết quả truy vấn: - items[].status - items[].content.video_url hoặc items[].video_url - items[].error - items[].progress Error fields: error.code, error.message. ``json { \\\"error\\\": { \\\"code\\\": \\\"invalid_request_error\\\", \\\"message\\\": \\\"requires at least one image in images\\\" } } ` ## Kling 4.0 Gọi Kling 4.0: kling-4.0 (720p) và kling-4.0-1080p đều hỗ trợ định dạng Seedance content/duration/resolution/ratio/mode, contents/settings/options và định dạng video OpenAI; hai điểm vào video hợp nhất có thể dùng lại cùng một request body. Độ phân giải phải khớp với tên mô hình. Kling 4.0 có thể trực tiếp sử dụng content/duration/resolution/ratio/mode ở định dạng Seedance, hoặc prompt/seconds/size/input_reference ở định dạng video OpenAI; cả hai đều không cần thêm contents/settings/options. Vỏ bọc contents/settings/options cũ chỉ nhằm mục đích tương thích. mode có các tùy chọn t2v (chỉ văn bản), i2v (một khung hình đầu), i2v_first_last (hai khung hình đầu và cuối), reference_images (ảnh tham chiếu thông thường), reference_material (tham chiếu ảnh hoặc video). Khi bỏ qua mode và không có công cụ được chỉ định rõ ràng, nếu có tài liệu tham chiếu thì mặc định là reference_material; nếu không có bất kỳ tài liệu tham chiếu nào thì mặc định là t2v. Chế độ tham chiếu sử dụng vai trò ảnh tham chiếu thông thường và không tự động chuyển các khung hình đầu/cuối được chỉ định rõ ràng thành ảnh tham chiếu; đối với khung hình đầu/cuối, hãy chọn rõ ràng i2v hoặc i2v_first_last và bỏ qua tham số tỷ lệ khung hình. Hiện chưa hỗ trợ âm thanh tham chiếu. settings.audio chỉ là tùy chọn trong chế độ đa năng của ảnh tham chiếu/tài liệu tham chiếu; với t2v, i2v và i2v_first_last, hãy bỏ qua công tắc âm thanh. ## Vidu Q4 Vidu Q4: vidu-q4 cố định ở 720p, vidu-q4-540p cố định ở 540p, hỗ trợ tạo video dài 3~16 giây. Yêu cầu ít nhất 1 ảnh và hỗ trợ tối đa 15 ảnh tham chiếu; quá trình tạo từ tham chiếu có thể kèm tối đa 3 đoạn âm thanh MP3, mỗi đoạn dài 3~12 giây và tối đa 50MB. Không hỗ trợ chỉ tạo từ văn bản, chỉ định khung hình đầu/cuối hoặc video tham chiếu. Nhiều ảnh được dùng làm tham chiếu chung, không biểu thị vị trí đầu/cuối. Có thể tạo tác vụ qua POST /v1/videos, POST /api/v3/contents/generations/tasks, hoặc theo định dạng Vidu POST /ent/v2/img2video, POST /ent/v2/reference2video. Khuyến nghị dùng mode=reference_images làm điểm vào hợp nhất; khi có âm thanh, dùng mode=reference_material. Có thể dùng audio_urls cho âm thanh tham chiếu; ở định dạng Seedance, cũng có thể dùng mục audio_url của content tiêu chuẩn; trường boolean audio` biểu thị công tắc tạo âm thanh và được sử dụng riêng với danh sách URL âm thanh tham chiếu. Độ phân giải phải khớp với tên mô hình.\",\"dateModified\":\"2026-10-24T16:04:50.427Z\",\"isPartOf\":{\"@id\":\"https://docs.aiid.edu.kg#website\"},\"breadcrumb\":{\"@id\":\"https://docs.aiid.edu.kg/api-reference/vi/t%E1%BA%A1o-video-seedance/t%E1%BA%A1o-video%EF%BC%88seedance%EF%BC%89#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.aiid.edu.kg/api-reference/vi/t%E1%BA%A1o-video-seedance/t%E1%BA%A1o-video%EF%BC%88seedance%EF%BC%89#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"OverseasAPI\",\"item\":\"https://docs.aiid.edu.kg\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Tạo video(Seedance)\",\"item\":\"https://docs.aiid.edu.kg/api-reference/vi/t%E1%BA%A1o-video-seedance/t%E1%BA%A1o-video%EF%BC%88seedance%EF%BC%89\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.aiid.edu.kg/api-reference/vi/t%E1%BA%A1o-video-seedance/t%E1%BA%A1o-video%EF%BC%88seedance%EF%BC%89#apireference\",\"headline\":\"Tạo video(Seedance)\",\"name\":\"Tạo video(Seedance)\",\"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). Được dùng để tạo tác vụ tạo video và truy vấn trạng thái cũng như kết quả thông qua ID tác vụ. Các trường cốt lõi để tạo tác vụ: - model: Bắt buộc, tên mô hình. - prompt: Không bắt buộc; nếu không truyền, cần cung cấp mục văn bản không rỗng trong content. - content: tùy chọn, mảng content của Volcano Ark, trộn văn bản, hình ảnh, video và âm thanh. - function_mode: Tùy chọn, thường dùng cho các chế độ nâng cao như tham chiếu toàn năng. Các tham số đầu vào tương thích: Các trường sau chủ yếu dùng để tương thích với client cũ và giao thức cũ. Với tích hợp mới, vui lòng ưu tiên dùng định dạng chuẩn trong “Ví dụ yêu cầu” trên trang này: văn bản và tài liệu tham chiếu sử dụng mảng content, còn cấu hình sinh sử dụng các trường cấp cao nhất duration, ratio, resolution, fps, v.v. - mode:t2v / i2v / i2v_first_last / reference_images / reference_material - image_url / image_urls / input_reference - end_image_url / last_image_url - video_urls / audio_urls - seconds / duration - aspect_ratio / ratio / size - quality / resolution - fps - generate_audio / watermark Chi tiết gọi API: - Khi là mode=reference_material hoặc function_mode=omni_reference, nên truyền văn bản và tài liệu tham chiếu thông qua content. - content mục văn bản được viết theo dạng { \\\"type\\\": \\\"text\\\", \\\"text\\\": \\\"测试文字\\\" }. - content các mục tài nguyên hình ảnh, video, âm thanh lần lượt dùng cú pháp đối tượng image_url, video_url, audio_url, ví dụ { \\\"type\\\": \\\"image_url\\\", \\\"image_url\\\": { \\\"url\\\": \\\"https://example.com/ref.png\\\" }, \\\"role\\\": \\\"reference_image\\\", \\\"name\\\": \\\"1\\\" }. - role có thể dùng để xác định mục đích của tài nguyên, name có thể được tham chiếu theo tên trong prompt. - ratio, duration, resolution, fps sẽ ảnh hưởng đến cấu hình tạo cuối cùng. Seedance 2.5 Ví dụ tham chiếu kết hợp hình ảnh, video và âm thanh (URL tài nguyên là phần giữ chỗ; khi gọi, vui lòng thay bằng liên kết thực tế có thể truy cập): json { \\\"model\\\": \\\"sd-2-5\\\", \\\"ratio\\\": \\\"9:16\\\", \\\"fps\\\": 24, \\\"duration\\\": 10, \\\"content\\\": [ { \\\"type\\\": \\\"text\\\", \\\"text\\\": \\\"使用 @图片1 @图片2 @图片3 @音频1 参考@视频1 生成视频\\\" }, { \\\"type\\\": \\\"image_url\\\", \\\"image_url\\\": { \\\"url\\\": \\\"https://demo1.png\\\" }, \\\"role\\\": \\\"reference_image\\\", \\\"name\\\": \\\"图片1\\\" }, { \\\"type\\\": \\\"image_url\\\", \\\"image_url\\\": { \\\"url\\\": \\\"https://demo2.png\\\" }, \\\"role\\\": \\\"reference_image\\\", \\\"name\\\": \\\"图片2\\\" }, { \\\"type\\\": \\\"image_url\\\", \\\"image_url\\\": { \\\"url\\\": \\\"https://demo3.png\\\" }, \\\"role\\\": \\\"reference_image\\\", \\\"name\\\": \\\"图片3\\\" }, { \\\"type\\\": \\\"video_url\\\", \\\"video_url\\\": { \\\"url\\\": \\\"https://video.mp4\\\" }, \\\"role\\\": \\\"reference_video\\\", \\\"name\\\": \\\"视频1\\\" }, { \\\"type\\\": \\\"audio_url\\\", \\\"audio_url\\\": { \\\"url\\\": \\\"https://audio.mp3\\\" }, \\\"role\\\": \\\"reference_audio\\\", \\\"name\\\": \\\"音频1\\\" } ] } Gọi Gemini Omni: - gemini-omni cũng có thể được gọi thông qua giao diện tác vụ Seedance này. - mode=t2v dùng cho tạo video từ văn bản, mode=r2v dùng cho tạo bằng ảnh tham chiếu/tài nguyên tham chiếu, mode=edit dùng cho chỉnh sửa video. - Văn bản có thể đặt trong mục text của prompt hoặc content; hình ảnh có thể đặt trong image_url / image_urls / reference_images / input_reference / content; video có thể đặt trong video_urls / content. - Trường thời lượng có thể dùng duration hoặc seconds, hệ thống sẽ tự động khớp với các mức 4 / 6 / 8 / 10 giây. MiniMax / Hailuo gọi: - minimax-h3 có thể được gọi thông qua API tác vụ này, hỗ trợ tạo video từ văn bản, tham chiếu ảnh và tham chiếu âm thanh; văn bản có thể đặt trong mục văn bản prompt hoặc content, dữ liệu có thể đặt trong các trường như content, image_urls, audio_urls. - hailuo-2.3 có thể được gọi thông qua API tác vụ này, cần ảnh khung hình đầu tiên; khuyến nghị truyền mục image_url của role=first_frame trong content. - minimax-h3 thường dùng duration=5~15, resolution=1440p; hailuo-2.3 thường dùng duration=6 hoặc 10, resolution=768p. Các trường cần lưu ý trong kết quả truy vấn: - items[].status - items[].content.video_url hoặc items[].video_url - items[].error - items[].progress Error fields: error.code, error.message. ``json { \\\"error\\\": { \\\"code\\\": \\\"invalid_request_error\\\", \\\"message\\\": \\\"requires at least one image in images\\\" } } ` ## Kling 4.0 Gọi Kling 4.0: kling-4.0 (720p) và kling-4.0-1080p đều hỗ trợ định dạng Seedance content/duration/resolution/ratio/mode, contents/settings/options và định dạng video OpenAI; hai điểm vào video hợp nhất có thể dùng lại cùng một request body. Độ phân giải phải khớp với tên mô hình. Kling 4.0 có thể trực tiếp sử dụng content/duration/resolution/ratio/mode ở định dạng Seedance, hoặc prompt/seconds/size/input_reference ở định dạng video OpenAI; cả hai đều không cần thêm contents/settings/options. Vỏ bọc contents/settings/options cũ chỉ nhằm mục đích tương thích. mode có các tùy chọn t2v (chỉ văn bản), i2v (một khung hình đầu), i2v_first_last (hai khung hình đầu và cuối), reference_images (ảnh tham chiếu thông thường), reference_material (tham chiếu ảnh hoặc video). Khi bỏ qua mode và không có công cụ được chỉ định rõ ràng, nếu có tài liệu tham chiếu thì mặc định là reference_material; nếu không có bất kỳ tài liệu tham chiếu nào thì mặc định là t2v. Chế độ tham chiếu sử dụng vai trò ảnh tham chiếu thông thường và không tự động chuyển các khung hình đầu/cuối được chỉ định rõ ràng thành ảnh tham chiếu; đối với khung hình đầu/cuối, hãy chọn rõ ràng i2v hoặc i2v_first_last và bỏ qua tham số tỷ lệ khung hình. Hiện chưa hỗ trợ âm thanh tham chiếu. settings.audio chỉ là tùy chọn trong chế độ đa năng của ảnh tham chiếu/tài liệu tham chiếu; với t2v, i2v và i2v_first_last, hãy bỏ qua công tắc âm thanh. ## Vidu Q4 Vidu Q4: vidu-q4 cố định ở 720p, vidu-q4-540p cố định ở 540p, hỗ trợ tạo video dài 3~16 giây. Yêu cầu ít nhất 1 ảnh và hỗ trợ tối đa 15 ảnh tham chiếu; quá trình tạo từ tham chiếu có thể kèm tối đa 3 đoạn âm thanh MP3, mỗi đoạn dài 3~12 giây và tối đa 50MB. Không hỗ trợ chỉ tạo từ văn bản, chỉ định khung hình đầu/cuối hoặc video tham chiếu. Nhiều ảnh được dùng làm tham chiếu chung, không biểu thị vị trí đầu/cuối. Có thể tạo tác vụ qua POST /v1/videos, POST /api/v3/contents/generations/tasks, hoặc theo định dạng Vidu POST /ent/v2/img2video, POST /ent/v2/reference2video. Khuyến nghị dùng mode=reference_images làm điểm vào hợp nhất; khi có âm thanh, dùng mode=reference_material. Có thể dùng audio_urls cho âm thanh tham chiếu; ở định dạng Seedance, cũng có thể dùng mục audio_url của content tiêu chuẩn; trường boolean audio` biểu thị công tắc tạo âm thanh và được sử dụng riêng với danh sách URL âm thanh tham chiếu. Độ phân giải phải khớp với tên mô hình.\",\"url\":\"https://docs.aiid.edu.kg/api-reference/vi/t%E1%BA%A1o-video-seedance/t%E1%BA%A1o-video%EF%BC%88seedance%EF%BC%89\",\"mainEntityOfPage\":{\"@id\":\"https://docs.aiid.edu.kg/api-reference/vi/t%E1%BA%A1o-video-seedance/t%E1%BA%A1o-video%EF%BC%88seedance%EF%BC%89#webpage\"},\"dateModified\":\"2026-10-24T16:04:50.427Z\",\"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}","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\nHappyHorse và giao diện tạo video Wan; đường dẫn công khai tuân theo giao thức chính thức của DashScope.\n\nHappyHorse hỗ trợ `happyhorse-1.0`, `happyhorse-1.0-i2v`, `happyhorse-1.0-t2v`, `happyhorse-1.0-r2v`, `happyhorse-1.0-video-edit`; Wan hỗ trợ `wan-3.0`, `wan-3.0-480p`, `wan-3.0-1080p`. Trong đó `happyhorse-1.0` là mô hình tổng hợp, cần phân biệt `t2v`, `i2v`, `r2v`, `video_edit` thông qua `mode`. Ba mô hình của Wan lần lượt cố định ở 720P, 480P, 1080P, hỗ trợ thời lượng 2~30 giây và tối đa 10 ảnh, 5 video, 5 audio tham chiếu.\n\nGiao diện công khai giữ nguyên định dạng endpoint chính thức; tiền tố riêng cho từng kênh chỉ được ghép nội bộ khi gateway gửi yêu cầu tới kênh upstream cụ thể. Client không cần truyền rõ `X-DashScope-Async`; gateway hoặc lớp thích ứng kênh chính thức sẽ xử lý.\n\nBổ sung khung yêu cầu công khai, cấu trúc truy vấn tác vụ và mẫu xác thực đề xuất cho định dạng tạo video HappyHorse và Wan; đường dẫn công khai giữ nguyên định dạng endpoint chính thức của DashScope.\n\nMô hình hỗ trợ:\nhappyhorse-1.0, happyhorse-1.0-t2v, happyhorse-1.0-i2v, happyhorse-1.0-r2v, happyhorse-1.0-video-edit, wan-3.0, wan-3.0-480p, wan-3.0-1080p\n\nCác trường yêu cầu thống nhất:\n- `model` (string, bắt buộc): Tên mô hình công khai của HappyHorse hoặc Wan. Wan hỗ trợ `wan-3.0`, `wan-3.0-480p`, `wan-3.0-1080p`; mô hình tổng hợp HappyHorse `happyhorse-1.0` cần dùng cùng `mode`.\n- `mode` (string, tùy chọn): Chế độ mô hình tổng hợp, các giá trị thường dùng là `t2v`、`i2v`、`r2v`、`video_edit`. Với mô hình con cố định có thể không truyền.\n- `input.prompt` (string, bắt buộc): Prompt tạo hoặc chỉnh sửa video.\n- `input.media` (array[object], tùy chọn): Đầu vào đa phương tiện. Hỗ trợ `first_frame`, `last_frame`, `reference_image`, `reference_video`, `reference_audio`; Wan hỗ trợ tối đa 10 ảnh, 5 video, 5 audio.\n- `parameters.duration` (integer, tùy chọn): Thời gian tạo, tính bằng giây.\n- `parameters.resolution` (string, tùy chọn): Độ phân giải đầu ra. Ba mô hình của Wan lần lượt cố định ở `720P`, `480P`, `1080P`; các giá trị phổ biến của HappyHorse là `720P`, `1080P`.\n- `parameters.ratio` (string, tùy chọn): Tỷ lệ khung hình đầu ra, thường dùng cho tạo video từ văn bản và từ tham chiếu.\n- `parameters.watermark` (boolean, tùy chọn): Có thêm watermark hay không.\n- `parameters.seed` (integer, tùy chọn): Seed ngẫu nhiên.\n\nKhác biệt thường gặp giữa mô hình/chế độ:\n- `HappyHorse 聚合模型`: Hỗ trợ mô hình happyhorse-1.0; mô hình tổng hợp phân biệt mô hình cuối cùng qua mode.\n- `HappyHorse 文生视频`: Hỗ trợ mô hình happyhorse-1.0-t2v; định dạng chính thức tạo video từ văn bản.\n- `HappyHorse 首帧图生视频`: Hỗ trợ mô hình happyhorse-1.0-i2v; định dạng chính thức tạo video từ ảnh khung đầu.\n- `HappyHorse 参考生视频`: Hỗ trợ mô hình happyhorse-1.0-r2v; định dạng chính thức tạo video từ nhiều ảnh tham chiếu.\n- `HappyHorse 视频编辑`: Hỗ trợ mô hình happyhorse-1.0-video-edit; định dạng chính thức chỉnh sửa video.\n- `Wan 3.0 720P`: Hỗ trợ mô hình wan-3.0; tạo video tham chiếu đa phương thức theo định dạng chính thức của Wan 3.0.\n- `Wan 3.0 480P`: Hỗ trợ mô hình wan-3.0-480p; lời gọi theo định dạng chính thức của Wan 3.0 với 480P cố định.\n- `Wan 3.0 1080P`: Hỗ trợ mô hình wan-3.0-1080p; lời gọi theo định dạng chính thức của Wan 3.0 với 1080P cố định.","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}","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\nĐược dùng để tạo tác vụ tạo video và truy vấn trạng thái cũng như kết quả thông qua ID tác vụ.\n\nCác trường cốt lõi để tạo tác vụ:\n- `model`: Bắt buộc, tên mô hình.\n- `prompt`: Không bắt buộc; nếu không truyền, cần cung cấp mục văn bản không rỗng trong `content`.\n- `content`: tùy chọn, mảng content của Volcano Ark, trộn văn bản, hình ảnh, video và âm thanh.\n- `function_mode`: Tùy chọn, thường dùng cho các chế độ nâng cao như tham chiếu toàn năng.\n\nCác tham số đầu vào tương thích:\n\nCác trường sau chủ yếu dùng để tương thích với client cũ và giao thức cũ. Với tích hợp mới, vui lòng ưu tiên dùng định dạng chuẩn trong “Ví dụ yêu cầu” trên trang này: văn bản và tài liệu tham chiếu sử dụng mảng `content`, còn cấu hình sinh sử dụng các trường cấp cao nhất `duration`, `ratio`, `resolution`, `fps`, v.v.\n\n- `mode`:`t2v / i2v / i2v_first_last / reference_images / reference_material`\n- `image_url / image_urls / input_reference`\n- `end_image_url / last_image_url`\n- `video_urls / audio_urls`\n- `seconds / duration`\n- `aspect_ratio / ratio / size`\n- `quality / resolution`\n- `fps`\n- `generate_audio / watermark`\n\nChi tiết gọi API:\n- Khi là `mode=reference_material` hoặc `function_mode=omni_reference`, nên truyền văn bản và tài liệu tham chiếu thông qua `content`.\n- `content` mục văn bản được viết theo dạng `{ \"type\": \"text\", \"text\": \"测试文字\" }`.\n- `content` các mục tài nguyên hình ảnh, video, âm thanh lần lượt dùng cú pháp đối tượng `image_url`, `video_url`, `audio_url`, ví dụ `{ \"type\": \"image_url\", \"image_url\": { \"url\": \"https://example.com/ref.png\" }, \"role\": \"reference_image\", \"name\": \"1\" }`.\n- `role` có thể dùng để xác định mục đích của tài nguyên, `name` có thể được tham chiếu theo tên trong prompt.\n- `ratio`, `duration`, `resolution`, `fps` sẽ ảnh hưởng đến cấu hình tạo cuối cùng.\n\nSeedance 2.5 Ví dụ tham chiếu kết hợp hình ảnh, video và âm thanh (URL tài nguyên là phần giữ chỗ; khi gọi, vui lòng thay bằng liên kết thực tế có thể truy cập):\n\n```json\n{\n \"model\": \"sd-2-5\",\n \"ratio\": \"9:16\",\n \"fps\": 24,\n \"duration\": 10,\n \"content\": [\n {\n \"type\": \"text\",\n \"text\": \"使用 @图片1 @图片2 @图片3 @音频1 参考@视频1 生成视频\"\n },\n {\n \"type\": \"image_url\",\n \"image_url\": {\n \"url\": \"https://demo1.png\"\n },\n \"role\": \"reference_image\",\n \"name\": \"图片1\"\n },\n {\n \"type\": \"image_url\",\n \"image_url\": {\n \"url\": \"https://demo2.png\"\n },\n \"role\": \"reference_image\",\n \"name\": \"图片2\"\n },\n {\n \"type\": \"image_url\",\n \"image_url\": {\n \"url\": \"https://demo3.png\"\n },\n \"role\": \"reference_image\",\n \"name\": \"图片3\"\n },\n {\n \"type\": \"video_url\",\n \"video_url\": {\n \"url\": \"https://video.mp4\"\n },\n \"role\": \"reference_video\",\n \"name\": \"视频1\"\n },\n {\n \"type\": \"audio_url\",\n \"audio_url\": {\n \"url\": \"https://audio.mp3\"\n },\n \"role\": \"reference_audio\",\n \"name\": \"音频1\"\n }\n ]\n}\n```\n\nGọi Gemini Omni:\n- `gemini-omni` cũng có thể được gọi thông qua giao diện tác vụ Seedance này.\n- `mode=t2v` dùng cho tạo video từ văn bản, `mode=r2v` dùng cho tạo bằng ảnh tham chiếu/tài nguyên tham chiếu, `mode=edit` dùng cho chỉnh sửa video.\n- Văn bản có thể đặt trong mục `text` của `prompt` hoặc `content`; hình ảnh có thể đặt trong `image_url / image_urls / reference_images / input_reference / content`; video có thể đặt trong `video_urls / content`.\n- Trường thời lượng có thể dùng `duration` hoặc `seconds`, hệ thống sẽ tự động khớp với các mức 4 / 6 / 8 / 10 giây.\n\nMiniMax / Hailuo gọi:\n- `minimax-h3` có thể được gọi thông qua API tác vụ này, hỗ trợ tạo video từ văn bản, tham chiếu ảnh và tham chiếu âm thanh; văn bản có thể đặt trong mục văn bản `prompt` hoặc `content`, dữ liệu có thể đặt trong các trường như `content`, `image_urls`, `audio_urls`.\n- `hailuo-2.3` có thể được gọi thông qua API tác vụ này, cần ảnh khung hình đầu tiên; khuyến nghị truyền mục `image_url` của `role=first_frame` trong `content`.\n- `minimax-h3` thường dùng `duration=5~15`, `resolution=1440p`; `hailuo-2.3` thường dùng `duration=6` hoặc `10`, `resolution=768p`.\n\nCác trường cần lưu ý trong kết quả truy vấn:\n- `items[].status`\n- `items[].content.video_url` hoặc `items[].video_url`\n- `items[].error`\n- `items[].progress`\n\nError fields: `error.code`, `error.message`.\n\n```json\n{\n \"error\": {\n \"code\": \"invalid_request_error\",\n \"message\": \"requires at least one image in `images`\"\n }\n}\n```","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","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","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":"Tạo video(Seedance) - 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"]}