POST
/
v1
/
videos
/
generations
curl -X POST https://api.example.com/v1/videos/generations \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "sora-2",
    "prompt": "A person walking through a futuristic city"
  }'
Create a Sora video using the OpenAI official video format (supports sora-2, sora-2-pro).

Request Parameters

model
string
required
Model name: sora-2 or sora-2-pro.
prompt
string
required
Video description prompt.
character_id
string
Character ID (optional).
duration
number
Video duration (seconds).
curl -X POST https://api.example.com/v1/videos/generations \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "sora-2",
    "prompt": "A person walking through a futuristic city"
  }'