Create Sora 2 video
Kick off a Sora 2 or Sora Pro generation job with text-to-video or optional image-to-video prompts.
Payload parameters
- Required. Use "sora-2" or "sora-2-pro" to target the model variant you need.
- Required. Natural language description of the scene you want Sora to create.
- Optional (recommended). Base64 data URL with prefix "data:image/*;base64," for image-to-video mode.
- Optional. Legacy reference image URL; still supported but lower priority than imageData.
- Optional. Supported values: "9:16" (default) or "16:9".
- Optional. Whether to display the video publicly; default is true.
- Optional (VIP only). Target video pid for continuation/remix features.
- Optional (VIP only). Character control array; each item includes url and timestamps.
- Optional. HTTPS endpoint that receives the final result payload when the task succeeds.
Notes
- Responses return immediately with a taskId; poll check-result until status is succeeded or failed.
- Provide webHook to receive the final payload asynchronously without running a polling loop.
Sample request
curl -X POST https://freesoragenerator.com/api/v1/video/sora-video \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "sora-2-pro",
"prompt": "A cinematic shot of a futuristic city at sunset, captured in 4K.",
"imageData": "data:image/png;base64,iVBORw0KGgoAAA...",
"aspectRatio": "9:16",
"isPublic": true
}'Sample response
{
"code": 0,
"message": "ok",
"data": {
"id": "task_1234567890"
}
}