Guides · Video Generation
Video Generation
Generate cinematic video clips using the Seedance 2.0 model.
Overview
Generate short cinematic video clips from text prompts or reference images using the Seedance 2.0 model.
Creating a video
Submit a video generation task using the Videos API:
cURL
| 1 | curl https://api.alltoken.ai/v1/videos/generations \ |
| 2 | -H "Authorization: Bearer $ALLTOKEN_API_KEY" \ |
| 3 | -H "Content-Type: application/json" \ |
| 4 | -d '{ |
| 5 | "model": "seedance-2.0", |
| 6 | "prompt": "A serene mountain lake at sunrise, cinematic 4K", |
| 7 | "ratio": "16:9", |
| 8 | "duration": 5, |
| 9 | "resolution": "720p" |
| 10 | }' |
Parameters
model—"seedance-2.0"prompt— text description of the desired videoratio— aspect ratio:"16:9","9:16","4:3","3:4","21:9","1:1", or"adaptive"duration— length in seconds;-1lets the model choose automaticallyresolution— output resolution:"480p","720p", or"1080p"content— multimodal input array for image-to-video or references, for example{ "type": "image_url", "image_url": { "url": "..." }, "role": "first_frame" }
Checking task status
Video generation is asynchronous. Poll for status:
cURL
$curl https://api.alltoken.ai/v1/videos/generations/{task_id} -H "Authorization: Bearer $ALLTOKEN_API_KEY"The response includes status (queued, processing, completed, failed, expired, or cancelled) and a download URL when complete.