Create generation task
Validate input, deduct credits, create a task, and return taskId.
Payload parameters
- Required. One of sora-2-text-to-video, sora-2-image-to-video, sora-2-pro-text-to-video, sora-2-pro-image-to-video, sora-2-pro-storyboard.
- Conditional. Required for all models except sora-2-pro-storyboard.
- Conditional. Base64 data URL like data:image/png;base64,... Required for image-to-video if no imageUrl.
- Conditional. Public image URL used when imageData is not provided.
- Optional. portrait or landscape. Default: landscape.
- Optional. 10, 15, or 25 (storyboard only). Defaults vary by model.
- Optional. standard or high. Only for Pro text/image models.
- Optional. Remove watermark for non-storyboard models. Default: true.
- Conditional. Required for sora-2-pro-storyboard. Array of '{ Scene, duration }'.
Notes
- imageData takes precedence over imageUrl when both are provided.
- prompt is optional for storyboard and is not sent to the provider; use shots for content.
- nFrames is normalized to the allowed values per model.
- removeWatermark defaults to true for non-storyboard models.
- shots must include Scene (capital S) and duration > 0.
Sample requests
curl -X POST https://freesoragenerator.com/api/v1/video/sora-pro \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "sora-2-pro-text-to-video",
"prompt": "A cinematic shot of a futuristic city at sunset.",
"aspectRatio": "landscape",
"nFrames": "10",
"size": "high",
"removeWatermark": true
}'curl -X POST https://freesoragenerator.com/api/v1/video/sora-pro \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "sora-2-image-to-video",
"prompt": "Turn this image into a dynamic 10s clip.",
"imageUrl": "https://example.com/reference.png",
"aspectRatio": "portrait",
"nFrames": "10"
}'curl -X POST https://freesoragenerator.com/api/v1/video/sora-pro \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "sora-2-pro-storyboard",
"shots": [
{ "Scene": "Establishing shot of a city skyline at dusk", "duration": 5 },
{ "Scene": "Close-up of a runner splashing through puddles", "duration": 5 }
],
"aspectRatio": "landscape",
"nFrames": "10"
}'Sample response
{
"code": 0,
"message": "ok",
"data": {
"taskId": "281e5b0*********************f39b9"
}
}