Generate videos
Media
Video Generation
Generate dynamic videos from text descriptions or images
POST
Generate videos
Video Generation API
Generate high-quality videos from text prompts or images with camera movement control.Overview
The video generation API allows you to create dynamic videos from text descriptions or images. The process works asynchronously:- Submit a generation task
- Poll the task status using the returned task ID
- Download the video using the file ID once the task is complete
Video Generation Task
The OpenAPI playground above allows you to generate videos. After submitting, you’ll receive a
task_id that you can use to check the status.Check Generation Status
To check the status of your video generation task, use the status endpoint:status field shows “Success”, you’ll also receive a file_id that can be used to download the video.Camera Movement Instructions
When using the Director models (T2V-01-Director, I2V-01-Director), you can include camera movement instructions in your prompt using square brackets:
- Single movement:
[Truck left] - Combined movements:
[Truck left, Pan right]
Available Camera Movements:
- Truck:
[Truck left],[Truck right] - Pan:
[Pan left],[Pan right] - Push:
[Push in],[Pull out] - Pedestal:
[Pedestal up],[Pedestal down] - Tilt:
[Tilt up],[Tilt down] - Zoom:
[Zoom in],[Zoom out] - Other:
[Shake],[Tracking shot],[Static shot]
Download Generated Video
Once your video is ready, you can download it using the file retrieval endpoint:Complete Example (Python)
Error Handling
The API uses standard HTTP status codes. Common errors include:- 400: Bad Request - Check your request parameters
- 401: Unauthorized - Invalid or missing API key
- 429: Too Many Requests - Rate limit exceeded
- 500: Internal Server Error - Contact support
error field in the response body.Authorizations
Enter your API key prefixed with 'Bearer '
Body
application/json
Video generation model to use
Available options:
T2V-01-Director, I2V-01-Director, S2V-01, I2V-01, I2V-01-live, T2V-01 Text description of the video to generate. Can include camera movement instructions in square brackets.
Base64-encoded image data for image-to-video generation

