Azure OpenAI Sora
Generate videos with Azure-hosted Sora
Generate videos using Sora-2 through Azure OpenAI.
Setup
export AZURE_API_KEY=your-key
export AZURE_API_BASE=https://your-resource.openai.azure.com
export AZURE_API_VERSION=2024-02-01Usage
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
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