Sora2 Preview Video Generation
- Asynchronous processing mode, returns task ID for subsequent queries
- Supports text-to-video, image-to-video and other generation modes
- Generated video links are valid for 72 hours, please save them promptly
POST
Authorization
All interfaces require Bearer Token authenticationGet API Key:Visit API Key Management Page to get your API KeyAdd to request header:
Request Parameters
Video generation model nameSupported models:
sora-2-preview- Standard version
"sora-2-preview"Text description for video generationDescribe the video content you want to generate in detail, including scenes, actions, atmosphere, etc.Example:
"A majestic waterfall cascading down rocky cliffs, creating a beautiful rainbow in the mist"Video duration (seconds)Only supports the following duration values:
4- 4 second video8- 8 second video12- 12 second video
8Video aspect ratioSupported formats:
landscapeor16:9- Landscape (16:9)portraitor9:16- Portrait (9:16)
square (1:1) videos.Example: "landscape"Reference image URL array for image-to-videoImportant limitation: Only the first image is used as referenceWhen using reference images, the API will automatically detect the image aspect ratio and override the user-provided
aspect_ratio parameter.Solutions:- To precisely control the output video aspect ratio, do not use reference images (pure text-to-video)
- If you must use reference images, ensure the reference image itself has the target aspect ratio
["https://cdn.apimart.ai/doc/sora-2-preview.png"]Limitations:- Maximum file size: 10MB
- Supported formats: .jpeg, .jpg, .png, .webp
Response
Response status code, 200 on success
Response data array
Pricing
- Billing method: Per video duration (seconds)
- Specific pricing: Please refer to Pricing Page