Đượ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ách gọi Kling 4.0: kling-4.0 (720p) và kling-4.0-1080p cùng hỗ trợ định dạng Seedance content/duration/resolution/ratio/mode, contents/settings/options và định dạng video OpenAI; hai điểm truy cập video thống nhất có thể dùng chung phần thân yêu cầu. Độ phân giải phải khớp với tên mô hình. Kling 4.0 có thể dùng trực tiếp các trường content/duration/resolution/ratio/mode của định dạng Seedance, hoặc các trường prompt/seconds/size/input_reference của định dạng video OpenAI; cả hai đều không cần thêm contents/settings/options. mode có thể là t2v (chỉ văn bản), i2v (một khung hình đầu), i2v_first_last (khung hình đầu và cuối), reference_images (ảnh tham chiếu thông thường), reference_material (tham chiếu tư liệu đa năng; âm thanh phải dùng tuyến hỗ trợ khả năng này). Nếu bỏ qua mode và không chỉ định công cụ, mặc định dùng reference_material khi có tư liệu tham chiếu, và dùng t2v khi không có tư liệu tham chiếu. 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; với khung hình đầu và cuối, hãy chọn rõ i2v hoặc i2v_first_last và bỏ qua tham số tỷ lệ khung hình. Kling 4.0 mặc định tạo đồng thời âm thanh và hình ảnh. Chế độ tham chiếu đa năng hỗ trợ URL âm thanh công khai: /v1/videos sử dụng audio_urls, còn Seedance sử dụng mục audio_url trong content; cần dùng tuyến hỗ trợ tư liệu âm thanh. Ba điểm truy cập chuyên dụng nguyên bản hiện không nhận các trường âm thanh tham chiếu.
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.
Magi-2 1080p
magi-2-1080p hỗ trợ hai định dạng OpenAI /v1/videos và Ark /api/v3/contents/generations/tasks, có thể truy vấn lần lượt qua GET /{task_id} của đường dẫn tương ứng. Độ phân giải cố định là 1080p, thời lượng tạo từ 4 đến 30 giây. Hỗ trợ các tỷ lệ khung hình 16:9, 9:16, 1:1, 4:3, 3:4 và 21:9; đầu ra tỷ lệ 1:1 có kích thước 1440×1440. Chế độ tham chiếu hỗ trợ tối đa 10 ảnh, 5 video và 5 đoạn âm thanh, tổng cộng 20 tài nguyên. Mỗi video và đoạn âm thanh có thời lượng từ 2 đến 30 giây; tổng thời lượng của tất cả video không quá 30 giây, và tổng thời lượng của tất cả âm thanh cũng không quá 30 giây. Kích thước tối đa của ảnh là 30 MB, video là 200 MB và âm thanh là 15 MB. Chế độ khung hình đầu và cuối không thể kết hợp với các ảnh, video hoặc âm thanh tham chiếu khác. Trong câu lệnh, có thể dùng <<<image_1>>>, <<<video_1>>> và <<<audio_1>>> để tham chiếu tài nguyên theo thứ tự nhập của từng loại. Hiện chưa cung cấp lối truy cập riêng cho định dạng chính thức của sand.ai.
Sử dụng xác thực Bearer Token.
Định dạng: Authorization: Bearer sk-xxxxxx
Nội dung
application/json
model
enum<string>
bắt buộc
Bắt buộc. Tên mô hình. Có thể truyền mô hình bên ngoài Seedance, Kling 4.0, Vidu Q4, gemini-omni, minimax-h3 hoặc hailuo-2.3.
Tùy chọn có sẵn:
kling-4.0,
kling-4.0-1080p,
vidu-q4,
vidu-q4-540p,
magi-2-1080p,
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,
sd-2-5-4k,
sd-2-5-flash,
sd-2-5-flash-480p,
minimax-h3,
hailuo-2.3,
wan-3.0-prime,
wan-3.0-prime-1080p,
happyhorse-1.1,
happyhorse-1.1-1080p,
gemini-omni
Ví dụ:
"doubao-seedance-2-0-260128"
prompt
string
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.
Ví dụ:
"参考素材生成一段剧情短视频"
content
object[]
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.
Hide child attributes
content.type
enum<string>
bắt buộc
Loại mục nội dung.
Tùy chọn có sẵn:
text,
image_url,
video_url,
audio_url
content.text
string
Nội dung văn bản, chỉ dùng khi type=text.
content.image_url
stringobject
URL hình ảnh, khuyến nghị dùng dạng đối tượng: {"url":"https://..."}.
content.video_url
stringobject
URL video, khuyến nghị dùng dạng object: {"url":"https://..."}.
content.audio_url
stringobject
URL âm thanh, khuyến nghị dùng dạng đối tượng: {"url":"https://..."}.
content.role
string
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.
content.name
string
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.
contents
object[]
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.
Minimum array length: 1
Hide child attributes
contents.type
enum<string>
bắt buộc
Tùy chọn có sẵn:
prompt,
reference_image,
reference_video,
first_frame,
last_frame
contents.text
string
Mô tả văn bản khi type=prompt.
contents.url
string<uri>
URL có thể truy cập của tài liệu tham khảo hoặc khung hình đầu/cuối.
settings
object
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.
Hide child attributes
settings.duration
integer
Phạm vi bắt buộc: 4 <= x <= 30
Ví dụ:
4
settings.resolution
enum<string>
Tùy chọn có sẵn:
720p,
1080p
settings.aspect_ratio
enum<string>
Tùy chọn có sẵn:
21:9,
16:9,
9:16,
1:1
options
object
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.
function_mode
string
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.
mode
string
Không bắt buộc. Các trường chế độ tương thích, chẳng hạn 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 với content/duration/resolution/ratio/mode hoặc định dạng video OpenAI với prompt/seconds/size/input_reference; cả hai đều không cần thêm contents/settings/options. mode có thể là t2v (chỉ văn bản), i2v (một khung hình đầu), i2v_first_last (khung hình đầu và cuối), reference_images (ảnh tham chiếu thông thường), reference_material (tham chiếu tư liệu đa năng; âm thanh cần dùng tuyến hỗ trợ khả năng này). Nếu bỏ qua mode và không chỉ định công cụ, mặc định là reference_material khi có tư liệu tham chiếu, và t2v khi không có tư liệu tham chiếu. Chế độ tham chiếu sử dụng vai trò ảnh tham chiếu thông thường; không tự ý chuyển khung hình đầu và cuối được chỉ định rõ ràng thành ảnh tham chiếu. Với khung hình đầu và cuối, hãy chọn rõ i2v hoặc i2v_first_last và bỏ qua tham số tỷ lệ khung hình. Kling 4.0 mặc định tạo đồng thời âm thanh và hình ảnh. Chế độ tham chiếu đa năng hỗ trợ URL âm thanh công khai: /v1/videos dùng audio_urls, còn Seedance dùng mục audio_url trong content; cần sử dụng tuyến hỗ trợ tư liệu âm thanh. Hiện tại, ba điểm cuối chuyên dụng gốc không nhận trường âm thanh tham chiếu.
Ví dụ:
"reference_material"
image_url
string
Tùy chọn. URL của một ảnh tham chiếu duy nhất.
image_urls
string[]
Tùy chọn. Danh sách URL của nhiều ảnh tham chiếu.
input_reference
string
Tùy chọn. Tương thích với các trường nhập liệu tham chiếu.
end_image_url
string
Tùy chọn. URL hình ảnh tham chiếu cho khung hình cuối.
last_image_url
string
Tùy chọn. Alias URL của hình ảnh tham chiếu khung hình cuối.
video_urls
string[]
Tùy chọn. Danh sách URL video tham chiếu.
audio_urls
string<uri>[]
Tùy chọn. Danh sách URL âm thanh tham chiếu.
seconds
numberstring
Tùy chọn. Thời lượng video, tính bằng giây; tương thích với duration.
duration
numberstring
Tùy chọn. Thời lượng video, tính bằng giây; tương thích với seconds.
aspect_ratio
string
Tùy chọn. Tỷ lệ khung hình, ví dụ: 16:9.
ratio
string
Tùy chọn. Biệt danh của tỷ lệ khung hình, ví dụ: 16:9.
size
string
Tùy chọn. Trường tương thích với độ phân giải hoặc kích thước.
quality
string
Tùy chọn. Cấu hình chất lượng tạo.
resolution
string
Tùy chọn. Độ phân giải đầu ra.
fps
number
Tùy chọn. Tốc độ khung hình.
generate_audio
boolean
Tùy chọn. Có tạo âm thanh hay không.
watermark
boolean
Tùy chọn. Có thêm hình mờ (watermark) hay không.
Phản hồi
200 - application/json
Tạo nhiệm vụ thành công
id
string
bắt buộc
ID của tác vụ.
Ví dụ:
"task_xxx"
status
enum<string>
Trạng thái nhiệm vụ.
Tùy chọn có sẵn:
queued,
running,
succeeded,
failed
created_at
string
Thời gian tạo (giây Unix).
items
string
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"NewAPIs","description":"NewAPIs API documentation","colors":{"primary":"#6d28d9","light":"#f5f3ff","dark":"#2e1065"},"logo":{"light":"https://mintcdn.com/kxx/tvEBYKW9jCEn__pG/public/assets/logo.webp?fit=max\u0026auto=format\u0026n=tvEBYKW9jCEn__pG\u0026q=85\u0026s=8d30279d53dca1ddb9765ec06ca39d39","dark":"https://mintcdn.com/kxx/tvEBYKW9jCEn__pG/public/assets/logo.webp?fit=max\u0026auto=format\u0026n=tvEBYKW9jCEn__pG\u0026q=85\u0026s=8d30279d53dca1ddb9765ec06ca39d39"},"favicon":{"light":"https://mintcdn.com/kxx/tvEBYKW9jCEn__pG/public/assets/logo.webp?fit=max\u0026auto=format\u0026n=tvEBYKW9jCEn__pG\u0026q=85\u0026s=8d30279d53dca1ddb9765ec06ca39d39","dark":"https://mintcdn.com/kxx/tvEBYKW9jCEn__pG/public/assets/logo.webp?fit=max\u0026auto=format\u0026n=tvEBYKW9jCEn__pG\u0026q=85\u0026s=8d30279d53dca1ddb9765ec06ca39d39"},"api":{"params":{"expanded":"all"}},"seo":{"metatags":{"canonical":"https://docs.newapi.si"}},"contextual":{"options":["copy"],"display":"header"},"styling":{"latex":false},"navigation":{"languages":[{"language":"cn","footer":{"socials":{}},"navbar":{"links":[{"href":"https://www.newapi.si/about","label":"支持"},{"href":"https://www.newapi.si/pricing","label":"价格"}],"primary":{"type":"button","label":"控制台","href":"https://www.newapi.si/dashboard/overview"}},"href":"api-reference/cn/conventions"},{"language":"en","footer":{"socials":{}},"navbar":{"links":[{"href":"https://www.newapi.si/about","label":"Support"},{"href":"https://www.newapi.si/pricing","label":"Pricing"}],"primary":{"type":"button","label":"Console","href":"https://www.newapi.si/dashboard/overview"}},"href":"api-reference/en/conventions"},{"language":"zh-Hant","footer":{"socials":{}},"navbar":{"links":[{"href":"https://www.newapi.si/about","label":"支援"},{"href":"https://www.newapi.si/pricing","label":"價格"}],"primary":{"type":"button","label":"控制台","href":"https://www.newapi.si/dashboard/overview"}},"href":"api-reference/zh-tw/conventions"},{"language":"fr","footer":{"socials":{}},"navbar":{"links":[{"href":"https://www.newapi.si/about","label":"Support"},{"href":"https://www.newapi.si/pricing","label":"Tarifs"}],"primary":{"type":"button","label":"Console","href":"https://www.newapi.si/dashboard/overview"}},"href":"api-reference/fr/conventions"},{"language":"ja","footer":{"socials":{}},"navbar":{"links":[{"href":"https://www.newapi.si/about","label":"サポート"},{"href":"https://www.newapi.si/pricing","label":"料金"}],"primary":{"type":"button","label":"コンソール","href":"https://www.newapi.si/dashboard/overview"}},"href":"api-reference/ja/conventions"},{"language":"ru","footer":{"socials":{}},"navbar":{"links":[{"href":"https://www.newapi.si/about","label":"Поддержка"},{"href":"https://www.newapi.si/pricing","label":"Тарифы"}],"primary":{"type":"button","label":"Консоль","href":"https://www.newapi.si/dashboard/overview"}},"href":"api-reference/ru/conventions"},{"language":"vi","footer":{"socials":{}},"navbar":{"links":[{"href":"https://www.newapi.si/about","label":"Hỗ trợ"},{"href":"https://www.newapi.si/pricing","label":"Bảng giá"}],"primary":{"type":"button","label":"Bảng điều khiển","href":"https://www.newapi.si/dashboard/overview"}},"href":"api-reference/vi/conventions"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"kxx","hasAudioNarration":false,"actualSubdomain":"kxx","customDomains":["docs.newapi.si"],"gitSource":{"type":"github","owner":"btcfoxman","repo":"newapi-si-docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":"","_id":"6b11009524fa6e44b829b62f"},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6b111340e71f374a14b7ba2c","clientVersion":"0.0.4448","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":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"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":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"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":"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":"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":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"html{font-size:15px}#content-area,#body-content,.mdx-content,.api-section,.request-example,.response-example,#api-playground-input{font-size:0.9rem}.api-section pre,.request-example pre,.response-example pre,code{font-size:0.85em}.api-section h1,.api-section h2,.api-section h3,#page-title{letter-spacing:-0.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ách gọi Kling 4.0: `kling-4.0` (720p) và `kling-4.0-1080p` cùng hỗ trợ định dạng Seedance `content/duration/resolution/ratio/mode`, `contents/settings/options` và định dạng video OpenAI; hai điểm truy cập video thống nhất có thể dùng chung phần thân yêu cầu. Độ phân giải phải khớp với tên mô hình. Kling 4.0 có thể dùng trực tiếp các trường content/duration/resolution/ratio/mode của định dạng Seedance, hoặc các trường prompt/seconds/size/input_reference của định dạng video OpenAI; cả hai đều không cần thêm contents/settings/options. mode có thể là t2v (chỉ văn bản), i2v (một khung hình đầu), i2v_first_last (khung hình đầu và cuối), reference_images (ảnh tham chiếu thông thường), reference_material (tham chiếu tư liệu đa năng; âm thanh phải dùng tuyến hỗ trợ khả năng này). Nếu bỏ qua mode và không chỉ định công cụ, mặc định dùng reference_material khi có tư liệu tham chiếu, và dùng t2v khi không có tư liệu tham chiếu. 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; với khung hình đầu và cuối, hãy chọn rõ i2v hoặc i2v_first_last và bỏ qua tham số tỷ lệ khung hình. Kling 4.0 mặc định tạo đồng thời âm thanh và hình ảnh. Chế độ tham chiếu đa năng hỗ trợ URL âm thanh công khai: /v1/videos sử dụng audio_urls, còn Seedance sử dụng mục audio_url trong content; cần dùng tuyến hỗ trợ tư liệu âm thanh. Ba điểm truy cập chuyên dụng nguyên bản hiện không nhận các trường âm thanh tham chiếu.\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.\n\n### Magi-2 1080p\n\n`magi-2-1080p` hỗ trợ hai định dạng OpenAI `/v1/videos` và Ark `/api/v3/contents/generations/tasks`, có thể truy vấn lần lượt qua `GET /{task_id}` của đường dẫn tương ứng. Độ phân giải cố định là 1080p, thời lượng tạo từ 4 đến 30 giây. Hỗ trợ các tỷ lệ khung hình 16:9, 9:16, 1:1, 4:3, 3:4 và 21:9; đầu ra tỷ lệ 1:1 có kích thước 1440×1440. Chế độ tham chiếu hỗ trợ tối đa 10 ảnh, 5 video và 5 đoạn âm thanh, tổng cộng 20 tài nguyên. Mỗi video và đoạn âm thanh có thời lượng từ 2 đến 30 giây; tổng thời lượng của tất cả video không quá 30 giây, và tổng thời lượng của tất cả âm thanh cũng không quá 30 giây. Kích thước tối đa của ảnh là 30 MB, video là 200 MB và âm thanh là 15 MB. Chế độ khung hình đầu và cuối không thể kết hợp với các ảnh, video hoặc âm thanh tham chiếu khác. Trong câu lệnh, có thể dùng `\u003c\u003c\u003cimage_1>>>`, `\u003c\u003c\u003cvideo_1>>>` và `\u003c\u003c\u003caudio_1>>>` để tham chiếu tài nguyên theo thứ tự nhập của từng loại. Hiện chưa cung cấp lối truy cập riêng cho định dạng chính thức của sand.ai.\n\n```json\n{\n \"model\": \"magi-2-1080p\",\n \"duration\": 4,\n \"resolution\": \"1080p\",\n \"ratio\": \"1:1\",\n \"content\": [\n {\n \"type\": \"text\",\n \"text\": \"以 \u003c\u003c\u003cimage_1>>> 的彩色积木为主体,参考 \u003c\u003c\u003cvideo_1>>> 的缓慢转动及 \u003c\u003c\u003caudio_1>>> 的轻柔节奏。\"\n },\n {\n \"type\": \"image_url\",\n \"image_url\": {\n \"url\": \"https://example.com/blocks.png\"\n },\n \"role\": \"reference_image\"\n },\n {\n \"type\": \"video_url\",\n \"video_url\": {\n \"url\": \"https://example.com/rotation.mp4\"\n },\n \"role\": \"reference_video\"\n },\n {\n \"type\": \"audio_url\",\n \"audio_url\": {\n \"url\": \"https://example.com/rhythm.wav\"\n },\n \"role\": \"reference_audio\"\n }\n ]\n}\n```\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/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 h3: \"h3\",\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\", _jsxs(_components.p, {\n children: [\"Cách 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 }), \" cùng 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 truy cập video thống nhất có thể dùng chung phần thân yêu cầu. Độ phân giải phải khớp với tên mô hình. Kling 4.0 có thể dùng trực tiếp các trường content/duration/resolution/ratio/mode của định dạng Seedance, hoặc các trường prompt/seconds/size/input_reference của định dạng video OpenAI; cả hai đều không cần thêm contents/settings/options. mode có thể là t2v (chỉ văn bản), i2v (một khung hình đầu), i2v_first_last (khung hình đầu và cuối), reference_images (ảnh tham chiếu thông thường), reference_material (tham chiếu tư liệu đa năng; âm thanh phải dùng tuyến hỗ trợ khả năng này). Nếu bỏ qua mode và không chỉ định công cụ, mặc định dùng reference_material khi có tư liệu tham chiếu, và dùng t2v khi không có tư liệu tham chiếu. 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; với khung hình đầu và cuối, hãy chọn rõ i2v hoặc i2v_first_last và bỏ qua tham số tỷ lệ khung hình. Kling 4.0 mặc định tạo đồng thời âm thanh và hình ảnh. Chế độ tham chiếu đa năng hỗ trợ URL âm thanh công khai: /v1/videos sử dụng audio_urls, còn Seedance sử dụng mục audio_url trong content; cần dùng tuyến hỗ trợ tư liệu âm thanh. Ba điểm truy cập chuyên dụng nguyên bản hiện không nhận các trường âm thanh tham chiếu.\"]\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\", _jsx(_components.h3, {\n children: \"Magi-2 1080p\"\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.code, {\n children: \"magi-2-1080p\"\n }), \" hỗ trợ hai định dạng OpenAI \", _jsx(_components.code, {\n children: \"/v1/videos\"\n }), \" và Ark \", _jsx(_components.code, {\n children: \"/api/v3/contents/generations/tasks\"\n }), \", có thể truy vấn lần lượt qua \", _jsx(_components.code, {\n children: \"GET /{task_id}\"\n }), \" của đường dẫn tương ứng. Độ phân giải cố định là 1080p, thời lượng tạo từ 4 đến 30 giây. Hỗ trợ các tỷ lệ khung hình 16:9, 9:16, 1:1, 4:3, 3:4 và 21:9; đầu ra tỷ lệ 1:1 có kích thước 1440×1440. Chế độ tham chiếu hỗ trợ tối đa 10 ảnh, 5 video và 5 đoạn âm thanh, tổng cộng 20 tài nguyên. Mỗi video và đoạn âm thanh có thời lượng từ 2 đến 30 giây; tổng thời lượng của tất cả video không quá 30 giây, và tổng thời lượng của tất cả âm thanh cũng không quá 30 giây. Kích thước tối đa của ảnh là 30 MB, video là 200 MB và âm thanh là 15 MB. Chế độ khung hình đầu và cuối không thể kết hợp với các ảnh, video hoặc âm thanh tham chiếu khác. Trong câu lệnh, có thể dùng \", _jsx(_components.code, {\n children: \"\u003c\u003c\u003cimage_1>>>\"\n }), \", \", _jsx(_components.code, {\n children: \"\u003c\u003c\u003cvideo_1>>>\"\n }), \" và \", _jsx(_components.code, {\n children: \"\u003c\u003c\u003caudio_1>>>\"\n }), \" để tham chiếu tài nguyên theo thứ tự nhập của từng loại. Hiện chưa cung cấp lối truy cập riêng cho định dạng chính thức của sand.ai.\"]\n }), \"\\n\", _jsx(CodeBlock, {\n numberOfLines: \"33\",\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: \"33\",\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: \"\\\"magi-2-1080p\\\"\"\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: \"4\"\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: \" \\\"resolution\\\"\"\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: \"\\\"1080p\\\"\"\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: \"\\\"1:1\\\"\"\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: \"\\\"以 \u003c\u003c\u003cimage_1>>> 的彩色积木为主体,参考 \u003c\u003c\u003cvideo_1>>> 的缓慢转动及 \u003c\u003c\u003caudio_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://example.com/blocks.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 })]\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://example.com/rotation.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 })]\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://example.com/rhythm.wav\\\"\"\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 })]\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: \"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 });\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ách gọi Kling 4.0: `kling-4.0` (720p) và `kling-4.0-1080p` cùng hỗ trợ định dạng Seedance `content/duration/resolution/ratio/mode`, `contents/settings/options` và định dạng video OpenAI; hai điểm truy cập video thống nhất có thể dùng chung phần thân yêu cầu. Độ phân giải phải khớp với tên mô hình. Kling 4.0 có thể dùng trực tiếp các trường content/duration/resolution/ratio/mode của định dạng Seedance, hoặc các trường prompt/seconds/size/input_reference của định dạng video OpenAI; cả hai đều không cần thêm contents/settings/options. mode có thể là t2v (chỉ văn bản), i2v (một khung hình đầu), i2v_first_last (khung hình đầu và cuối), reference_images (ảnh tham chiếu thông thường), reference_material (tham chiếu tư liệu đa năng; âm thanh phải dùng tuyến hỗ trợ khả năng này). Nếu bỏ qua mode và không chỉ định công cụ, mặc định dùng reference_material khi có tư liệu tham chiếu, và dùng t2v khi không có tư liệu tham chiếu. 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; với khung hình đầu và cuối, hãy chọn rõ i2v hoặc i2v_first_last và bỏ qua tham số tỷ lệ khung hình. Kling 4.0 mặc định tạo đồng thời âm thanh và hình ảnh. Chế độ tham chiếu đa năng hỗ trợ URL âm thanh công khai: /v1/videos sử dụng audio_urls, còn Seedance sử dụng mục audio_url trong content; cần dùng tuyến hỗ trợ tư liệu âm thanh. Ba điểm truy cập chuyên dụng nguyên bản hiện không nhận các trường âm thanh tham chiếu.\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.\n\n### Magi-2 1080p\n\n`magi-2-1080p` hỗ trợ hai định dạng OpenAI `/v1/videos` và Ark `/api/v3/contents/generations/tasks`, có thể truy vấn lần lượt qua `GET /{task_id}` của đường dẫn tương ứng. Độ phân giải cố định là 1080p, thời lượng tạo từ 4 đến 30 giây. Hỗ trợ các tỷ lệ khung hình 16:9, 9:16, 1:1, 4:3, 3:4 và 21:9; đầu ra tỷ lệ 1:1 có kích thước 1440×1440. Chế độ tham chiếu hỗ trợ tối đa 10 ảnh, 5 video và 5 đoạn âm thanh, tổng cộng 20 tài nguyên. Mỗi video và đoạn âm thanh có thời lượng từ 2 đến 30 giây; tổng thời lượng của tất cả video không quá 30 giây, và tổng thời lượng của tất cả âm thanh cũng không quá 30 giây. Kích thước tối đa của ảnh là 30 MB, video là 200 MB và âm thanh là 15 MB. Chế độ khung hình đầu và cuối không thể kết hợp với các ảnh, video hoặc âm thanh tham chiếu khác. Trong câu lệnh, có thể dùng `\u003c\u003c\u003cimage_1>>>`, `\u003c\u003c\u003cvideo_1>>>` và `\u003c\u003c\u003caudio_1>>>` để tham chiếu tài nguyên theo thứ tự nhập của từng loại. Hiện chưa cung cấp lối truy cập riêng cho định dạng chính thức của sand.ai.\n\n```json\n{\n \"model\": \"magi-2-1080p\",\n \"duration\": 4,\n \"resolution\": \"1080p\",\n \"ratio\": \"1:1\",\n \"content\": [\n {\n \"type\": \"text\",\n \"text\": \"以 \u003c\u003c\u003cimage_1>>> 的彩色积木为主体,参考 \u003c\u003c\u003cvideo_1>>> 的缓慢转动及 \u003c\u003c\u003caudio_1>>> 的轻柔节奏。\"\n },\n {\n \"type\": \"image_url\",\n \"image_url\": {\n \"url\": \"https://example.com/blocks.png\"\n },\n \"role\": \"reference_image\"\n },\n {\n \"type\": \"video_url\",\n \"video_url\": {\n \"url\": \"https://example.com/rotation.mp4\"\n },\n \"role\": \"reference_video\"\n },\n {\n \"type\": \"audio_url\",\n \"audio_url\": {\n \"url\": \"https://example.com/rhythm.wav\"\n },\n \"role\": \"reference_audio\"\n }\n ]\n}\n```\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/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ách gọi Kling 4.0: `kling-4.0` (720p) và `kling-4.0-1080p` cùng hỗ trợ định dạng Seedance `content/duration/resolution/ratio/mode`, `contents/settings/options` và định dạng video OpenAI; hai điểm truy cập video thống nhất có thể dùng chung phần thân yêu cầu. Độ phân giải phải khớp với tên mô hình. Kling 4.0 có thể dùng trực tiếp các trường content/duration/resolution/ratio/mode của định dạng Seedance, hoặc các trường prompt/seconds/size/input_reference của định dạng video OpenAI; cả hai đều không cần thêm contents/settings/options. mode có thể là t2v (chỉ văn bản), i2v (một khung hình đầu), i2v_first_last (khung hình đầu và cuối), reference_images (ảnh tham chiếu thông thường), reference_material (tham chiếu tư liệu đa năng; âm thanh phải dùng tuyến hỗ trợ khả năng này). Nếu bỏ qua mode và không chỉ định công cụ, mặc định dùng reference_material khi có tư liệu tham chiếu, và dùng t2v khi không có tư liệu tham chiếu. 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; với khung hình đầu và cuối, hãy chọn rõ i2v hoặc i2v_first_last và bỏ qua tham số tỷ lệ khung hình. Kling 4.0 mặc định tạo đồng thời âm thanh và hình ảnh. Chế độ tham chiếu đa năng hỗ trợ URL âm thanh công khai: /v1/videos sử dụng audio_urls, còn Seedance sử dụng mục audio_url trong content; cần dùng tuyến hỗ trợ tư liệu âm thanh. Ba điểm truy cập chuyên dụng nguyên bản hiện không nhận các trường âm thanh tham chiếu.\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.\n\n### Magi-2 1080p\n\n`magi-2-1080p` hỗ trợ hai định dạng OpenAI `/v1/videos` và Ark `/api/v3/contents/generations/tasks`, có thể truy vấn lần lượt qua `GET /{task_id}` của đường dẫn tương ứng. Độ phân giải cố định là 1080p, thời lượng tạo từ 4 đến 30 giây. Hỗ trợ các tỷ lệ khung hình 16:9, 9:16, 1:1, 4:3, 3:4 và 21:9; đầu ra tỷ lệ 1:1 có kích thước 1440×1440. Chế độ tham chiếu hỗ trợ tối đa 10 ảnh, 5 video và 5 đoạn âm thanh, tổng cộng 20 tài nguyên. Mỗi video và đoạn âm thanh có thời lượng từ 2 đến 30 giây; tổng thời lượng của tất cả video không quá 30 giây, và tổng thời lượng của tất cả âm thanh cũng không quá 30 giây. Kích thước tối đa của ảnh là 30 MB, video là 200 MB và âm thanh là 15 MB. Chế độ khung hình đầu và cuối không thể kết hợp với các ảnh, video hoặc âm thanh tham chiếu khác. Trong câu lệnh, có thể dùng `\u003c\u003c\u003cimage_1>>>`, `\u003c\u003c\u003cvideo_1>>>` và `\u003c\u003c\u003caudio_1>>>` để tham chiếu tài nguyên theo thứ tự nhập của từng loại. Hiện chưa cung cấp lối truy cập riêng cho định dạng chính thức của sand.ai.\n\n```json\n{\n \"model\": \"magi-2-1080p\",\n \"duration\": 4,\n \"resolution\": \"1080p\",\n \"ratio\": \"1:1\",\n \"content\": [\n {\n \"type\": \"text\",\n \"text\": \"以 \u003c\u003c\u003cimage_1>>> 的彩色积木为主体,参考 \u003c\u003c\u003cvideo_1>>> 的缓慢转动及 \u003c\u003c\u003caudio_1>>> 的轻柔节奏。\"\n },\n {\n \"type\": \"image_url\",\n \"image_url\": {\n \"url\": \"https://example.com/blocks.png\"\n },\n \"role\": \"reference_image\"\n },\n {\n \"type\": \"video_url\",\n \"video_url\": {\n \"url\": \"https://example.com/rotation.mp4\"\n },\n \"role\": \"reference_video\"\n },\n {\n \"type\": \"audio_url\",\n \"audio_url\": {\n \"url\": \"https://example.com/rhythm.wav\"\n },\n \"role\": \"reference_audio\"\n }\n ]\n}\n```\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```","operationId":"create__seedance__task","tags":["Tạo video Seedance"],"requestBody":"b768f893-1196-4f90-984c-e80942606d11","responses":{"200":"8b672279-fff4-4e26-ba63-fd872bf7d681"},"security":["8eddbc2f-5a62-49f5-aece-3f80143180fe"],"x-mint":{"href":"/api-reference/vi/tạo-video-seedance/tạo-video(seedance)"},"method":"post","type":"path","servers":["38b9786d-295e-4d4d-8d8c-34e160a28b04"],"path":"/api/v3/contents/generations/tasks","baseUrlOptions":["https://api.newapi.si"],"title":"Tạo video(Seedance)","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["model"],"properties":{"model":{"type":"string","example":"doubao-seedance-2-0-260128","enum":["kling-4.0","kling-4.0-1080p","vidu-q4","vidu-q4-540p","magi-2-1080p","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","sd-2-5-4k","sd-2-5-flash","sd-2-5-flash-480p","minimax-h3","hailuo-2.3","wan-3.0-prime","wan-3.0-prime-1080p","happyhorse-1.1","happyhorse-1.1-1080p","gemini-omni"],"description":"Bắt buộc. Tên mô hình. Có thể truyền mô hình bên ngoài Seedance, Kling 4.0, Vidu Q4, `gemini-omni`, `minimax-h3` hoặc `hailuo-2.3`.","isRequired":true,"uniqueKey":"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":"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":"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":"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":"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":"content.items.[INDEX].image_url.oneOf.1.url","typeLabel":"string"}},"uniqueKey":"content.items.[INDEX].image_url.oneOf.1","typeLabel":"object"}],"uniqueKey":"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":"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":"content.items.[INDEX].video_url.oneOf.1.url","typeLabel":"string"}},"uniqueKey":"content.items.[INDEX].video_url.oneOf.1","typeLabel":"object"}],"uniqueKey":"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":"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":"content.items.[INDEX].audio_url.oneOf.1.url","typeLabel":"string"}},"uniqueKey":"content.items.[INDEX].audio_url.oneOf.1","typeLabel":"object"}],"uniqueKey":"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":"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":"content.items.[INDEX].name","typeLabel":"string"}},"uniqueKey":"content.items.[INDEX]","typeLabel":"object"},"uniqueKey":"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":"contents.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"text":{"type":"string","description":"Mô tả văn bản khi type=prompt.","uniqueKey":"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":"contents.items.[INDEX].url","typeLabel":"string\u003curi>"}},"uniqueKey":"contents.items.[INDEX]","typeLabel":"object"},"uniqueKey":"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":"settings.duration","typeLabel":"integer"},"resolution":{"type":"string","enum":["720p","1080p"],"uniqueKey":"settings.resolution","typeLabel":"enum\u003cstring>"},"aspect_ratio":{"type":"string","enum":["21:9","16:9","9:16","1:1"],"uniqueKey":"settings.aspect_ratio","typeLabel":"enum\u003cstring>"}},"uniqueKey":"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":"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":"function_mode","typeLabel":"string"},"mode":{"type":"string","description":"Không bắt buộc. Các trường chế độ tương thích, chẳng hạn `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 với content/duration/resolution/ratio/mode hoặc định dạng video OpenAI với prompt/seconds/size/input_reference; cả hai đều không cần thêm contents/settings/options. mode có thể là t2v (chỉ văn bản), i2v (một khung hình đầu), i2v_first_last (khung hình đầu và cuối), reference_images (ảnh tham chiếu thông thường), reference_material (tham chiếu tư liệu đa năng; âm thanh cần dùng tuyến hỗ trợ khả năng này). Nếu bỏ qua mode và không chỉ định công cụ, mặc định là reference_material khi có tư liệu tham chiếu, và t2v khi không có tư liệu tham chiếu. Chế độ tham chiếu sử dụng vai trò ảnh tham chiếu thông thường; không tự ý chuyển khung hình đầu và cuối được chỉ định rõ ràng thành ảnh tham chiếu. Với khung hình đầu và cuối, hãy chọn rõ i2v hoặc i2v_first_last và bỏ qua tham số tỷ lệ khung hình. Kling 4.0 mặc định tạo đồng thời âm thanh và hình ảnh. Chế độ tham chiếu đa năng hỗ trợ URL âm thanh công khai: /v1/videos dùng audio_urls, còn Seedance dùng mục audio_url trong content; cần sử dụng tuyến hỗ trợ tư liệu âm thanh. Hiện tại, ba điểm cuối chuyên dụng gốc không nhận trường âm thanh tham chiếu.","example":"reference_material","x-kling-modes":["t2v","i2v","i2v_first_last","reference_images","reference_material"],"uniqueKey":"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":"image_url","typeLabel":"string"},"image_urls":{"type":"array","items":{"type":"string","uniqueKey":"image_urls.items.[INDEX]","typeLabel":"string"},"description":"Tùy chọn. Danh sách URL của nhiều ảnh tham chiếu.","uniqueKey":"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":"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":"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":"last_image_url","typeLabel":"string"},"video_urls":{"type":"array","items":{"type":"string","uniqueKey":"video_urls.items.[INDEX]","typeLabel":"string"},"description":"Tùy chọn. Danh sách URL video tham chiếu.","uniqueKey":"video_urls","typeLabel":"string[]"},"audio_urls":{"type":"array","items":{"type":"string","format":"uri","uniqueKey":"audio_urls.items.[INDEX]","typeLabel":"string\u003curi>"},"description":"Tùy chọn. Danh sách URL âm thanh tham chiếu.","uniqueKey":"audio_urls","typeLabel":"string\u003curi>[]"},"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":"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":"seconds.oneOf.1","typeLabel":"string"}],"uniqueKey":"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":"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":"duration.oneOf.1","typeLabel":"string"}],"uniqueKey":"duration","typeLabel":"number | string"},"aspect_ratio":{"type":"string","description":"Tùy chọn. Tỷ lệ khung hình, ví dụ: `16:9`.","uniqueKey":"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":"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":"size","typeLabel":"string"},"quality":{"type":"string","description":"Tùy chọn. Cấu hình chất lượng tạo.","uniqueKey":"quality","typeLabel":"string"},"resolution":{"type":"string","description":"Tùy chọn. Độ phân giải đầu ra.","uniqueKey":"resolution","typeLabel":"string"},"fps":{"type":"number","description":"Tùy chọn. Tốc độ khung hình.","uniqueKey":"fps","typeLabel":"number"},"generate_audio":{"type":"boolean","description":"Tùy chọn. Có tạo âm thanh hay không.","uniqueKey":"generate_audio","typeLabel":"boolean"},"watermark":{"type":"boolean","description":"Tùy chọn. Có thêm hình mờ (watermark) hay không.","uniqueKey":"watermark","typeLabel":"boolean"}},"uniqueKey":"","typeLabel":"object"},"examples":{"kling_4_seedance_reference_material":{"title":"kling_4_seedance_reference_material","summary":"Kling 4.0 720p Seedance · Tham chiếu tư liệu mặc định","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","summary":"Kling 4.0 720p Seedance · Văn bản thuần túy","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","summary":"Kling 4.0 720p Seedance · Tạo từ hình ảnh khung hình đầu tiên","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","summary":"Kling 4.0 720p Seedance · Khung hình đầu và cuối","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","summary":"Kling 4.0 720p Seedance · Ảnh tham chiếu","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","summary":"Kling 4.0 1080p Seedance · Tham chiếu tư liệu mặc định","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","summary":"Kling 4.0 1080p Seedance · Văn bản thuần túy","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","summary":"Kling 4.0 1080p Seedance · Tạo từ ảnh khung hình đầu tiên","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","summary":"Kling 4.0 1080p Seedance · Khung hình đầu và cuối","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","summary":"Kling 4.0 1080p Seedance · Ảnh tham chiếu","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","summary":"Kling 4.0 Tạo tham chiếu 720p (tương thích với phong bì cũ)","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_reference_audio":{"title":"kling_4_reference_audio","summary":"Kling 4.0 720p URL âm thanh tham chiếu đa năng","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"},{"type":"audio_url","audio_url":{"url":"https://example.com/reference.mp3"},"role":"reference_audio"}],"ratio":"16:9"}},"kling_4_ark_contents_1080p":{"title":"kling_4_ark_contents_1080p","summary":"Kling 4.0 tạo tham chiếu 1080p (tương thích với phong bì cũ)","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":{}}},"kling_4_reference_audio_1080p":{"title":"kling_4_reference_audio_1080p","summary":"URL âm thanh tham chiếu toàn năng Kling 4.0 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"},{"type":"audio_url","audio_url":{"url":"https://example.com/reference.mp3"},"role":"reference_audio"}],"ratio":"16:9"}},"vidu_q4_seedance_720p_reference":{"title":"vidu_q4_seedance_720p_reference","summary":"Vidu Q4 720p tham chiếu nhiều ảnh / âm thanh","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","summary":"Vidu Q4 540p tham chiếu nhiều ảnh / âm thanh","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"}]}},"magi_2_1080p_seedance":{"title":"magi_2_1080p_seedance","summary":"Tham chiếu hình ảnh/video/âm thanh Magi-2 1080p","value":{"model":"magi-2-1080p","duration":4,"resolution":"1080p","ratio":"1:1","content":[{"type":"text","text":"以 \u003c\u003c\u003cimage_1>>> 的彩色积木为主体,参考 \u003c\u003c\u003cvideo_1>>> 的缓慢转动及 \u003c\u003c\u003caudio_1>>> 的轻柔节奏。"},{"type":"image_url","image_url":{"url":"https://example.com/blocks.png"},"role":"reference_image"},{"type":"video_url","video_url":{"url":"https://example.com/rotation.mp4"},"role":"reference_video"},{"type":"audio_url","audio_url":{"url":"https://example.com/rhythm.wav"},"role":"reference_audio"}]}},"seedance_sd25_mixed_content":{"title":"seedance_sd25_mixed_content","summary":"Seedance 2.5 Tham chiếu kết hợp hình ảnh/video/âm thanh","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","summary":"Seedance nội dung nhiệm vụ","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","summary":"Nhiệm vụ nội dung MiniMax H3","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","summary":"Hailuo 2.3 Tạo video từ ảnh khung đầu tiên","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"}},"canvas_ark_tier":{"title":"canvas_ark_tier","summary":"Tác vụ video có độ phân giải cố định","value":{"model":"wan-3.0-prime","content":[{"type":"text","text":"Gentle waves rolling onto a beach."}],"duration":5,"ratio":"16:9"}},"gemini_omni_seedance_t2v":{"title":"gemini_omni_seedance_t2v","summary":"Gemini Omni 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","summary":"Gemini Omni 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","summary":"Gemini Omni 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"}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"8b672279-fff4-4e26-ba63-fd872bf7d681":{"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":{"8eddbc2f-5a62-49f5-aece-3f80143180fe":{"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":{"38b9786d-295e-4d4d-8d8c-34e160a28b04":{"url":"https://api.newapi.si"}},"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":"kxx","siteName":"NewAPIs","title":"Tạo video(Seedance) - NewAPIs","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"cn":{"href":"/api-reference/cn/conventions","matchLevel":4},"en":{"href":"/api-reference/en/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-12-03T06:59:25.181Z","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ách gọi Kling 4.0: kling-4.0 (720p) và kling-4.0-1080p cùng hỗ trợ định dạng Seedance content/duration/resolution/ratio/mode, contents/settings/options và định dạng video OpenAI; hai điểm truy cập video thống nhất có thể dùng chung phần thân yêu cầu. Độ phân giải phải khớp với tên mô hình. Kling 4.0 có thể dùng trực tiếp các trường content/duration/resolution/ratio/mode của định dạng Seedance, hoặc các trường prompt/seconds/size/input_reference của định dạng video OpenAI; cả hai đều không cần thêm contents/settings/options. mode có thể là t2v (chỉ văn bản), i2v (một khung hình đầu), i2v_first_last (khung hình đầu và cuối), reference_images (ảnh tham chiếu thông thường), reference_material (tham chiếu tư liệu đa năng; âm thanh phải dùng tuyến hỗ trợ khả năng này). Nếu bỏ qua mode và không chỉ định công cụ, mặc định dùng reference_material khi có tư liệu tham chiếu, và dùng t2v khi không có tư liệu tham chiếu. 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; với khung hình đầu và cuối, hãy chọn rõ i2v hoặc i2v_first_last và bỏ qua tham số tỷ lệ khung hình. Kling 4.0 mặc định tạo đồng thời âm thanh và hình ảnh. Chế độ tham chiếu đa năng hỗ trợ URL âm thanh công khai: /v1/videos sử dụng audio_urls, còn Seedance sử dụng mục audio_url trong content; cần dùng tuyến hỗ trợ tư liệu âm thanh. Ba điểm truy cập chuyên dụng nguyên bản hiện không nhận các trường âm thanh tham chiếu. 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. ### Magi-2 1080p magi-2-1080p hỗ trợ hai định dạng OpenAI /v1/videos và Ark /api/v3/contents/generations/tasks, có thể truy vấn lần lượt qua GET /{task_id} của đường dẫn tương ứng. Độ phân giải cố định là 1080p, thời lượng tạo từ 4 đến 30 giây. Hỗ trợ các tỷ lệ khung hình 16:9, 9:16, 1:1, 4:3, 3:4 và 21:9; đầu ra tỷ lệ 1:1 có kích thước 1440×1440. Chế độ tham chiếu hỗ trợ tối đa 10 ảnh, 5 video và 5 đoạn âm thanh, tổng cộng 20 tài nguyên. Mỗi video và đoạn âm thanh có thời lượng từ 2 đến 30 giây; tổng thời lượng của tất cả video không quá 30 giây, và tổng thời lượng của tất cả âm thanh cũng không quá 30 giây. Kích thước tối đa của ảnh là 30 MB, video là 200 MB và âm thanh là 15 MB. Chế độ khung hình đầu và cuối không thể kết hợp với các ảnh, video hoặc âm thanh tham chiếu khác. Trong câu lệnh, có thể dùng \u0026lt;\u0026lt;\u0026gt;\u0026gt;, \u0026lt;\u0026lt;\u0026gt;\u0026gt; và \u0026lt;\u0026lt;\u0026gt;\u0026gt; để tham chiếu tài nguyên theo thứ tự nhập của từng loại. Hiện chưa cung cấp lối truy cập riêng cho định dạng chính thức của sand.ai. json { \u0026quot;model\u0026quot;: \u0026quot;magi-2-1080p\u0026quot;, \u0026quot;duration\u0026quot;: 4, \u0026quot;resolution\u0026quot;: \u0026quot;1080p\u0026quot;, \u0026quot;ratio\u0026quot;: \u0026quot;1:1\u0026quot;, \u0026quot;content\u0026quot;: [ { \u0026quot;type\u0026quot;: \u0026quot;text\u0026quot;, \u0026quot;text\u0026quot;: \u0026quot;以 \u0026lt;\u0026lt;\u0026gt;\u0026gt; 的彩色积木为主体,参考 \u0026lt;\u0026lt;\u0026gt;\u0026gt; 的缓慢转动及 \u0026lt;\u0026lt;\u0026gt;\u0026gt; 的轻柔节奏。\u0026quot; }, { \u0026quot;type\u0026quot;: \u0026quot;image_url\u0026quot;, \u0026quot;image_url\u0026quot;: { \u0026quot;url\u0026quot;: \u0026quot;https://example.com/blocks.png\u0026quot; }, \u0026quot;role\u0026quot;: \u0026quot;reference_image\u0026quot; }, { \u0026quot;type\u0026quot;: \u0026quot;video_url\u0026quot;, \u0026quot;video_url\u0026quot;: { \u0026quot;url\u0026quot;: \u0026quot;https://example.com/rotation.mp4\u0026quot; }, \u0026quot;role\u0026quot;: \u0026quot;reference_video\u0026quot; }, { \u0026quot;type\u0026quot;: \u0026quot;audio_url\u0026quot;, \u0026quot;audio_url\u0026quot;: { \u0026quot;url\u0026quot;: \u0026quot;https://example.com/rhythm.wav\u0026quot; }, \u0026quot;role\u0026quot;: \u0026quot;reference_audio\u0026quot; } ] } 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; } } ``\">\u003cmeta data-mint-head name=\"application-name\" content=\"NewAPIs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/kxx/DXXD4kRXFD8j4qVt/_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/kxx/DXXD4kRXFD8j4qVt/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/kxx/DXXD4kRXFD8j4qVt/_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/kxx/DXXD4kRXFD8j4qVt/_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/kxx/DXXD4kRXFD8j4qVt/_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/kxx/DXXD4kRXFD8j4qVt/_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/kxx/DXXD4kRXFD8j4qVt/_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/kxx/DXXD4kRXFD8j4qVt/_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/kxx/DXXD4kRXFD8j4qVt/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Tạo video(Seedance) - NewAPIs\">\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ách gọi Kling 4.0: kling-4.0 (720p) và kling-4.0-1080p cùng hỗ trợ định dạng Seedance content/duration/resolution/ratio/mode, contents/settings/options và định dạng video OpenAI; hai điểm truy cập video thống nhất có thể dùng chung phần thân yêu cầu. Độ phân giải phải khớp với tên mô hình. Kling 4.0 có thể dùng trực tiếp các trường content/duration/resolution/ratio/mode của định dạng Seedance, hoặc các trường prompt/seconds/size/input_reference của định dạng video OpenAI; cả hai đều không cần thêm contents/settings/options. mode có thể là t2v (chỉ văn bản), i2v (một khung hình đầu), i2v_first_last (khung hình đầu và cuối), reference_images (ảnh tham chiếu thông thường), reference_material (tham chiếu tư liệu đa năng; âm thanh phải dùng tuyến hỗ trợ khả năng này). Nếu bỏ qua mode và không chỉ định công cụ, mặc định dùng reference_material khi có tư liệu tham chiếu, và dùng t2v khi không có tư liệu tham chiếu. 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; với khung hình đầu và cuối, hãy chọn rõ i2v hoặc i2v_first_last và bỏ qua tham số tỷ lệ khung hình. Kling 4.0 mặc định tạo đồng thời âm thanh và hình ảnh. Chế độ tham chiếu đa năng hỗ trợ URL âm thanh công khai: /v1/videos sử dụng audio_urls, còn Seedance sử dụng mục audio_url trong content; cần dùng tuyến hỗ trợ tư liệu âm thanh. Ba điểm truy cập chuyên dụng nguyên bản hiện không nhận các trường âm thanh tham chiếu. 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. ### Magi-2 1080p magi-2-1080p hỗ trợ hai định dạng OpenAI /v1/videos và Ark /api/v3/contents/generations/tasks, có thể truy vấn lần lượt qua GET /{task_id} của đường dẫn tương ứng. Độ phân giải cố định là 1080p, thời lượng tạo từ 4 đến 30 giây. Hỗ trợ các tỷ lệ khung hình 16:9, 9:16, 1:1, 4:3, 3:4 và 21:9; đầu ra tỷ lệ 1:1 có kích thước 1440×1440. Chế độ tham chiếu hỗ trợ tối đa 10 ảnh, 5 video và 5 đoạn âm thanh, tổng cộng 20 tài nguyên. Mỗi video và đoạn âm thanh có thời lượng từ 2 đến 30 giây; tổng thời lượng của tất cả video không quá 30 giây, và tổng thời lượng của tất cả âm thanh cũng không quá 30 giây. Kích thước tối đa của ảnh là 30 MB, video là 200 MB và âm thanh là 15 MB. Chế độ khung hình đầu và cuối không thể kết hợp với các ảnh, video hoặc âm thanh tham chiếu khác. Trong câu lệnh, có thể dùng \u0026lt;\u0026lt;\u0026gt;\u0026gt;, \u0026lt;\u0026lt;\u0026gt;\u0026gt; và \u0026lt;\u0026lt;\u0026gt;\u0026gt; để tham chiếu tài nguyên theo thứ tự nhập của từng loại. Hiện chưa cung cấp lối truy cập riêng cho định dạng chính thức của sand.ai. json { \u0026quot;model\u0026quot;: \u0026quot;magi-2-1080p\u0026quot;, \u0026quot;duration\u0026quot;: 4, \u0026quot;resolution\u0026quot;: \u0026quot;1080p\u0026quot;, \u0026quot;ratio\u0026quot;: \u0026quot;1:1\u0026quot;, \u0026quot;content\u0026quot;: [ { \u0026quot;type\u0026quot;: \u0026quot;text\u0026quot;, \u0026quot;text\u0026quot;: \u0026quot;以 \u0026lt;\u0026lt;\u0026gt;\u0026gt; 的彩色积木为主体,参考 \u0026lt;\u0026lt;\u0026gt;\u0026gt; 的缓慢转动及 \u0026lt;\u0026lt;\u0026gt;\u0026gt; 的轻柔节奏。\u0026quot; }, { \u0026quot;type\u0026quot;: \u0026quot;image_url\u0026quot;, \u0026quot;image_url\u0026quot;: { \u0026quot;url\u0026quot;: \u0026quot;https://example.com/blocks.png\u0026quot; }, \u0026quot;role\u0026quot;: \u0026quot;reference_image\u0026quot; }, { \u0026quot;type\u0026quot;: \u0026quot;video_url\u0026quot;, \u0026quot;video_url\u0026quot;: { \u0026quot;url\u0026quot;: \u0026quot;https://example.com/rotation.mp4\u0026quot; }, \u0026quot;role\u0026quot;: \u0026quot;reference_video\u0026quot; }, { \u0026quot;type\u0026quot;: \u0026quot;audio_url\u0026quot;, \u0026quot;audio_url\u0026quot;: { \u0026quot;url\u0026quot;: \u0026quot;https://example.com/rhythm.wav\u0026quot; }, \u0026quot;role\u0026quot;: \u0026quot;reference_audio\u0026quot; } ] } 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; } } ``\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"NewAPIs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.newapi.si/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://kxx.mintlify.site/_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=4dfd4e267cb656e9f9f9f259\u0026amp;signature=ba0bba3bdf21d256e8303872b5d64b4319c87fde6c6191bbbbc67617f9627bc4\">\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) - NewAPIs\">\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ách gọi Kling 4.0: kling-4.0 (720p) và kling-4.0-1080p cùng hỗ trợ định dạng Seedance content/duration/resolution/ratio/mode, contents/settings/options và định dạng video OpenAI; hai điểm truy cập video thống nhất có thể dùng chung phần thân yêu cầu. Độ phân giải phải khớp với tên mô hình. Kling 4.0 có thể dùng trực tiếp các trường content/duration/resolution/ratio/mode của định dạng Seedance, hoặc các trường prompt/seconds/size/input_reference của định dạng video OpenAI; cả hai đều không cần thêm contents/settings/options. mode có thể là t2v (chỉ văn bản), i2v (một khung hình đầu), i2v_first_last (khung hình đầu và cuối), reference_images (ảnh tham chiếu thông thường), reference_material (tham chiếu tư liệu đa năng; âm thanh phải dùng tuyến hỗ trợ khả năng này). Nếu bỏ qua mode và không chỉ định công cụ, mặc định dùng reference_material khi có tư liệu tham chiếu, và dùng t2v khi không có tư liệu tham chiếu. 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; với khung hình đầu và cuối, hãy chọn rõ i2v hoặc i2v_first_last và bỏ qua tham số tỷ lệ khung hình. Kling 4.0 mặc định tạo đồng thời âm thanh và hình ảnh. Chế độ tham chiếu đa năng hỗ trợ URL âm thanh công khai: /v1/videos sử dụng audio_urls, còn Seedance sử dụng mục audio_url trong content; cần dùng tuyến hỗ trợ tư liệu âm thanh. Ba điểm truy cập chuyên dụng nguyên bản hiện không nhận các trường âm thanh tham chiếu. 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. ### Magi-2 1080p magi-2-1080p hỗ trợ hai định dạng OpenAI /v1/videos và Ark /api/v3/contents/generations/tasks, có thể truy vấn lần lượt qua GET /{task_id} của đường dẫn tương ứng. Độ phân giải cố định là 1080p, thời lượng tạo từ 4 đến 30 giây. Hỗ trợ các tỷ lệ khung hình 16:9, 9:16, 1:1, 4:3, 3:4 và 21:9; đầu ra tỷ lệ 1:1 có kích thước 1440×1440. Chế độ tham chiếu hỗ trợ tối đa 10 ảnh, 5 video và 5 đoạn âm thanh, tổng cộng 20 tài nguyên. Mỗi video và đoạn âm thanh có thời lượng từ 2 đến 30 giây; tổng thời lượng của tất cả video không quá 30 giây, và tổng thời lượng của tất cả âm thanh cũng không quá 30 giây. Kích thước tối đa của ảnh là 30 MB, video là 200 MB và âm thanh là 15 MB. Chế độ khung hình đầu và cuối không thể kết hợp với các ảnh, video hoặc âm thanh tham chiếu khác. Trong câu lệnh, có thể dùng \u0026lt;\u0026lt;\u0026gt;\u0026gt;, \u0026lt;\u0026lt;\u0026gt;\u0026gt; và \u0026lt;\u0026lt;\u0026gt;\u0026gt; để tham chiếu tài nguyên theo thứ tự nhập của từng loại. Hiện chưa cung cấp lối truy cập riêng cho định dạng chính thức của sand.ai. json { \u0026quot;model\u0026quot;: \u0026quot;magi-2-1080p\u0026quot;, \u0026quot;duration\u0026quot;: 4, \u0026quot;resolution\u0026quot;: \u0026quot;1080p\u0026quot;, \u0026quot;ratio\u0026quot;: \u0026quot;1:1\u0026quot;, \u0026quot;content\u0026quot;: [ { \u0026quot;type\u0026quot;: \u0026quot;text\u0026quot;, \u0026quot;text\u0026quot;: \u0026quot;以 \u0026lt;\u0026lt;\u0026gt;\u0026gt; 的彩色积木为主体,参考 \u0026lt;\u0026lt;\u0026gt;\u0026gt; 的缓慢转动及 \u0026lt;\u0026lt;\u0026gt;\u0026gt; 的轻柔节奏。\u0026quot; }, { \u0026quot;type\u0026quot;: \u0026quot;image_url\u0026quot;, \u0026quot;image_url\u0026quot;: { \u0026quot;url\u0026quot;: \u0026quot;https://example.com/blocks.png\u0026quot; }, \u0026quot;role\u0026quot;: \u0026quot;reference_image\u0026quot; }, { \u0026quot;type\u0026quot;: \u0026quot;video_url\u0026quot;, \u0026quot;video_url\u0026quot;: { \u0026quot;url\u0026quot;: \u0026quot;https://example.com/rotation.mp4\u0026quot; }, \u0026quot;role\u0026quot;: \u0026quot;reference_video\u0026quot; }, { \u0026quot;type\u0026quot;: \u0026quot;audio_url\u0026quot;, \u0026quot;audio_url\u0026quot;: { \u0026quot;url\u0026quot;: \u0026quot;https://example.com/rhythm.wav\u0026quot; }, \u0026quot;role\u0026quot;: \u0026quot;reference_audio\u0026quot; } ] } 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; } } ``\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://kxx.mintlify.site/_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=4dfd4e267cb656e9f9f9f259\u0026amp;signature=ba0bba3bdf21d256e8303872b5d64b4319c87fde6c6191bbbbc67617f9627bc4\">\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/kxx/DXXD4kRXFD8j4qVt/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"NewAPIs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#6d28d9\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.newapi.si/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.newapi.si/#organization\",\"name\":\"NewAPIs\",\"url\":\"https://docs.newapi.si\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/kxx/tvEBYKW9jCEn__pG/public/assets/logo.webp?fit=max\u0026auto=format\u0026n=tvEBYKW9jCEn__pG\u0026q=85\u0026s=8d30279d53dca1ddb9765ec06ca39d39\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.newapi.si#website\",\"name\":\"NewAPIs\",\"url\":\"https://docs.newapi.si\",\"publisher\":{\"@id\":\"https://docs.newapi.si/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.newapi.si/api-reference/vi/t%E1%BA%A1o-video-seedance/t%E1%BA%A1o-video%EF%BC%88seedance%EF%BC%89#webpage\",\"url\":\"https://docs.newapi.si/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ách gọi Kling 4.0: kling-4.0 (720p) và kling-4.0-1080p cùng hỗ trợ định dạng Seedance content/duration/resolution/ratio/mode, contents/settings/options và định dạng video OpenAI; hai điểm truy cập video thống nhất có thể dùng chung phần thân yêu cầu. Độ phân giải phải khớp với tên mô hình. Kling 4.0 có thể dùng trực tiếp các trường content/duration/resolution/ratio/mode của định dạng Seedance, hoặc các trường prompt/seconds/size/input_reference của định dạng video OpenAI; cả hai đều không cần thêm contents/settings/options. mode có thể là t2v (chỉ văn bản), i2v (một khung hình đầu), i2v_first_last (khung hình đầu và cuối), reference_images (ảnh tham chiếu thông thường), reference_material (tham chiếu tư liệu đa năng; âm thanh phải dùng tuyến hỗ trợ khả năng này). Nếu bỏ qua mode và không chỉ định công cụ, mặc định dùng reference_material khi có tư liệu tham chiếu, và dùng t2v khi không có tư liệu tham chiếu. 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; với khung hình đầu và cuối, hãy chọn rõ i2v hoặc i2v_first_last và bỏ qua tham số tỷ lệ khung hình. Kling 4.0 mặc định tạo đồng thời âm thanh và hình ảnh. Chế độ tham chiếu đa năng hỗ trợ URL âm thanh công khai: /v1/videos sử dụng audio_urls, còn Seedance sử dụng mục audio_url trong content; cần dùng tuyến hỗ trợ tư liệu âm thanh. Ba điểm truy cập chuyên dụng nguyên bản hiện không nhận các trường âm thanh tham chiếu. 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. ### Magi-2 1080p magi-2-1080p hỗ trợ hai định dạng OpenAI /v1/videos và Ark /api/v3/contents/generations/tasks, có thể truy vấn lần lượt qua GET /{task_id} của đường dẫn tương ứng. Độ phân giải cố định là 1080p, thời lượng tạo từ 4 đến 30 giây. Hỗ trợ các tỷ lệ khung hình 16:9, 9:16, 1:1, 4:3, 3:4 và 21:9; đầu ra tỷ lệ 1:1 có kích thước 1440×1440. Chế độ tham chiếu hỗ trợ tối đa 10 ảnh, 5 video và 5 đoạn âm thanh, tổng cộng 20 tài nguyên. Mỗi video và đoạn âm thanh có thời lượng từ 2 đến 30 giây; tổng thời lượng của tất cả video không quá 30 giây, và tổng thời lượng của tất cả âm thanh cũng không quá 30 giây. Kích thước tối đa của ảnh là 30 MB, video là 200 MB và âm thanh là 15 MB. Chế độ khung hình đầu và cuối không thể kết hợp với các ảnh, video hoặc âm thanh tham chiếu khác. Trong câu lệnh, có thể dùng \\u003c\\u003c>>, \\u003c\\u003c>> và \\u003c\\u003c>> để tham chiếu tài nguyên theo thứ tự nhập của từng loại. Hiện chưa cung cấp lối truy cập riêng cho định dạng chính thức của sand.ai. json { \\\"model\\\": \\\"magi-2-1080p\\\", \\\"duration\\\": 4, \\\"resolution\\\": \\\"1080p\\\", \\\"ratio\\\": \\\"1:1\\\", \\\"content\\\": [ { \\\"type\\\": \\\"text\\\", \\\"text\\\": \\\"以 \\u003c\\u003c>> 的彩色积木为主体,参考 \\u003c\\u003c>> 的缓慢转动及 \\u003c\\u003c>> 的轻柔节奏。\\\" }, { \\\"type\\\": \\\"image_url\\\", \\\"image_url\\\": { \\\"url\\\": \\\"https://example.com/blocks.png\\\" }, \\\"role\\\": \\\"reference_image\\\" }, { \\\"type\\\": \\\"video_url\\\", \\\"video_url\\\": { \\\"url\\\": \\\"https://example.com/rotation.mp4\\\" }, \\\"role\\\": \\\"reference_video\\\" }, { \\\"type\\\": \\\"audio_url\\\", \\\"audio_url\\\": { \\\"url\\\": \\\"https://example.com/rhythm.wav\\\" }, \\\"role\\\": \\\"reference_audio\\\" } ] } 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\\\" } } ``\",\"dateModified\":\"2026-12-03T06:59:25.181Z\",\"isPartOf\":{\"@id\":\"https://docs.newapi.si#website\"},\"breadcrumb\":{\"@id\":\"https://docs.newapi.si/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.newapi.si/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\":\"NewAPIs\",\"item\":\"https://docs.newapi.si\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Tạo video(Seedance)\",\"item\":\"https://docs.newapi.si/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.newapi.si/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ách gọi Kling 4.0: kling-4.0 (720p) và kling-4.0-1080p cùng hỗ trợ định dạng Seedance content/duration/resolution/ratio/mode, contents/settings/options và định dạng video OpenAI; hai điểm truy cập video thống nhất có thể dùng chung phần thân yêu cầu. Độ phân giải phải khớp với tên mô hình. Kling 4.0 có thể dùng trực tiếp các trường content/duration/resolution/ratio/mode của định dạng Seedance, hoặc các trường prompt/seconds/size/input_reference của định dạng video OpenAI; cả hai đều không cần thêm contents/settings/options. mode có thể là t2v (chỉ văn bản), i2v (một khung hình đầu), i2v_first_last (khung hình đầu và cuối), reference_images (ảnh tham chiếu thông thường), reference_material (tham chiếu tư liệu đa năng; âm thanh phải dùng tuyến hỗ trợ khả năng này). Nếu bỏ qua mode và không chỉ định công cụ, mặc định dùng reference_material khi có tư liệu tham chiếu, và dùng t2v khi không có tư liệu tham chiếu. 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; với khung hình đầu và cuối, hãy chọn rõ i2v hoặc i2v_first_last và bỏ qua tham số tỷ lệ khung hình. Kling 4.0 mặc định tạo đồng thời âm thanh và hình ảnh. Chế độ tham chiếu đa năng hỗ trợ URL âm thanh công khai: /v1/videos sử dụng audio_urls, còn Seedance sử dụng mục audio_url trong content; cần dùng tuyến hỗ trợ tư liệu âm thanh. Ba điểm truy cập chuyên dụng nguyên bản hiện không nhận các trường âm thanh tham chiếu. 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. ### Magi-2 1080p magi-2-1080p hỗ trợ hai định dạng OpenAI /v1/videos và Ark /api/v3/contents/generations/tasks, có thể truy vấn lần lượt qua GET /{task_id} của đường dẫn tương ứng. Độ phân giải cố định là 1080p, thời lượng tạo từ 4 đến 30 giây. Hỗ trợ các tỷ lệ khung hình 16:9, 9:16, 1:1, 4:3, 3:4 và 21:9; đầu ra tỷ lệ 1:1 có kích thước 1440×1440. Chế độ tham chiếu hỗ trợ tối đa 10 ảnh, 5 video và 5 đoạn âm thanh, tổng cộng 20 tài nguyên. Mỗi video và đoạn âm thanh có thời lượng từ 2 đến 30 giây; tổng thời lượng của tất cả video không quá 30 giây, và tổng thời lượng của tất cả âm thanh cũng không quá 30 giây. Kích thước tối đa của ảnh là 30 MB, video là 200 MB và âm thanh là 15 MB. Chế độ khung hình đầu và cuối không thể kết hợp với các ảnh, video hoặc âm thanh tham chiếu khác. Trong câu lệnh, có thể dùng \\u003c\\u003c>>, \\u003c\\u003c>> và \\u003c\\u003c>> để tham chiếu tài nguyên theo thứ tự nhập của từng loại. Hiện chưa cung cấp lối truy cập riêng cho định dạng chính thức của sand.ai. json { \\\"model\\\": \\\"magi-2-1080p\\\", \\\"duration\\\": 4, \\\"resolution\\\": \\\"1080p\\\", \\\"ratio\\\": \\\"1:1\\\", \\\"content\\\": [ { \\\"type\\\": \\\"text\\\", \\\"text\\\": \\\"以 \\u003c\\u003c>> 的彩色积木为主体,参考 \\u003c\\u003c>> 的缓慢转动及 \\u003c\\u003c>> 的轻柔节奏。\\\" }, { \\\"type\\\": \\\"image_url\\\", \\\"image_url\\\": { \\\"url\\\": \\\"https://example.com/blocks.png\\\" }, \\\"role\\\": \\\"reference_image\\\" }, { \\\"type\\\": \\\"video_url\\\", \\\"video_url\\\": { \\\"url\\\": \\\"https://example.com/rotation.mp4\\\" }, \\\"role\\\": \\\"reference_video\\\" }, { \\\"type\\\": \\\"audio_url\\\", \\\"audio_url\\\": { \\\"url\\\": \\\"https://example.com/rhythm.wav\\\" }, \\\"role\\\": \\\"reference_audio\\\" } ] } 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\\\" } } ``\",\"url\":\"https://docs.newapi.si/api-reference/vi/t%E1%BA%A1o-video-seedance/t%E1%BA%A1o-video%EF%BC%88seedance%EF%BC%89\",\"mainEntityOfPage\":{\"@id\":\"https://docs.newapi.si/api-reference/vi/t%E1%BA%A1o-video-seedance/t%E1%BA%A1o-video%EF%BC%88seedance%EF%BC%89#webpage\"},\"dateModified\":\"2026-12-03T06:59:25.181Z\",\"publisher\":{\"@id\":\"https://docs.newapi.si/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.newapi.si#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"NewAPIs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"NewAPIs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/vi/t%E1%BA%A1o-video-seedance/t%E1%BA%A1o-video%EF%BC%88seedance%EF%BC%89.md","siteName":"NewAPIs","nav":{"global":null,"languages":[{"language":"cn","footer":{"socials":{}},"navbar":{"links":[{"href":"https://www.newapi.si/about","label":"支持"},{"href":"https://www.newapi.si/pricing","label":"价格"}],"primary":{"type":"button","label":"控制台","href":"https://www.newapi.si/dashboard/overview"}},"pages":[{"title":"cn","href":"/api-reference/cn/conventions"}]},{"language":"en","footer":{"socials":{}},"navbar":{"links":[{"href":"https://www.newapi.si/about","label":"Support"},{"href":"https://www.newapi.si/pricing","label":"Pricing"}],"primary":{"type":"button","label":"Console","href":"https://www.newapi.si/dashboard/overview"}},"pages":[{"title":"en","href":"/api-reference/en/conventions"}]},{"language":"zh-Hant","footer":{"socials":{}},"navbar":{"links":[{"href":"https://www.newapi.si/about","label":"支援"},{"href":"https://www.newapi.si/pricing","label":"價格"}],"primary":{"type":"button","label":"控制台","href":"https://www.newapi.si/dashboard/overview"}},"pages":[{"title":"zh-Hant","href":"/api-reference/zh-tw/conventions"}]},{"language":"fr","footer":{"socials":{}},"navbar":{"links":[{"href":"https://www.newapi.si/about","label":"Support"},{"href":"https://www.newapi.si/pricing","label":"Tarifs"}],"primary":{"type":"button","label":"Console","href":"https://www.newapi.si/dashboard/overview"}},"pages":[{"title":"fr","href":"/api-reference/fr/conventions"}]},{"language":"ja","footer":{"socials":{}},"navbar":{"links":[{"href":"https://www.newapi.si/about","label":"サポート"},{"href":"https://www.newapi.si/pricing","label":"料金"}],"primary":{"type":"button","label":"コンソール","href":"https://www.newapi.si/dashboard/overview"}},"pages":[{"title":"ja","href":"/api-reference/ja/conventions"}]},{"language":"ru","footer":{"socials":{}},"navbar":{"links":[{"href":"https://www.newapi.si/about","label":"Поддержка"},{"href":"https://www.newapi.si/pricing","label":"Тарифы"}],"primary":{"type":"button","label":"Консоль","href":"https://www.newapi.si/dashboard/overview"}},"pages":[{"title":"ru","href":"/api-reference/ru/conventions"}]},{"language":"vi","footer":{"socials":{}},"navbar":{"links":[{"href":"https://www.newapi.si/about","label":"Hỗ trợ"},{"href":"https://www.newapi.si/pricing","label":"Bảng giá"}],"primary":{"type":"button","label":"Bảng điều khiển","href":"https://www.newapi.si/dashboard/overview"}},"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ách gọi Kling 4.0: `kling-4.0` (720p) và `kling-4.0-1080p` cùng hỗ trợ định dạng Seedance `content/duration/resolution/ratio/mode`, `contents/settings/options` và định dạng video OpenAI; hai điểm truy cập video thống nhất có thể dùng chung phần thân yêu cầu. Độ phân giải phải khớp với tên mô hình. Kling 4.0 có thể dùng trực tiếp các trường content/duration/resolution/ratio/mode của định dạng Seedance, hoặc các trường prompt/seconds/size/input_reference của định dạng video OpenAI; cả hai đều không cần thêm contents/settings/options. mode có thể là t2v (chỉ văn bản), i2v (một khung hình đầu), i2v_first_last (khung hình đầu và cuối), reference_images (ảnh tham chiếu thông thường), reference_material (tham chiếu tư liệu đa năng; âm thanh phải dùng tuyến hỗ trợ khả năng này). Nếu bỏ qua mode và không chỉ định công cụ, mặc định dùng reference_material khi có tư liệu tham chiếu, và dùng t2v khi không có tư liệu tham chiếu. 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; với khung hình đầu và cuối, hãy chọn rõ i2v hoặc i2v_first_last và bỏ qua tham số tỷ lệ khung hình. Kling 4.0 mặc định tạo đồng thời âm thanh và hình ảnh. Chế độ tham chiếu đa năng hỗ trợ URL âm thanh công khai: /v1/videos sử dụng audio_urls, còn Seedance sử dụng mục audio_url trong content; cần dùng tuyến hỗ trợ tư liệu âm thanh. Ba điểm truy cập chuyên dụng nguyên bản hiện không nhận các trường âm thanh tham chiếu.\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.\n\n### Magi-2 1080p\n\n`magi-2-1080p` hỗ trợ hai định dạng OpenAI `/v1/videos` và Ark `/api/v3/contents/generations/tasks`, có thể truy vấn lần lượt qua `GET /{task_id}` của đường dẫn tương ứng. Độ phân giải cố định là 1080p, thời lượng tạo từ 4 đến 30 giây. Hỗ trợ các tỷ lệ khung hình 16:9, 9:16, 1:1, 4:3, 3:4 và 21:9; đầu ra tỷ lệ 1:1 có kích thước 1440×1440. Chế độ tham chiếu hỗ trợ tối đa 10 ảnh, 5 video và 5 đoạn âm thanh, tổng cộng 20 tài nguyên. Mỗi video và đoạn âm thanh có thời lượng từ 2 đến 30 giây; tổng thời lượng của tất cả video không quá 30 giây, và tổng thời lượng của tất cả âm thanh cũng không quá 30 giây. Kích thước tối đa của ảnh là 30 MB, video là 200 MB và âm thanh là 15 MB. Chế độ khung hình đầu và cuối không thể kết hợp với các ảnh, video hoặc âm thanh tham chiếu khác. Trong câu lệnh, có thể dùng `\u003c\u003c\u003cimage_1>>>`, `\u003c\u003c\u003cvideo_1>>>` và `\u003c\u003c\u003caudio_1>>>` để tham chiếu tài nguyên theo thứ tự nhập của từng loại. Hiện chưa cung cấp lối truy cập riêng cho định dạng chính thức của sand.ai.\n\n```json\n{\n \"model\": \"magi-2-1080p\",\n \"duration\": 4,\n \"resolution\": \"1080p\",\n \"ratio\": \"1:1\",\n \"content\": [\n {\n \"type\": \"text\",\n \"text\": \"以 \u003c\u003c\u003cimage_1>>> 的彩色积木为主体,参考 \u003c\u003c\u003cvideo_1>>> 的缓慢转动及 \u003c\u003c\u003caudio_1>>> 的轻柔节奏。\"\n },\n {\n \"type\": \"image_url\",\n \"image_url\": {\n \"url\": \"https://example.com/blocks.png\"\n },\n \"role\": \"reference_image\"\n },\n {\n \"type\": \"video_url\",\n \"video_url\": {\n \"url\": \"https://example.com/rotation.mp4\"\n },\n \"role\": \"reference_video\"\n },\n {\n \"type\": \"audio_url\",\n \"audio_url\": {\n \"url\": \"https://example.com/rhythm.wav\"\n },\n \"role\": \"reference_audio\"\n }\n ]\n}\n```\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 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"},{"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"}]}]},{"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) - NewAPIs","deploymentId":"dpl_XLevHnGPjzxq9mbREha5Faad63Sp","buildId":"dpl_XLevHnGPjzxq9mbREha5Faad63Sp","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-BD9G1WMi.js","snippetPresets-Bcqr8I2u.js","utils-BrYn4XiY.js","style-to-object-BY3JEAdk.js","utils-CYrCnchl.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-CNFO66BS.js","conditional-requirements-CFM0id0Q.js","cloneDeep-BneVo7uA.js","_Uint8Array-n4RvRzp3.js","isObject-FP1Yky1u.js","ApiExamples-C1YMsTjy.js","usePlaygroundInputsStore-DayW4kZ9.js","shallow-DDCzdKmR.js","isEqual-CBVoazy8.js","CodeSnippets-CWandYY5.js","CodeSnippet-grFP6YU_.js","use-playground-group-access-BBqHUxQK.js","Page-DBPN_x5x.js","api-description-markdown-1J-AA_Kv.js","DynamicMarkdown-Dgh_e4rL.js","SectionHeading-BP6Np9Uh.js","MethodPill-4k_Ty_Xv.js","getPastedJson-CWUNKLcr.js","Check2Icon-Cs4FQb2J.js","axios-CsQoIw0U.js","Markdown-CR8c2fXT.js","AssistantPageLink-BBR7elHb.js","dist-DjFwSv8l.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}