Skip to main content
POST

Authorizations

Authorization
string
required
All API endpoints require Bearer Token authenticationGet your API Key:Visit the API Key Management Page to get your API KeyAdd it to the request header:

Body

model
string
required
Video generation model nameSupported models:
  • sora-2 Sora 2 standard
  • sora-2-pro Sora 2 Pro
Example: "sora-2"
prompt
string
required
Text description for video generationExample: "A waterfall cascading down forming a rainbow"
duration
integer
default:"4"
Supported values: 4, 8, 12, 16, 20Example: 8
resolution
string
default:"720p"
Video resolutionSupported values:Defaults to 720p when not provided.Example: "720p"
aspect_ratio
string
default:"16:9"
Video aspect ratio, controls landscape or portrait orientationSupported values:Defaults to landscape when not provided.
When image_urls is provided (image-to-video), the aspect_ratio parameter is ignored and does not need to be sent; the orientation is determined automatically from the reference image.
image_urls
array<url>
Array of reference image URLs for image-to-video generation
  • Omit for text-to-video; provide 1 image for image-to-video
  • Maximum 1 image
  • Supports publicly accessible image URLs (http:// or https://)
  • Supported formats: .jpeg, .jpg, .png, .webp
  • Maximum file size: 10MB
Example: ["https://example.com/image.jpg"]

Response

code
integer
Response status code, 200 for success
data
array
Response data array