Create video generation tasks using the Sora2API AI model.
All APIs require authentication via Bearer Token.
Get API Key:
Usage: Add to request header: Authorization: Bearer YOUR_API_KEY
Note:
Prompt for content generation. Detailed description of the desired video or image content.
"A cute kitten playing in a garden on a bright spring day"
Aspect ratio of the output video.
Supported Aspect Ratios:
| Option | Description | Common Use |
|---|---|---|
landscape | Landscape | HD video, desktop wallpaper, horizontal viewing |
portrait | Portrait | Phone wallpaper, short videos, vertical viewing |
landscape, portrait "landscape"
Quality of the generated content.
standard, hd "hd"
Array of image URLs. Used as input images for image-to-image or image-to-video.
["https://example.com/image.jpg"]Watermark text.
"My Watermark"
Callback URL for receiving task completion updates.
"https://api.example.com/callback"
Request successful
Response status code
200, 400, 401, 402, 404, 422, 429, 455, 500, 501, 505 Response message
"success"