Skip to main content
POST
/
v1
/
video
/
generations
Create video generation
curl --request POST \
  --url https://api.gravitex.ai/v1/video/generations \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "model": "<string>",
  "content": [
    {}
  ],
  "prompt": "<string>",
  "duration": 123,
  "resolution": "<string>",
  "ratio": "<string>"
}
'

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

Submit an async Seedance 2.0 job; returns task_id for polling. Use content or a simplified prompt.

Authentication

Authorization
string
required
Bearer Token, e.g. Bearer sk-xxxxxxxxxx

Request body

model
string
required
seedance-2-0 or seedance-2-0-fast
content
array
Multimodal items: text, image_url, video_url, audio_url, etc.
prompt
string
Alternative to content
duration
integer
default:"5"
4–15 seconds, or -1 for auto
resolution
string
default:"720p"
480p, 720p, 1080p (fast: no 1080p)
ratio
string
default:"16:9"
16:9, 9:16, 1:1, 4:3, 3:4, 21:9, adaptive

Example

curl -X POST "https://api.gravitex.ai/v1/video/generations" \
  -H "Authorization: Bearer sk-xxxxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "seedance-2-0",
    "content": [
      {"type": "text", "text": "Golden hour drone shot over mountains and clouds"}
    ],
    "duration": 5,
    "resolution": "720p",
    "ratio": "16:9",
    "generate_audio": true
  }'
With asset library:
curl -X POST "https://api.gravitex.ai/v1/video/generations" \
  -H "Authorization: Bearer sk-xxxxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "seedance-2-0",
    "content": [
      {"type": "text", "text": "Girl dancing on the beach"},
      {"type": "image_url", "image_url": {"url": "asset://asset-xxx"}, "role": "reference_image"}
    ],
    "duration": 5
  }'
Next: Get video generation