الانتقال إلى المحتوى الرئيسي
POST
/
volc
/
v3
/
contents
/
generations
/
tasks
curl --request POST \
  --url https://api.cometapi.com/volc/v3/contents/generations/tasks \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "model": "doubao-seedance-1-5-pro-251215",
  "content": [
    {
      "type": "text",
      "text": "A paper boat drifts on a quiet lake at sunrise. --duration 5 --ratio 16:9"
    }
  ]
}
'
{
  "id": "021773297205999example"
}
استخدم نقطة النهاية هذه لبدء مهمة فيديو ByteDance Seedance من نص، أو من نص مع صور مرجعية. يعيد الطلب معرّف المهمة فورًا، وتستمر عملية التصيير بشكل غير متزامن.

اختر مسار النموذج الحالي

  • استخدم صفحة Models لمعرفة توفر النماذج الحالية ومعرّفاتها.
  • استخدم doubao-seedance-1-5-pro-251215 كمثال الإنتاج الحالي لهذا المسار.
  • يمكن للنموذج الحالي نفسه التعامل مع كلٍّ من الطلبات النصية فقط والطلبات الموجّهة بالصور من خلال مصفوفة content الموحّدة.

تدفق المهمة

1

أنشئ مصفوفة content

ضع تعليمات النص الرئيسية أولًا، ثم أضف عناصر الصور فقط عندما تحتاج إلى توجيه الإطار الأول أو الإطار الأخير.
2

أرسل المهمة

احفظ معرّف المهمة الذي يتم إرجاعه. إذا كنت تريد التسليم عبر الدفع، فاضبط callback_url عند إنشاء المهمة.
3

استعلم حتى يصل الإخراج

استدعِ ByteDance Video Query حتى تنتهي المهمة ويكون content.video_url موجودًا.

التفويضات

Authorization
string
header
مطلوب

Bearer token authentication. Use your CometAPI key.

الجسم

application/json
model
string
مطلوب

ByteDance Seedance video model id. Choose a current model from the Models page. A current production example is doubao-seedance-1-5-pro-251215, which supports both text-only and image-guided requests through the same content array.

مثال:

"doubao-seedance-1-5-pro-251215"

content
object[]
مطلوب

Ordered input items for the task. Put the main text instruction first. Add image items when you need first-frame or last-frame guidance.

callback_url
string

Optional webhook URL for task status notifications.

الاستجابة

200 - application/json

Task accepted.

id
string
مطلوب

Task id for later polling.