Skip to main content
POST
/
v1
/
videos
sora-2 (text to video)
curl --request POST \
  --url https://api.example.com/v1/videos
Sora is OpenAI’s newest frontier in generative media – a state-of-the-art video model capable of creating richly detailed, dynamic clips with audio from natural language or images. Built on years of research into multimodal diffusion and trained on diverse visual data, Sora brings a deep understanding of 3D space, motion, and scene continuity to text-to-video generation.
curl --location "https://gptproto.com/v1/videos" \
  --header "Authorization: Bearer YOUR_API_KEY" \
  --form 'model="sora-2"' \
  --form 'prompt="A calico cat playing a piano on stage"'
{
  "error": {
    "message": "Invalid signature",
    "type": "401"
  }
}

Parameters

ParameterTypeRequiredDefaultDescription
modelstring✅ Yessora-2The video generation model to use.
promptstring✅ Yes-Text prompt that describes the video to generate.
sizestring✅ Yes720x1280The size of the video to generate.
secondsstring✅ Yes4The duration of the video to generate.