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>"
}
'Seedance 2.0
Create video generation
Seedance 2.0 POST /v1/video/generations
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; returnstask_id for polling. Use content or a simplified prompt.
Authentication
Bearer Token, e.g.
Bearer sk-xxxxxxxxxxRequest body
seedance-2-0 or seedance-2-0-fastMultimodal items:
text, image_url, video_url, audio_url, etc.Alternative to
content4â15 seconds, or
-1 for auto480p, 720p, 1080p (fast: no 1080p)16:9, 9:16, 1:1, 4:3, 3:4, 21:9, adaptiveExample
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
}'
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
}'
âI