Seedance video model
Access the Seedance video model according to the actual model and channel configuration of this site.
Seedance is an asynchronous video task. The combination of text, first frame, last frame and multi-modal reference is determined by the specific version.
Step one: Check the model and materials
Select the real ID from the model list of the current Key and confirm the duration, frame, definition, audio and reference material requirements. The material URL needs to be queued and still be read by the upstream.
Step 2: Native creation
curl --fail-with-body https://dunduntoken.com/doubao/api/v3/contents/generations/tasks -H "Authorization: Bearer $DUNDUN_API_KEY" -H "Content-Type: application/json" -d '{"model":"SEEDANCE_MODEL_ID","content":[{"type":"text","text":"固定镜头,清晨湖面的薄雾缓慢散开"}]}'
When a specific version requires additional parameters, please add them according to its contract; verify the single input first, and you cannot add all the first and last frames and audio fields at once.
Step 3: Query and save
Save the gateway ID in the create response and request GET /doubao/api/v3/contents/generations/tasks/{id} again. Read the video in its native state and content, and do not regard successful creation as successful generation. When downloading results, follow the credential requirements of the return address and do not attach this site’s Key to a third party.
Unified video method
Declaring supported models can use the Unified Video process. Use the same protocol for creation and parsing to avoid treating native wrappers as unified objects.
Materials and Failures
The asset ID has suppliers, accounts and permission ranges. For details, see Material Boundary. If a timeout occurs, query the original task first; fix the content or material errors before creating a new task. Previewing progress is not a substitute for final status and file inspection.