> ## Documentation Index
> Fetch the complete documentation index at: https://docs.routerbase.com/llms.txt
> Use this file to discover all available pages before exploring further.

# OpenAI Sora 2 — Image to Video

> Animate a reference image with a text prompt at 720p, with synchronized audio.

|              |                     |
| ------------ | ------------------- |
| **Model ID** | `openai/sora-2-i2v` |
| **Family**   | `sora-2`            |
| **Task**     | `image-to-video`    |
| **Modality** | Video               |
| **Upstream** | OpenAI Sora 2       |

<Note>
  Need 1080p output? Use the
  [Sora 2 Pro Image-to-Video](/openai-sora-2-pro-api/image-to-video)
  variant (`openai/sora-2-pro-i2v`). Pricing differs significantly.
</Note>

## Endpoint

```http theme={null}
POST https://routerbase.com/v1/videos/generations
```

Async — returns `{id, status: "pending"}`; poll
`GET /v1/videos/generations/{id}` until `success` or `failed`.

## Parameters

<ParamField body="prompt" type="string" required>
  Text prompt describing the desired motion or scene change. Audio cues
  in the prompt feed Sora 2's synthesized audio track. **Maximum 2000
  characters** — longer prompts are rejected with `400 invalid_request_error`.
</ParamField>

<ParamField body="image_urls" type="string[]" required>
  Exactly one source-image URL (PNG / JPEG, publicly accessible over
  HTTPS). Mapped to upstream `image`.
</ParamField>

<ParamField body="duration" type="&#x22;4&#x22; | &#x22;8&#x22; | &#x22;12&#x22;" default="&#x22;4&#x22;">
  Length of the generated clip in seconds. This is the only price
  lever — see [pricing](/openai-sora-2-api/quickstart#pricing).
</ParamField>

## Example

```bash theme={null}
curl https://routerbase.com/v1/videos/generations \
  -H "Authorization: Bearer $ROUTERBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "openai/sora-2-i2v",
    "prompt": "the cat slowly turns its head and blinks, soft purr",
    "image_urls": ["https://example.com/cat.jpg"],
    "duration": "4"
  }'
```

```json theme={null}
{ "id": "vid_xyz789…", "status": "pending", "model": "openai/sora-2-i2v" }
```

Poll until terminal:

```bash theme={null}
curl https://routerbase.com/v1/videos/generations/vid_xyz789… \
  -H "Authorization: Bearer $ROUTERBASE_API_KEY"
```

```json theme={null}
{
  "id": "vid_xyz789…",
  "status": "success",
  "data": [{ "url": "https://…mp4" }]
}
```

<Note>
  Try it live in the
  [Sora 2 Playground](https://routerbase.com/models/openai/sora-2/image-to-video).
</Note>
