Generate video from text
Generate a video from a text prompt using AI models.
Authentication
AuthorizationBearer
API key authentication
Request
This endpoint expects an object.
prompt
Text prompt describing the desired video content
duration
Video duration in seconds. See Supported Models for available durations per model.
resolution
Output video resolution. See Supported Models for available resolutions per model.
fps
Frame rate in frames per second. See Supported Models for available FPS per model and resolution.
camera_motion
Apply camera motion effects to the generated video.
generate_audioBeta
Generate audio for the video. When true, the generated video will include AI-generated audio matching the scene. When false, only silent video is generated.
Response headers
x-request-id
Unique request identifier for tracking and debugging
Content-Type
The MIME type of the video file
Content-Length
The size of the video file in bytes
Response
Video generated successfully
Errors
400
Bad Request Error
401
Unauthorized Error
422
Unprocessable Entity Error
429
Too Many Requests Error
500
Internal Server Error
503
Service Unavailable Error
504
Gateway Timeout Error