Documentation
API Reference
POST
Video Generation
/v1/video/generations
Generate short video clips from a text description using compatible models.
Interactive Example
Request & Response Example
Headers
Authorization
stringRequired
Bearer token for authentication.
Content-Type
stringRequired
The content type of the request body.
Default: application/json
Request Body
model
stringRequired
ID of the video generation model to use. Must be of type
video/generation
.prompt
stringRequired
A text description of the desired video.
ratio
stringThe aspect ratio of the generated video. Supported values:
"1:1"
, "16:9"
, "9:16"
, "3:4"
, "4:3"
.Default: 9:16
quality
stringRequired
The quality of the generated video. Supported values (e.g., '480p', '720p') are dependent on the model and your subscription plan.
duration
integerRequired
The duration of the video in seconds. Must be an integer between 1 and 8. The maximum allowed duration may be restricted by your subscription plan.
Response Body (200 OK)
created
integerThe Unix timestamp of when the video generation was started.
data
array of objectsAn array of video objects.
b64_json
stringThe base64-encoded video data.
url
stringThe URL where the generated video can be viewed or downloaded. URLs are temporary.
Was this page helpful?