跳转到主要内容
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

Authorization
string
必填
Bearer Token, e.g. Bearer sk-xxxxxxxxxx

Request examples

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"
See OpenAI Videos API and Submit video task.