> ## 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 Pro API

> Quickstart for OpenAI Sora 2 Pro — text-to-video and image-to-video at 720p or 1080p, with synchronized audio.

## Overview

**OpenAI Sora 2 Pro** is the high-fidelity tier of OpenAI's flagship
video model on RouterBase. Compared to the Basic Sora 2 tier, Pro
unlocks **1080p output** in addition to 720p, with the same 4 / 8 / 12
second clip durations and synchronized-audio synthesis. Both
**text-to-video** and **image-to-video** are supported.

|                     |                                   |
| ------------------- | --------------------------------- |
| **Provider**        | OpenAI                            |
| **Family**          | `sora-2-pro`                      |
| **Modality**        | Video                             |
| **Supported tasks** | `text-to-video`, `image-to-video` |
| **Resolutions**     | 720p, 1080p                       |
| **Durations**       | 4s, 8s, 12s                       |

If you don't need 1080p, the cheaper [Sora 2 (Basic)](/openai-sora-2-api/quickstart)
tier may be a better fit.

## Endpoint

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

This is an **async** endpoint. The POST returns immediately with
`{id, status: "pending"}`; poll `GET /v1/videos/generations/{id}`
until `status` is `success` (with `data: [{url}]`) or `failed`.

## Playground

Try Sora 2 Pro live without writing code:

* [Sora 2 Pro — Text-to-Video](https://routerbase.com/models/openai/sora-2-pro/text-to-video)
* [Sora 2 Pro — Image-to-Video](https://routerbase.com/models/openai/sora-2-pro/image-to-video)

## Supported Tasks

* [`text-to-video`](/openai-sora-2-pro-api/text-to-video) — generate a
  clip from a text prompt only. Reachable via `openai/sora-2-pro-t2v`.
* [`image-to-video`](/openai-sora-2-pro-api/image-to-video) — animate a
  reference image with a text prompt. Reachable via
  `openai/sora-2-pro-i2v`.

## Pricing

Pro price is `duration × resolution`. The same per-second rate applies
to text-to-video and image-to-video.

| Duration | 720p   | 1080p  |
| -------- | ------ | ------ |
| 4s       | \$1.14 | \$1.90 |
| 8s       | \$2.28 | \$3.80 |
| 12s      | \$3.42 | \$5.70 |

## Authentication

All requests require a Bearer token — create one at
[routerbase.com/api-key](https://routerbase.com/api-key).

```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-pro-t2v", "prompt": "…", "resolution": "1080p"}'
```
