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

# Azure OpenAI Sora

> Generate videos with Azure-hosted Sora

Generate videos using Sora-2 through Azure OpenAI.

## Setup

```bash theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
export AZURE_API_KEY=your-key
export AZURE_API_BASE=https://your-resource.openai.azure.com
export AZURE_API_VERSION=2024-02-01
```

## Usage

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
from praisonaiagents import VideoAgent

agent = VideoAgent(llm="azure/sora-2")
video = agent.start("A bird flying", output="bird.mp4")
```

## Models

| Model                       | Description        |
| --------------------------- | ------------------ |
| `azure/sora-2`              | Standard quality   |
| `azure/sora-2-pro`          | Higher quality     |
| `azure/sora-2-pro-high-res` | Maximum resolution |

## Parameters

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
video = agent.generate(
    prompt="Your description",
    seconds="4",           # 4, 8, or 12
    size="1280x720"
)
```

## Duration Options

* `"4"` - 4 seconds
* `"8"` - 8 seconds
* `"12"` - 12 seconds
