Create a Kling video task
Submit a Kling text, image, Omni, or motion-control video task.
Create a Kling video task
curl -X POST "https://router.chbcloud.com/kling/{capability}/{model}" \
-H "Authorization: Bearer <YOUR_API_KEY>" \
-H "Content-Type: application/json" \
-d '{}'Successful response.
{
"code": 0,
"data": {},
"message": "string",
"request_id": "string"
}Creates an asynchronous Kling task. Valid capability and model combinations are documented by the model route. Use the URL to select the model, set external_task_id for business correlation, and do not automatically retry task creation.
Use the InnoPaaS AppKey as a Bearer token. Create or manage keys in Console. API key guide
Authorization
AuthorizationPath Parameters
capabilityVideo capability selected by the URL.
modelKling model selected by the URL; only documented capability-model combinations are valid.
Body
application/jsonmodelOptional; if present, must match the model path parameter.
promptRequired non-empty prompt for text-to-video routes.
optionsOptional external_task_id and callback_url.
contentsRequired input-content array for image-to-video, Omni, and motion-control routes.
settingsResolution, duration, and audio settings subject to the selected route.
Response
application/jsonSuccessful response.
codeGateway result code.
dataCreated task, public ID, external ID, status, and billing reservation.
messageResult message.
request_idRequest ID.
{
"code": 0,
"data": {},
"message": "string",
"request_id": "string"
}