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/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 | }' |
Parameters
model—"seedance-2.0"prompt— text description of the desired videoratio— aspect ratio:"16:9","9:16","1:1"duration— length in seconds (typically 3-10)resolution— output resolution (optional)content— array of reference images (optional):[{ "type": "image", "url": "..." }]
Checking task status
Video generation is asynchronous. Poll for status:
cURL
$ curl https://api.alltoken.ai/videos/generations/{task_id} -H "Authorization: Bearer $ALLTOKEN_API_KEY"The response includes status (pending, processing, completed, failed) and a download URL when complete.