POST
/
openapi
/
v2
/
aigc
/
video
/
viduq2
/
create
Vidu Q2
curl --request POST \
  --url https://castar.world/openapi/v2/aigc/video/viduq2/create \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "model": "viduq2",
  "images": [
    "<string>"
  ],
  "prompt": "<string>",
  "duration": 4.5,
  "resolution": "540p",
  "seed": 123,
  "bgm": false,
  "offPeak": false
}
'
{
  "id": "<string>"
}

Authorizations

x-api-key
string
header
required

Body

application/json
model
enum<string>
required
Available options:
viduq2
images
string[]
required
Minimum array length: 1
prompt
string
required
Required string length: 1 - 2000
duration
number
required
Required range: 1 <= x <= 8
resolution
enum<string>
required
Available options:
540p,
720p,
1080p
seed
number
bgm
boolean
default:false
offPeak
boolean
default:false

Response

200 - application/json

Default Response

id
string
required