الانتقال إلى المحتوى الرئيسي
POST
اضبط size على قيمة WxH من جدول الأحجام الخاص بطرازك.
استخدم doubao-seedance-2-0-mini كما هو تمامًا لـ Seedance 2.0 Mini. القيمة المختصرة seedance-mini ليست معرّف طراز صالحًا.

معرّفات الطرازات المدعومة

اختر طرازًا لوضع الإدخال والدقة لديك، ثم أرسل معرّفه الدقيق في الحقل model.

استخدام الصور المرجعية

أرسل POST /v1/videos بالقيمة multipart/form-data، مع الصور المرجعية في input_reference. للصور المرجعية القياسية المتعددة، كرر الحقل وفق ترتيب الصور، مع URL واحد لصورة HTTPS متاح للعامة أو ملف صورة مرفوع واحد لكل حقل. بالنسبة إلى الصور المرجعية القياسية، استخدم عناوين URL فقط أو ملفات فقط ضمن هذا الحقل. أرسل كل URL بشكل منفصل بدلًا من ضم عناوين URL بفواصل. اجعل حجم كل صورة مرفوعة عند 20 MiB أو أقل (20 × 1024 × 1024 بايت). يستخدم Seedance 1.0 Pro وSeedance 1.5 Pro صورة مرجعية واحدة. يقبل Seedance 2.0 وFast وMini ما يصل إلى 9 صور مرجعية. يقبل Seedance 2.5 ما يصل إلى 30 صورة مرجعية. تنطبق هذه الأعداد على كلٍّ من عناوين URL والملفات المرفوعة. في Prompt، عيّن لكل صورة دورًا، مثل الموضوع أو الإعداد أو النمط المرئي. صِف المظهر المراد الحفاظ عليه، والحركة، وحركة الكاميرا. توضح عينات الطلبات في أعلى هذه الصفحة مدخلات URL للصور وعمليات رفع صورة واحدة أو صور متعددة.

إرسال عناوين URL للصور المرجعية

استخدم عنوانَي URL لصورتين لتوجيه مظهر الموضوع والإعداد:

استخدام أصل شخصية

أنشئ أصل الشخصية ونشّطه قبل استخدامه في طلب Seedance 2.5. ابدأ بـ إنشاء مجموعة أصول شخصية، ثم حمّل صورة من خلال تحميل أصل شخصية. احفظ معرّف الأصل الذي تم إرجاعه وانتظر حتى تصبح حالته active. استخدم معرّف الأصل بصيغة المرجع asset://. يجب وضع مرجع الأصل في input_reference، ولا يكشف عنوان URL لصورة المصدر لطلب الفيديو.
تستخدم نقاط نهاية إدارة الأصول رمز وصول خامًا في العنوان Authorization. يستخدم طلب الفيديو مفتاح CometAPI API مع مخطط Bearer. إذا كان الأصل لا يزال processing أو failed أو غير متاح، فانتظر حالة الأصل أو عالج الأصل قبل إرسال مهمة الفيديو.

استخدم الفيديو والصوت المرجعيين

تقبل Seedance 2.0 وFast وMini و2.5 المعلمتين reference_videos وreference_audios. استخدم ملفات MP4 لمراجع الفيديو وملفات MP3 لمراجع الصوت. أرسل كلاً منها كرابط HTTPS متاح للعامة أو كملف مرفوع. أقرن الصوت المرجعي بصورة أو فيديو واحد على الأقل. في Prompt، استخدم @Image1 و@Video1 و@Audio1 لتعيين أدوار لمراجعك. رقّم المراجع بحسب ترتيبها ضمن كل نوع من الوسائط. يمكنك دمج عناوين URL والملفات المرفوعة عبر حقول مختلفة. ضمن كل من input_reference وreference_videos وreference_audios، استخدم إما عناوين URL فقط أو ملفات فقط. بالنسبة إلى المدخلات المتعددة، كرر الحقل مرة لكل إدخال بدلاً من ضم عناوين URL بفواصل. اجعل حجم كل فيديو مرفوع 50 MiB أو أقل، وحجم كل ملف صوتي مرفوع 15 MiB أو أقل. يعادل MiB واحد 1024 × 1024 بايت. يتضمن Seedance 2.0 القياسي (doubao-seedance-2-0) حدوداً إضافية للوسائط لكل من عناوين URL والملفات المرفوعة. بالنسبة إلى مقاطع الفيديو المرجعية، اجعل المدة المجمّعة بين ثانيتين و15 ثانية، والحجم الإجمالي أقل من 50 MB. استخدم دقة للفيديو المرجعي تتراوح تقريباً من 480p ‏(640x640) إلى 720p ‏(834x1112). بالنسبة إلى الصوت المرجعي، اجعل المدة المجمّعة 15 ثانية أو أقل، وحجم كل ملف 15 MB أو أقل. يجب أن تستوفي الوسائط المرفوعة أيضاً حدود الرفع لكل ملف المذكورة أعلاه.

أرسل رابط فيديو مرجعي

استخدم الفيديو المرجعي لتوجيه حركة الكاميرا والحركة:

أقرن رابط صورة بصوت

حرّك الموضوع المرجعي وفق إيقاع الصوت المرجعي:

ارفع وسائط مرجعية باستخدام Seedance 2.5

ارفع صورتين وفيديو MP4 وملفاً صوتياً MP3 في طلب واحد:

المدة حسب النموذج

اضبط seconds على قيمة بصيغة عدد صحيح ضمن نطاق نموذجك. وإذا حذفتها، يطلب CometAPI مقطعًا مدته 5 ثوانٍ.

دعم المقاسات حسب النموذج

Seedance 2.5

