Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Use the Volcengine API to generate videos
Content updated: 2026-06-09
POST /volc/v1/contents/generations/tasks
model
content
content.prompt
content.image_url
content.aspect_ratio
curl -X POST https://api.crazyrouter.com/volc/v1/contents/generations/tasks \ -H "Content-Type: application/json" \ -H "Authorization: Bearer YOUR_API_KEY" \ -d '{ "model": "doubao-video", "content": { "prompt": "A butterfly fluttering among flowers, macro lens shot", "aspect_ratio": "16:9" } }'
import requests response = requests.post( "https://api.crazyrouter.com/volc/v1/contents/generations/tasks", headers={ "Content-Type": "application/json", "Authorization": "Bearer YOUR_API_KEY" }, json={ "model": "doubao-video", "content": { "prompt": "A butterfly fluttering among flowers, macro lens shot", "aspect_ratio": "16:9" } } ) print(response.json())
{ "code": 0, "message": "success", "data": { "task_id": "volc_task_abc123" } }
GET /volc/v1/contents/generations/tasks/{task_id}
curl https://api.crazyrouter.com/volc/v1/contents/generations/tasks/volc_task_abc123 \ -H "Authorization: Bearer YOUR_API_KEY"
{ "code": 0, "message": "success", "data": { "task_id": "volc_task_abc123", "status": "SUCCESS", "content": { "video_url": "https://cdn.volcengine.com/videos/...", "duration": 5 } } }
SUBMITTED
PROCESSING
SUCCESS
FAILED