Sora format
curl --request POST \
--url https://api.gravitex.ai/v1/videos \
--header 'Authorization: <authorization>'Sora format
OpenAI-compatible POST /v1/videos
POST
/
v1
/
videos
Sora format
curl --request POST \
--url https://api.gravitex.ai/v1/videos \
--header 'Authorization: <authorization>'Documentation Index
Fetch the complete documentation index at: https://docs.gravitex.ai/llms.txt
Use this file to discover all available pages before exploring further.
Introduction
Sora 2 supports the OpenAI Videos API in addition to the unified Submit video task endpoint:- Create:
POST /v1/videos(multipart recommended) - Poll:
GET /v1/videos/{task_id} - Download: Download video
Only Sora 2 uses
/v1/videos and the dedicated download endpoint. Other models use /v1/video/generations.Authentication
Bearer Token, e.g.
Bearer sk-xxxxxxxxxxRequest examples
- Create (multipart)
- Get task
curl -X POST "https://api.gravitex.ai/v1/videos" \
-H "Authorization: Bearer sk-xxxxxxxxxx" \
-F "model=sora-2" \
-F "prompt=A cute cat playing in a sunny garden" \
-F "seconds=4" \
-F "size=1280x720"
curl -X GET "https://api.gravitex.ai/v1/videos/video_69095b4ce0048190893a01510c0c98b0" \
-H "Authorization: Bearer sk-xxxxxxxxxx"
⌘I