openai/sora-2/image-to-video
Sora 2 is OpenAI's image-to-video AI model. Bring static images to life with fluid animation, consistent character motion, and professional-grade video output.
PNG, JPEG, WebP, or GIF · 20 MiB maximum
Example output — click Run to generate your own
Send your first request
OpenAI-compatible endpoint with unified authentication and usage tracking.
https://api.sandbase.ai/v1/runopenai/sora-2/image-to-videoInput Schema
5 parameters · 2 required · 3 optional
| Parameter | Type | Required | Description |
|---|---|---|---|
image | string | Required | The URL of the image to use as the first frame |
prompt | string | Required | The text prompt describing the video you want to generate · Min length: 1 · Max length: 5000 |
duration | integer | Optional | Duration of the generated video in seconds · Options: 4, 8, 12, 16, 20 · Default: 4 48121620 |
resolution | string | Optional | The resolution of the generated video · Options: auto, 720p · Default: "auto" auto720p |
aspect_ratio | string | Optional | The aspect ratio of the generated image. · Options: 21:9, 16:9, 3:2, 4:3, 5:4, 1:1, 4:5, 3:4, 2:3, 9:16 21:916:93:24:35:41:14:53:42:39:16 |
Output Schema
| Field | Type | Description |
|---|---|---|
id | string | Unique identifier for the generation task |
status | string | Task status: pending, running, completed, failed, timeout |
model | string | Model used for the generation |
outputs | array | Array of output items |
outputs[].url | string | URL of the generated artifact |
outputs[].content_type | string | MIME type (e.g. image/png, video/mp4) |
error | object | null | Error details if failed, null on success |
error.type | string | Machine-readable error type code |
error.message | string | Human-readable error description |
Async Workflow
This model uses asynchronous execution. Submit a request and poll for the result.
- Submit — POST to /v1/run, receive an
id - Poll — GET /v1/run/{id} until status is
completed,failed, ortimeout - Retrieve — Read
outputsfrom the completed response
Code Examples
Ready-to-run snippets
# Step 1: Submit
curl -X POST https://api.sandbase.ai/v1/run \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"model": "openai/sora-2/image-to-video",
"image": "https://static.sandbase.ai/examples/openai/sora-2/image-to-video/input_image_0.png",
"prompt": "Front-facing 'invisible' action-cam on a skydiver in freefall above bright clouds; camera locked on his face. He speaks over the wind with clear lipsync: 'This is insanely fun! You've got to try it—book a tandem and go!' Natural wind roar, voice close-mic'd and slightly compressed so it's intelligible. Midday sun, goggles and jumpsuit flutter, altimeter visible, parachute rig on shoulders. Energetic but stable framing with subtle shake; brief horizon roll. End on first tug of canopy and wind noise dropping.",
"duration": 4,
"resolution": "auto"
}'
# Step 2: Poll result (replace <id>)
curl https://api.sandbase.ai/v1/run/<id> \
-H "Authorization: Bearer YOUR_API_KEY"API README
Sora 2 Image To Video
Sora 2 Image To Video is built for cinematic video generation, with this exact route focused on source-image animation. Sora 2 is OpenAI's image-to-video AI model. Bring static images to life with fluid animation, consistent character motion, and professional-grade video output. It is designed for production workflows that need a clearly scoped media operation instead of a generic assistant response, preserving the supplied direction while returning an artifact ready for review, iteration, or downstream assembly.
The request surface keeps creative direction and delivery choices explicit through prompt, duration, image_url, sync_mode, resolution, aspect_ratio. Teams can lock source material, describe the intended result, choose supported output controls, and rerun the same request structure across variations. This makes experiments easier to compare and larger pipelines easier to operate without hiding important decisions inside an opaque preset.
Highlights
- Source-Image Animation. The
openai/sora-2/image-to-videoroute is dedicated to source-image animation, keeping inputs and outputs matched to this operation. - Coherent Motion And Scene Continuity. Within
openai/sora-2/image-to-video, documented prompt and media controls direct coherent motion and scene continuity while keeping the brief close to the result. - Directable Visual Storytelling. The
openai/sora-2/image-to-videoresult provides directable visual storytelling in a machine-consumable form for review and downstream production. - Route-specific control. For
openai/sora-2/image-to-video, documented controls includeprompt,duration,image_url,sync_mode,resolution,aspect_ratio, defining the supported variation space for this exact route.
Pricing
| Configuration | Price |
|---|---|
| 4 seconds | $0.4000 |
| 8 seconds | $0.8000 |
| 12 seconds | $1.2000 |
| 16 seconds | $1.6000 |
| 20 seconds | $2.0000 |
| Base-price example | $0.4000 |
| Rate | $0.1 per second |
When to Use
| Scenario | Why it fits |
|---|---|
| Choose this route | When the deliverable is specifically source-image animation, not a neighboring generation or editing task. |
| Production iteration | When creative teams need repeatable coherent motion and scene continuity with an explicit request payload. |
| Automated pipelines | When directable visual storytelling must flow into review, storage, compositing, or publishing. |
| Controlled variations | When a stable brief should be rerun while changing only documented inputs. |
| Prototype to scale | When the same openai/sora-2/image-to-video contract should serve a single experiment and a larger batch later. |
Prompt Guide
Lead with the subject or source, then state the transformation, important spatial or temporal details, style, and finish. Supply only documented fields, keep media URLs reachable, and vary one control at a time when comparing outputs.
{
"prompt": "A directed creative request with subject, setting, style, motion, and finish.",
"image": "https://example.com/reference.jpg"
}
Technical Specs
| Property | Value |
|---|---|
| Model ID | openai/sora-2/image-to-video |
| Required inputs | prompt |
prompt | string |
duration | integer; options: 4, 8, 12, 16, 20; default: 4 |
image_url | string |
sync_mode | boolean; default: false |
resolution | string; options: auto, 720p; default: auto |
aspect_ratio | string; options: auto, 9:16, 16:9; default: auto |
delete_video | boolean; default: true |
character_ids | array |
safety_tolerance | string; default: 6 |
detect_and_block_ip | boolean; default: false |
Related Models
openai/sora-2/characters

