Skip to main content
POST
https://ai-nebula.com
/
prod-api
/
nebula
/
v4
/
api
/
nebulaVideoCompletions
Text to Video - Submit Task
curl --request POST \
  --url https://ai-nebula.com/prod-api/nebula/v4/api/nebulaVideoCompletions \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "model": "<string>",
  "prompt": "<string>",
  "duration": "<string>",
  "aspect_ratio": "<string>",
  "resolution": "<string>",
  "return_url": true,
  "req_key": "<string>"
}
'
{
  "code": 200,
  "msg": "Operation successful",
  "data": {
    "task_id": "task-1234567890"
  }
}

Introduction

Submit text-to-video task, used to generate video based on text description.

Authentication

Authorization
string
required
Bearer Token, e.g., Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9... How to get: Obtain via the POST interface in the Authentication module at the top left, https://docs.openai-nebula.com/en/nebula-lab-v4/endpoint/get-token

Request Parameters

model
string
required
Model name
prompt
string
required
Text prompt for video generation
duration
string
required
Video duration, supports: 3,5, 8, 10, 12
aspect_ratio
string
required
Aspect ratio
resolution
string
Video resolution
return_url
boolean
Whether to return video URL
req_key
string
Request key

Example Code

curl -X POST "https://ai-nebula.com/prod-api/nebula/v4/api/nebulaVideoCompletions" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer sk-xxxxxxxxxx" \
  -d '{
    "model": "video-model-v1",
    "prompt": "A cute little cat playing on the grass",
    "duration": 5,
    "aspect_ratio": "16:9"
  }'

Response Example

{
  "code": 200,
  "msg": "Operation successful",
  "data": {
    "task_id": "task-1234567890"
  }
}