Video
Sora 2 Pro Official video
OpenAI Sora 2 Pro Official — 720p/1024p/1080p. Text + image-to-video.
Category: Create · sora-2-pro-official
How to use & limits
- Text-to-video and image-to-video (image_urls[0] becomes the first frame).
- Fixed durations: 4, 8, 12, 16 or 20 seconds.
- Resolution: 720p, 1024p or 1080p.
- Aspect ratio: auto, 16:9 or 9:16 — auto is only valid with a reference image.
- image_urls accepts at most 1 image; prompt is required.
Capabilities
What this model supports, straight from the schema — no pricing, no infrastructure detail.
| Capability | Value |
|---|---|
billing_unit Billing unit | per_video |
text_to_video Text-to-video | Yes |
image_to_video Image-to-video | Yes |
allowed_resolutions Allowed resolutions | 720p, 1024p, 1080p |
Parameters
Fields accepted in params (or first-class, where applicable) for POST /generations.
| Name | Label | Type | Required | Default | Options | Min / Max | Description |
|---|---|---|---|---|---|---|---|
prompt | Prompt | textarea | Required | — | — | — | Video description (required). |
aspect_ratio | Aspect ratio | select | Optional | 16:9 | auto · 16:9 · 9:16 | — | Aspect ratio: auto, 16:9 or 9:16 (auto needs a reference image). |
resolution | Resolution | select | Optional | 1024p | 720p · 1024p · 1080p | — | Resolution: 720p, 1024p or 1080p. |
image_urls | Reference image (max 1) | multi_select | Optional | — | — | — – 1 | One optional reference image (max 1); enables image-to-video and becomes the first frame. |
duration | Duration | select | Optional | 8 | — | — | Fixed duration in seconds: 4, 8, 12, 16 or 20. |
Example request
curl -X POST https://caranguejo.art/api/v1/dev/generations \
-H "Authorization: Bearer $CK" \
-H "Content-Type: application/json" \
-d '{
"model": "sora-2-pro-official",
"prompt": "Cinematic drone shot flying through a misty forest at dawn, sun rays cutting through the trees.",
"params": {
"duration": 8,
"aspect_ratio": "16:9",
"resolution": "1024p"
}
}'
const res = await fetch("https://caranguejo.art/api/v1/dev/generations", {
method: "POST",
headers: {
"Authorization": "Bearer " + process.env.CK,
"Content-Type": "application/json",
},
body: JSON.stringify({
"model": "sora-2-pro-official",
"prompt": "Cinematic drone shot flying through a misty forest at dawn, sun rays cutting through the trees.",
"params": {
"duration": 8,
"aspect_ratio": "16:9",
"resolution": "1024p"
}
}),
});
const { data } = await res.json();
Example response
{
"id": "9f0c1a7e-…",
"object": "generation",
"model": "sora-2-pro-official",
"type": "video",
"status": "completed",
"output": {
"assets": [
{
"url": "https://media.caranguejo.art/outputs/example.mp4",
"type": "video"
}
]
}
}
The job's real cost is returned as credits_charged on the completed response — check GET /balance for the account balance.
Common errors for this job type:
insufficient_credits | Account balance can't cover the job cost. |
content_policy_violation | Prompt or media rejected by content policy. |
generation_timeout | The job exceeded the maximum processing time. |
rate_limited | Too many requests per minute. |
invalid_input | A required parameter is missing or outside the model's schema. |
generation_failed | Generic processing failure. |