/v1/videos
Creates a video and immediately queues the script step. The response returns before generation finishes — poll the status endpoint or wait for the webhook. Credits are checked against the workspace balance before any work starts.
curl -X POST https://api.vidroot.com/v1/videos \
-H "Authorization: Bearer $VIDROOT_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"prompt": "Three reasons indie founders switch to Vidroot",
"productId": "prod_9f2c...",
"format": "9:16",
"duration": 30,
"language": "en",
"voice": "ara",
"webhookUrl": "https://example.com/hooks/vidroot"
}'{
"id": "6f1c9c2a-7c5a-4a0e-9d1b-2f0c8a3e77b1",
"status": "queued",
"estimatedCredits": 115,
"createdAt": "2026-07-29T10:14:02.184Z"
}{
"prompt": "Show how the app kills manual reporting",
"product": {
"name": "Northwind Analytics",
"websiteUrl": "https://northwind.example.com"
},
"duration": 30
}