Text to Video

them他Parameters 请see official文档 https://app.klingai.com/cn/dev/document-api/apiReference/updateNotice ParametersYes一致,对接is, 仅need将请求域名, API key 改成we

Endpoint

POST http://v98store.com/kling/v1/videos/text2video

cURL Command

curl -X POST 'http://v98store.com/kling/v1/videos/text2video' \ -H 'Content-Type: application/json' \ -H 'Authorization: Bearer YOUR_TOKEN' \ -d '{ "model_name": "kling-v2-5-turbo", "prompt": "in海滩度假 快乐场景. ", "duration": 10 }'

Parameters

NameInDescriptionRequired
Content-TypeheaderYes
AcceptheaderYes
AuthorizationheaderYes

Request Body

Example

{
  "model_name": "kling-v2-5-turbo",
  "prompt": "in海滩度假 快乐场景. ",
  "duration": 10
}

Responses

200 -

Example

{
  "code": 0,
  "message": "SUCCEED",
  "request_id": "795f5ea4-7746-4e3a-a184-75d44240f87f",
  "data": {
    "task_id": "814237883686625347",
    "task_status": "submitted",
    "task_info": {},
    "created_at": 1762157958060,
    "updated_at": 1762157958060
  }
}