Generate high-quality AI videos using OpenAI’s Sora 2 model.

Models

ModelDuration Options
openai/sora-25s, 10s, 15s, 20s
openai/sora-2-pro10s, 15s, 20s, 25s

Parameters

ParameterTypeRequiredDescription
promptstringYesText description of the video
durationintegerNoDuration in seconds
aspect_ratiostringNo16:9 or 9:16
image_urlstringNoReference image URL
cameo_video_urlstringNoCameo character video (max 4 seconds)
character_promptstringNoDescription of cameo character
safety_instructionstringNoSafety guidance for content

Example Request

curl -X POST https://api.unifically.com/v1/tasks \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "openai/sora-2",
    "input": {
      "prompt": "A dog running through a meadow in slow motion",
      "duration": 10,
      "aspect_ratio": "16:9"
    }
  }'

With Image Reference

curl -X POST https://api.unifically.com/v1/tasks \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "openai/sora-2",
    "input": {
      "prompt": "Make the subject dance on this background",
      "image_url": "https://example.com/background.jpg",
      "duration": 10
    }
  }'

With Cameo Character

curl -X POST https://api.unifically.com/v1/tasks \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "openai/sora-2",
    "input": {
      "prompt": "Make subject dance on the image background",
      "aspect_ratio": "16:9",
      "duration": 10,
      "image_url": "https://example.com/background.jpg",
      "cameo_video_url": "https://example.com/cameo.mp4",
      "character_prompt": "A friendly dancer with energetic movements"
    }
  }'

Response

{
  "code": 200,
  "success": true,
  "data": {
    "task_id": "abc123def456",
    "status": "pending"
  }
}

Pricing

Sora 2
DurationPrice
5s$0.05
10s$0.10
15s$0.15
20s$0.20
Sora 2 Pro
DurationPrice
10s$0.40
15s$0.60
20s$0.80
25s$1.00