API Reference
Generations
Create and manage video generation requests using various AI models.
POST
/v1/generations
Create a new video generation request. The generation will be processed asynchronously.
Example Request
curl -X POST "https://api.vidrouter.com/v1/generations" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "runway-gen3",
"prompt": "A serene lake surrounded by mountains at sunset",
"duration": 5,
"aspect_ratio": "16:9"
}'GET
/v1/generations/{generation_id}
Retrieve the status and details of a specific generation.
Example Request
curl -X GET "https://api.vidrouter.com/v1/generations/gen_abc123" \
-H "Authorization: Bearer YOUR_API_KEY"