إنشاء فيديو Seedance
أنشئ مهمة فيديو Seedance على CometAPI. استخدم مطالبات نصية أو صورًا مرجعية، وحدد مدة، واطلب حجم إخراج WxH دقيقًا.
WxH موثقة من الجدول أدناه للحقل size.معرّفات النماذج المدعومة
استخدم إحدى هذه القيم الدقيقة للحقلmodel.
استخدام الصور المرجعية
تقبل Seedance 2.0 وSeedance 2.0 Fast وSeedance 2.0 Miniinput_reference . بالنسبة إلى مطالبات المراجع المتعددة المتقدمة على مسار
يدعمها، كرر حقل multipart نفسه بترتيب الرفع.
اكتمل طلب إنتاج Mini واحد باستخدام input_reference في
720x1280 . أكد ذلك الفحص اكتمال الطلب، لكنه لم يعزل التأثير المرئي لـ
الصورة المرجعية عن المطالبة.
يتأثر Seedance 2.0 بكيفية ربط المطالبة لكل صورة مرجعية بالمشهد. أشر إلى الملفات المرفوعة حسب الترتيب، مثل [Image 1] و[Image 2] و[Image 3]، ثم عيّن لكل صورة دورًا واضحًا:
- استخدم
[Image 1]للموضوع الرئيسي أو الشخصية أو المنتج. - استخدم
[Image 2]لموضوع ثانوي أو دعامة أو رفيق. - استخدم
[Image 3]للخلفية أو البيئة أو الإضاءة أو النمط.
المدة حسب النموذج
إذا حذفتseconds، يطلب CometAPI مقطعًا مدته 5 ثوانٍ. أرسل seconds بوصفه
سلسلة نصية عندما تحتاج إلى مدة محددة.
دعم الأحجام حسب الطراز
يجمع الجدول أدناه قيمWxH الدقيقة في مكان واحد. يستخدم Seedance 2.0 Fast
فقط القيمتين 480p و720p في العمود الخامس. أما قيم 1080p
في ذلك العمود فتنطبق على Seedance 1.5 Pro وstandard Seedance 2.0. أما قيم 4K
فتنطبق فقط على standard Seedance 2.0. في عمود Mini، تعني — أن الدقة
غير مدعومة.
WxH الموثقة للطراز المستهدف. يظل دعم WxH الدقيق معتمدًا على الطراز، لذا افحص الوسائط المكتملة قبل الاعتماد على حجم غير موثق.التفويضات
Bearer token authentication. Use your CometAPI key.
الجسم
Text prompt that describes the video. Required. When using reference images, describe what each uploaded image should control, such as the subject from [Image 1], the secondary object from [Image 2], and the background or style from [Image 3]. Also state the action, camera motion, visual style, and scene.
"A slow cinematic camera push across a coastal landscape at sunrise."
Seedance model ID. Use one of the exact values below. Aliases such as seedance-mini are not accepted.
doubao-seedance-2-0, doubao-seedance-2-0-fast, doubao-seedance-2-0-mini, doubao-seedance-1-5-pro, doubao-seedance-1-0-pro "doubao-seedance-2-0-mini"
Video duration in seconds. Seedance 2.0, Seedance 2.0 Fast, and Seedance 2.0 Mini accept 4 to 15. Seedance 1.5 Pro accepts 4 to 12, and Seedance 1.0 Pro accepts 2 to 10. The default is 5.
2 <= x <= 155
Output size as an exact WxH value. For Seedance 2.0 Mini, use 864x496, 752x560, 640x640, 560x752, 496x864, or 992x432 for 480p; use 1280x720, 1112x834, 960x960, 834x1112, 720x1280, or 1470x630 for 720p. Mini does not support 1080p or 4K. A Mini request for 1920x1080 produced 1280x720 in one production check. The standard Seedance 2.0 model also accepts its documented 4K values.
^[1-9]\d{2,3}x[1-9]\d{2,3}$"864x496"
"752x560"
"640x640"
"560x752"
"496x864"
"992x432"
"1280x720"
"1112x834"
"960x960"
"834x1112"
"720x1280"
"1470x630"
"1920x1080"
"1080x1920"
"3840x2160"
"3326x2494"
"2880x2880"
"2494x3326"
"2160x3840"
"4398x1886"
Optional reference image uploaded as a multipart file. Seedance 2.0, Seedance 2.0 Fast, and Seedance 2.0 Mini accept this field. On routes that support multiple reference images, repeat the field and reference the files in upload order as [Image 1], [Image 2], and so on. Seedance 1.0 Pro and 1.5 Pro do not accept it.
الاستجابة
Task created. Save the returned id and poll GET /v1/videos/{id}.
Task id. Use it as the path parameter for GET /v1/videos/{id}.
Object type, always video.
Echo of the requested model id.
Initial task status. Newly created tasks are returned as queued.
queued, in_progress, completed, failed, error Completion percentage. 0 at creation.
0 <= x <= 100Task creation time as a Unix timestamp in seconds.
Alias of id returned for compatibility. The value matches id.