/APIXO Docs

Sora 2

OpenAI's advanced text-to-video and image-to-video generation

Sora 2

OpenAI's state-of-the-art video generation model.

Model ID
sora-2
Price
$0.10-0.15/video
Speed
2-5 minutes
Type
Video

Capabilities

ModeDescription
text-to-videoGenerate video from text descriptions
image-to-videoAnimate still images into video

Parameters

For common parameters (request_type, callback_url), see Request Format.

ParameterTypeRequiredDefaultDescription
modestringYes-text-to-video or image-to-video
promptstringYes-Video description (max 10,000 characters)
image_urlstringNo-Starting image for image-to-video
aspect_ratiostringNo16:916:9, 9:16, or 1:1
durationstringNo10Video duration: 10 or 15 seconds
n_framesintegerNo-Number of frames (model-dependent)

Examples

Text to Video

curl -X POST https://api.apixo.ai/api/v1/generateTask/sora-2 \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "request_type": "async",
    "input": {
      "mode": "text-to-video",
      "prompt": "A drone shot flying over a misty forest at sunrise, cinematic",
      "aspect_ratio": "16:9",
      "duration": "10"
    }
  }'

Image to Video

curl -X POST https://api.apixo.ai/api/v1/generateTask/sora-2 \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "request_type": "async",
    "input": {
      "mode": "image-to-video",
      "prompt": "Add gentle wind movement to the trees and clouds drifting",
      "image_url": "https://example.com/landscape.jpg",
      "aspect_ratio": "16:9"
    }
  }'

Tips

  • Polling: Wait 120 seconds, then poll every 15 seconds
  • Timeout: Set max wait to 10 minutes
  • Longer videos take proportionally longer to generate
  • Be specific about camera movements and scene dynamics

On this page