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

# Sora-2

Sora 2 is OpenAI's video generation model. It creates detailed, moving scenes with audio from natural language or images. Built on research into multimodal diffusion and trained on varied visual data, it can represent three-dimensional space, object motion, and continuity across a scene.

Sora 2 produces high-quality clips quickly, making it useful for iteration, concept development, and rough cuts. It suits social media and prototypes when turnaround time matters more than fine visual detail.

Sora 2 Pro adds support for 1080p video. It takes longer to render and costs more, but produces more refined, consistent results. Use it for high-resolution cinematic clips, marketing materials, and other projects that need greater visual precision.

### Model parameters

* Model IDs: `sora-2` (Sora 2) and `sora-2-pro` (Sora 2 Pro)
* Pricing: Check the [model marketplace](https://geekai.co/models?platform=openai\&type=video) for current prices.
* Endpoint: `https://geekai.co/api/v1/videos/generations`
* Parameters: [Video generation API](https://docs.geekai.co/en/api/video/generations.md)
* Authentication: [Get an API key](https://docs.geekai.co/en/docs/quick_start.md)

> [!NOTE]
>
> These models do not support the following common video generation parameters:
>
> * `negative_prompt`
> * `image_tail`
> * `with_audio`
> * `aspect_ratio`
> * `resolution` (use `size` instead)
> * `quality`
> * `fps`
> * `watermark`
>
> See also the [official Sora 2 video generation guide](https://platform.openai.com/docs/guides/video-generation).

Sora 2 supports the following `size` values:

* `720x1280`
* `1280x720`
* `1024x1792` (Sora 2 Pro only)
* `1792x1024` (Sora 2 Pro only)

Use `image` in place of OpenAI's `input_reference` to provide a single reference image, either as a URL or as Base64-encoded image data.

Use `duration` in place of OpenAI's `seconds` to set the video length. Supported values are `4` (default), `8`, and `12` seconds.

### Model pricing

Sora 2 and Sora 2 Pro are billed per second of generated video. The rate depends on the output size:

| Model | Size (`size`) | Price (CNY per second) |
| - | - | - |
| Sora 2 | 720x1280 | 0.75 |
| Sora 2 | 1280x720 | 0.75 |
| Sora 2 Pro | 720x1280 | 2.25 |
| Sora 2 Pro | 1280x720 | 2.25 |
| Sora 2 Pro | 1024x1792 | 3.76 |
| Sora 2 Pro | 1792x1024 | 3.76 |

When using a [discounted GeekAI route](https://docs.geekai.co/en/docs/model_price.md), multiply the list price by the route's price multiplier. For example, on the speed-prioritized high-availability route with a multiplier of `0.8`, a four-second Sora 2 clip costs `0.75 x 4 x 0.8 = 2.4` yuan. At the same size, Sora 2 Pro costs `2.25 x 4 x 0.8 = 7.2` yuan. Apply the same calculation to other configurations.

### Content restrictions

The Sora API enforces the following restrictions:

* No adult content: only material suitable for viewers under 18 is allowed. A setting to change this restriction is planned for the future.
* Copyrighted characters and music are rejected.
* Real people, including public figures, cannot be generated.
* Input images containing human faces are currently rejected.

Make sure your prompts, reference images, and transcripts comply with these rules to avoid failed generations.

### Text to video

Generate a video from a text description:

```bash theme={null}
curl --location --request POST 'https://geekai.co/api/v1/videos/generations' \
--header 'Content-Type: application/json' \
--header "Authorization: Bearer $GEEKAI_API_KEY" \
--data '{
    "model":"sora-2",
    "prompt":"Wide tracking shot: a pale blue-green two-door coupe travels along a desert highway. Heat ripples distort the air beneath the blazing midday sun.",
    "duration": 8
}'
```

The JSON response contains the generated video URL:

```json theme={null}
{
    "model": "sora-2",
    "task_id": "9286dfbc-e210-4445-a8df-284a93bf34f0",
    "task_status": "succeed",
    "video_result": [
        {
            "url": "https://static.geekai.co/video/2025/10/14/0a95ad44b0febd4c2dd8fd3c43962009.mp4",
            "duration": 8
        }
    ]
}
```

### Image to video

A reference image guides generation and serves as the first frame. This helps preserve the look of a brand asset, character, or setting. The image must match the target video's dimensions and resolution:

```bash theme={null}
curl --location --request POST 'https://geekai.co/api/v1/videos/generations' \
--header 'Content-Type: application/json' \
--header "Authorization: Bearer $GEEKAI_API_KEY" \
--data '{
    "model":"sora-2-pro",
    "prompt":"She turns, smiles, and slowly walks out of frame.",
    "image":"https://static.geekai.co/storage/2025/11/14/woman_skyline_original_720p.jpeg",
    "size": "1280x720",
    "duration": 8
}'
```

### Asynchronous tasks

Video generation can take some time. For longer requests, use GeekAI's asynchronous generation mode.

The [video generation API](https://docs.geekai.co/en/api/video/generations.md) defaults to `async: false`: the request waits for the finished video. Set `async` to `true` to receive a task ID instead, then poll for the generation status.

**Create a video generation task**

```bash theme={null}
curl --location --request POST 'https://geekai.co/api/v1/videos/generations' \
--header 'Content-Type: application/json' \
--header "Authorization: Bearer $GEEKAI_API_KEY" \
--data '{
    "model":"sora-2-pro",
    "prompt":"She turns, smiles, and slowly walks out of frame.",
    "image":"https://static.geekai.co/storage/2025/11/14/woman_skyline_original_720p.jpeg",
    "size": "1280x720",
    "duration": 8,
    "async": true
}'
```

The response includes the task ID:

```json theme={null}
{
    "model": "sora-2-pro",
    "task_id": "77e3772b-4e92-4fce-a24c-63907585689d",
    "task_status": "pending"
}
```

**Get the video result**

Use the returned task ID to check the status and retrieve the result:

```bash theme={null}
curl --location --request GET 'https://geekai.co/api/v1/videos/77e3772b-4e92-4fce-a24c-63907585689d' \
--header "Authorization: Bearer $GEEKAI_API_KEY"
```

Check `task_status` to determine whether generation has finished. The four possible values are:

* `pending`: The task has been created and is waiting to be processed.
* `running`: Generation is in progress.
* `succeed`: Generation succeeded and the result is available.
* `failed`: Generation failed, for example because of a content policy violation or another error.

While generation is in progress, the response looks like this:

```json theme={null}
{
    "model": "sora-2-pro",
    "task_id": "77e3772b-4e92-4fce-a24c-63907585689d",
    "task_status": "running"
}
```

Poll the result endpoint until `task_status` is `succeed`, then read the generated video URL:

```json theme={null}
{
    "model": "sora-2-pro",
    "task_id": "77e3772b-4e92-4fce-a24c-63907585689d",
    "task_status": "succeed",
    "video_result": [
        {
            "url": "https://static.geekai.co/video/2025/10/14/6c6b8c475899a1c82bcd59a84e78ab46.mp4"
        }
    ]
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.