POST
/
openapi
/
v2
/
aigc
/
video
/
kling-v2.6-pro
/
create
Kling v2.6 Pro
curl --request POST \
  --url https://castar.world/openapi/v2/aigc/video/kling-v2.6-pro/create \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "model": "kling-v2.6-pro",
  "prompt": "<string>",
  "duration": 123,
  "feature": {
    "generationType": "Text2Video",
    "aspectRatio": "16:9",
    "generateAudio": true
  },
  "negativePrompt": ""
}
'
{
  "id": "<string>"
}

Authorizations

x-api-key
string
header
required

Body

application/json
model
enum<string>
required
Available options:
kling-v2.6-pro
prompt
string
required
Required string length: 1 - 2500
duration
number
required

5 ,10

feature
文生视频 · object
required
negativePrompt
string
default:""

Response

200 - application/json

Default Response

id
string
required