Create Video
Creates a new asynchronous video generation job using an OpenAI-compatible request format.
Bearer token authentication using API keys
In: header
The video generation model to use. Supports current Veo and Sora video models, including provider-prefixed variants like openai/sora-2 or avalanche/veo-3.1-generate-preview.
"veo-3.1-generate-preview"Text prompt describing the video to generate.
1 <= lengthOutput resolution in OpenAI widthxheight format. Supported values depend on the selected model and provider mapping.
LLMGateway extension. When set, a signed webhook is delivered after the job reaches a terminal state.
uriLLMGateway extension. Shared secret used to sign webhook deliveries with HMAC-SHA256.
1 <= lengthOutput duration in seconds. Supported values depend on the selected model and provider mapping.
1 <= valueWhether the generated video should include audio. Support depends on the selected model and provider mapping.
trueOne to three reference images for provider-specific asset or material-guided video generation.
1 <= items <= 3Response Body
application/json
curl -X POST "https://api.llmgateway.io/v1/videos" \ -H "Content-Type: application/json" \ -d '{ "prompt": "A cinematic drone shot flying through a neon-lit futuristic city at night", "seconds": 8 }'{
"id": "string",
"object": "video",
"model": "string",
"status": "queued",
"progress": 100,
"created_at": 0,
"completed_at": 0,
"expires_at": 0,
"error": {
"code": "string",
"message": "string",
"details": null
},
"content": [
{
"type": "video",
"url": "http://example.com",
"mime_type": "string"
}
]
}How is this guide?
Last updated on