POST
/
v1
/
videos
curl -X POST "https://www.anyfast.ai/v1/videos" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "sora-2",
    "prompt": "A beautiful sunset over the ocean",
    "size": "1280x720",
    "duration": 10
  }'

Create Video (Sora - OpenAI Format)

Create videos using Sora models with the official OpenAI video API format. Supports storyboards, characters, and private mode.

Endpoint

POST /v1/videos

Request Parameters

ParameterTypeRequiredDescription
modelstringYessora-2 or sora-2-pro
promptstringYesText prompt for video generation
sizestringNoVideo size (e.g., 1280x720)
durationintegerNoVideo duration in seconds
imagesarrayNoReference images
character_urlstringNoURL to a character video for character-based generation
storyboardarrayNoStoryboard segments for structured video creation
privatebooleanNoEnable private mode
curl -X POST "https://www.anyfast.ai/v1/videos" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "sora-2",
    "prompt": "A beautiful sunset over the ocean",
    "size": "1280x720",
    "duration": 10
  }'