Skip to main content

Video

POST https://gateway.primex.work/v1/videos/generations

Text-to-video generation with Sora 2 (720p portrait or landscape), billed per second of output video ($0.10/second).

Generate a video

curl https://gateway.primex.work/v1/videos/generations \
-H "Authorization: Bearer prx-YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "sora-2",
"prompt": "A drone shot over a neon city at night",
"seconds": 8,
"size": "720x1280"
}'

Job lifecycle

Video generation is asynchronous. The gateway manages the job with Azure and returns the finished video when it's ready. Billing is metered from the actual seconds of output produced — and, as with every endpoint, a failed generation costs nothing (see Billing).

ParameterDescription
promptText description of the scene.
secondsLength of the clip.
size720x1280 (portrait) or 1280x720 (landscape).