Skip to content

Video Generation

Google Veo models power text-to-video through /v1/video/generations.

Terminal window
curl https://llmtr.com/v1/video/generations \
-H "Authorization: Bearer sk_your_key" \
-H "Content-Type: application/json" \
-d '{
"model": "google/veo-3.1-generate-preview",
"prompt": "A cinematic drone shot over Cappadocia at sunrise",
"duration_seconds": 8,
"aspect_ratio": "16:9",
"max_wait_seconds": 180,
"max_budget_usd": 3.00
}'
FieldDescription
duration_seconds2-16 (if supported by the model)
aspect_ratio16:9, 9:16, 1:1
max_wait_secondsPolling timeout for long-running job
max_budget_usdSpend cap
file_idOptional reference image for image-to-video
{
"id": "videogen_xxx",
"status": "succeeded",
"url": "https://storage.llmtr.com/video/xxx.mp4",
"duration_seconds": 8,
"usage": {
"seconds_generated": 8,
"native_cost_usd": 2.40
}
}

Veo models are billed per second by native unit. Always cap with max_budget_usd.