Sora2 Video Generation
- Asynchronous processing mode, returns task ID for subsequent queries
- Supports multiple generation modes including text-to-video and image-to-video
- Generated video links are valid for 24 hours, please save them promptly
POST
Documentation Index
Fetch the complete documentation index at: https://docs.apimart.ai/llms.txt
Use this file to discover all available pages before exploring further.
Authorization
All API endpoints require Bearer Token authenticationGet your API Key:Visit the API Key Management Page to get your API KeyAdd to the request header:
Request Parameters
Video generation model nameExample:
"sora-2"Text description for video generation
Video duration in secondsExample:
5Video aspect ratioSupported formats:
16:9(Landscape)9:16(Portrait)
Array of reference image URLs for image-to-video generationSupports publicly accessible image URLs (http:// or https://)Example:
["https://example.com/image.jpg"]Limitations:- Maximum file size: 10MB
- Supported formats: .jpeg, .jpg, .png, .webp
Response
Task creation timestamp
Unique task identifier
The actual model name used
Object type, fixed as
video.generation.taskTask completion progress percentage (0-100)
Task statusPossible values:
pending- Waiting for processingprocessing- In progresscompleted- Completedfailed- Failed
Task details
Output type, fixed as
videoBilling information