mingyan
Sora - Create Task
Create video generation tasks using Sora models with support for 4, 8, and 12 second durations and multiple resolutions
Sora Create Video Task
Create high-quality video generation tasks using Sora's advanced AI models. Current duration options are
4, 8, and 12 seconds.Authentication
Get KeyAll requests require a Bearer token in the request header:
cURL
Authorization: Bearer {{key}}
Base URL
https://zcbservice.aizfw.cn/kyyReactApiServerbaseUrl is the shared prefix for all public APIs. The api field in the current page frontmatter shows the full endpoint. Use this baseUrl as the common prefix when reading or composing request paths.Request Parameters
modelstringrequiredModel name, available options:
openAiSora2Plus- Supports 4, 8, 12 secondsopenAiSora2Pro- Supports 4, 8, 12 seconds
promptstringrequiredVideo generation prompt describing the desired video content
Example:
"A cat dancing in the rain, cinematic style"sizestringVideo dimensions, defaults to
720x1280Available options:
720x1280- Portrait1280x720- Landscape
Use either this or
aspect_ratio, not bothaspect_ratiostringVideo aspect ratio
Available options:
16:9- Landscape9:16- Portrait
Use either this or
size, not bothdurationintegerVideo duration in seconds. Supported values:
4, 8, 12Use either this or
seconds, not bothsecondsintegerVideo duration in seconds. Supported values:
4, 8, 12Use either this or
duration, not bothinput_referencearrayReference image array to guide video generation, supports up to 1 images
Important Notes:
- Do not upload real portrait images, as they are likely to fail
- For
openAiSora2-xxxseries models, image format must match the ratio - Only supports 1280×720 (16:9 landscape) and 720×1280 (9:16 portrait)
Use either this or
image_urls, not bothimage_urlsarrayReference image URL array to guide video generation
Important Notes:
- Do not upload real portrait images, as they are likely to fail
- For
openAiSora2-xxxseries models, image format must match the ratio - Only supports 1280×720 (16:9 landscape) and 720×1280 (9:16 portrait)
Use either this or
input_reference, not bothResponse Parameters
idstringUnique identifier for the video generation task, used for subsequent status queries
objectstringObject type, always
video.generationcreatedintegerTask creation timestamp
modelstringModel name used
statusstringTask status:
queued- Queuedprocessing- Processing
errorstringError message, returned when status is
failedModel Features
openAiSora2Plus
OpenAI Sora2 Plus version, supports 4, 8, 12 seconds, enhanced model
openAiSora2Pro
OpenAI Sora2 Pro version, supports 4, 8, 12 seconds for higher-quality generation
Parameter Selection Rules
Mutually Exclusive Parameters:
- Size parameters: Choose either
sizeoraspect_ratio - Duration parameters: Choose either
durationorseconds - Reference images: Choose either
input_referenceorimage_urls
Video Duration Support
| Model | Supported Durations |
|---|---|
| openAiSora2Plus | 4 seconds, 8 seconds, 12 seconds |
| openAiSora2Pro | 4 seconds, 8 seconds, 12 seconds |
Best Practices:
- Video generation is asynchronous, use the returned
idto query task status and results - Clearly describe desired visual effects and style in the prompt
- Reference images can guide overall style, supports up to 1 images
- Choose appropriate aspect ratio to match your use case
Prompt Suggestions:
- Include specific scene descriptions
- Add style keywords (e.g., "cinematic", "artistic", "realistic")
- Describe actions and movement patterns
- Specify lighting and color preferences