بالنسبة إلى Seedance 2.5، تنطبق قيم WxH هذه على كلٍ من المطالبات النصية والوسائط المرجعية.

نماذج Seedance الأقدم

يجمع العمود الأخير قيم WxH الدقيقة لـ Seedance 1.5 Pro وSeedance 2.0 القياسي وFast. يستخدم Seedance 2.0 Fast قيمتي 480p و720p فقط في ذلك العمود. تنطبق قيم 1080p في ذلك العمود على Seedance 1.5 Pro وSeedance 2.0 القياسي. تنطبق قيم 4K على Seedance 2.0 القياسي فقط. في عمود Mini، تعني — أن الدقة غير مدعومة.
يدعم Seedance 2.0 Mini القيمتين 480p و720p. اضبط size على قيمة WxH من عمود Mini.

التفويضات

Authorization
string
header
مطلوب

Bearer token authentication. Use your CometAPI key.

الجسم

multipart/form-data
prompt
string
مطلوب

Text prompt that describes the video. Required. When using reference images, describe what each image should control, such as the subject from @Image1, the secondary object from @Image2, and the background or style from @Image3. Also state the action, camera motion, visual style, and scene.

مثال:

"A slow cinematic camera push across a coastal landscape at sunrise."

model
enum<string>
مطلوب

Seedance model ID. Use one of the exact values below. Aliases such as seedance-mini are not accepted.

الخيارات المتاحة:
seedance-2-5,
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"

seconds
integer
افتراضي:5

Video duration in seconds. Seedance 2.5 accepts 4 to 30. 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 <= 30
مثال:

5

size
string

Output size as an exact WxH value. For Seedance 2.5 text-to-video and image-to-video, use 854x480, 752x560, 640x640, 560x752, 480x854, or 992x432 for 480p; use 1280x720, 1112x834, 960x960, 834x1112, 720x1280, or 1470x630 for 720p. For Seedance 2.0 Mini, use 864x496, 752x560, 640x640, 560x752, 496x864, or 992x432 for 480p; use the same documented 720p values. The standard Seedance 2.0 model also accepts its documented 4K values.

Pattern: ^[1-9]\d{2,3}x[1-9]\d{2,3}$
أمثلة:

"854x480"

"480x854"

"864x496"

"752x560"

"640x640"

"560x752"

"496x864"

"992x432"

"1280x720"

"1112x834"

"960x960"

"834x1112"

"720x1280"

"1470x630"

"1920x1080"

"1080x1920"

"3840x2160"

"3326x2494"

"2880x2880"

"2494x3326"

"2160x3840"

"4398x1886"

input_reference

Reference images or a CometAPI character asset. Repeat input_reference with one publicly accessible HTTPS image URL, one uploaded image file, or one asset:// reference per field. Use only URLs, asset references, or files within a request. Keep each uploaded image at or below 20 MiB. Seedance 2.0, Fast, and Mini allow up to nine image URLs or files and 12 reference inputs in total. Seedance 2.5 allows up to 30 image URLs or files and 50 reference inputs in total. For Seedance 1.0 Pro and 1.5 Pro, send one URL or one file. Submit images in the order you want to reference them in the prompt.

Pattern: ^https://
reference_videos
(string<uri> | file)[]

Reference video inputs for Seedance 2.0, Fast, Mini, and 2.5. Repeat reference_videos with a publicly accessible HTTPS MP4 URL or an uploaded MP4 file. Use only URLs or only files within this field. Each file can be up to 50 MiB. Seedance 2.0, Fast, and Mini allow up to three video inputs and 12 reference inputs in total. Seedance 2.5 allows up to ten video URLs or five uploaded video files, with 50 reference inputs in total. For standard Seedance 2.0 (doubao-seedance-2-0), URL and uploaded references must have a combined video duration of 2 to 15 seconds and a total video size under 50 MB. Each reference video must have a resolution of approximately 480p (640x640) to 720p (834x1112). These media limits apply in addition to the 50 MiB per-file upload limit.

Required array length: 1 - 10 elements
Pattern: ^https://
مثال:

"https://your-media-host/reference.mp4"

reference_audios
(string<uri> | file)[]

Reference audio inputs for Seedance 2.0, Fast, Mini, and 2.5. Repeat reference_audios with a publicly accessible HTTPS MP3 URL or an uploaded MP3 file. Use only URLs or only files within this field. Each file can be up to 15 MiB. Seedance 2.0, Fast, and Mini allow up to three audio inputs and 12 reference inputs in total. Seedance 2.5 allows up to ten audio URLs or five uploaded audio files, with 50 reference inputs in total. Pair audio with at least one reference image or video. For standard Seedance 2.0 (doubao-seedance-2-0), URL and uploaded audio references must have a combined duration at or below 15 seconds, with each audio file at or below 15 MB. These media limits apply in addition to the 15 MiB per-file upload limit.

Required array length: 1 - 10 elements
Pattern: ^https://
مثال:

"https://your-media-host/reference.mp3"

الاستجابة

Task created. Save the returned id and poll GET /v1/videos/{id}.

id
string
مطلوب

Task id. Use it as the path parameter for GET /v1/videos/{id}.

object
string
مطلوب

Object type, always video.

model
string
مطلوب

Echo of the requested model id.

status
enum<string>
مطلوب

Initial task status. Newly created tasks are returned as queued.

الخيارات المتاحة:
queued,
in_progress,
completed,
failed,
error
progress
integer
مطلوب

Completion percentage. 0 at creation.

النطاق المطلوب: 0 <= x <= 100
created_at
integer
مطلوب

Task creation time as a Unix timestamp in seconds.

task_id
string

Alias of id returned for compatibility. The value matches id.

آخر تعديل في ١ ديسمبر ٢٠٢٦