Skip to main content
POST
/
api
/
v3
/
openai
/
sora-2
/
text-to-video
sora-2 (text to video)
curl --request POST \
  --url https://api.example.com/api/v3/openai/sora-2/text-to-video
Sora 2 is a state-of-the-art video+audio generator. It advances prior video models with more accurate physics, sharper realism, synchronized audio, stronger steerability, and a wider stylistic range—built on the original Sora foundation.
curl -X POST "https://gptproto.com/api/v3/openai/sora-2/text-to-video" \
  -H "Authorization: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "prompt": "A video of a horse dancing.",
  "size": "720*1280",
  "duration": 4
}'
{
  "error": {
    "message": "Invalid signature",
    "type": "401"
  }
}

Parameters

ParameterTypeRequiredDefaultDescription
promptstring✅ YesA video of a horse dancing.The positive prompt for the generation.
sizestring❌ No720*1280The size of the generated media in pixels (widthheight).7201280, 1280*720
durationinteger❌ No4The duration of the generated video in seconds.4, 8, 12