Quickstart
Generate the clip from the homepage in three requests. You need an API key: join the waitlist, then export it as CHEAPVIDEO_API_KEY.
1. Submit a task
Request
curl https://api.cheapvideo.dev/v1/videos \
-H "Authorization: Bearer $CHEAPVIDEO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "seedance-2.0-mini",
"prompt": "A paper boat drifting down a rainy city gutter at dusk, neon reflections, close-up tracking shot",
"resolution": "720p",
"duration": 5
}'Response
{
"id": "task_8f2c1a",
"status": "queued"
}2. Poll the status
Repeat every few seconds until status is succeeded or failed.
Request
curl https://api.cheapvideo.dev/v1/videos/task_8f2c1a \
-H "Authorization: Bearer $CHEAPVIDEO_API_KEY"Response
{
"id": "task_8f2c1a",
"status": "succeeded",
"video_url": "https://cdn.cheapvideo.dev/task_8f2c1a.mp4",
"duration": 5,
"cost_usd": 0.40
}3. Download the video
Request
curl -o clip.mp4 https://cdn.cheapvideo.dev/task_8f2c1a.mp4