查询任务(免费)
GET /kling/v1/{action}/{action2}/{task_id}
概览
| Method | GET |
|---|---|
| Path | /kling/v1/{action}/{action2}/{task_id} |
| Type | http |
| Status | 1 |
| Module | 2102810 |
| Folder | 46920504 |
参数
{ "query": [], "path": [ { "id": "action#0", "name": "action", "required": true, "description": "images或videos\n", "type": "string", "enable": true, "sampleValue": "videos" }, { "id": "action2#0", "name": "action2", "required": true, "description": "generations(images)、text2video(videos)、image2video(videos)、lip-sync(videos)、kolors-virtual-try-on(images)\n", "type": "string", "enable": true, "sampleValue": "text2video" }, { "id": "task_id#0", "name": "task_id", "required": true, "description": "任务ID\n", "type": "string", "enable": true, "sampleValue": "CjgHYGhmPtsAAAAAAE9m7g" } ], "cookie": [], "header": [ { "id": "NQs7bxnpZf", "name": "Content-Type", "required": true, "description": "", "type": "string", "enable": true, "sampleValue": "application/json" }, { "id": "qb8tEQbCty", "name": "Accept", "required": true, "description": "", "type": "string", "enable": true, "sampleValue": "application/json" }, { "required": true, "description": "", "type": "string", "id": "gBxcCbXhsa", "enable": true, "name": "Authorization", "sampleValue": "Bearer {{YOUR_API_KEY}}" } ] }
请求体
{ "type": "application/json", "parameters": [], "jsonSchema": { "type": "object", "properties": {}, "x-apifox-orders": [] }, "mediaType": "", "examples": [ { "value": "", "mediaType": "application/json", "description": "" } ], "oasExtensions": "" }
响应
[ { "id": 582389294, "name": "OK", "code": 200, "contentType": "json", "jsonSchema": { "type": "object", "properties": { "id": { "type": "string" }, "object": { "type": "string" }, "created": { "type": "integer" }, "choices": { "type": "array", "items": { "type": "object", "properties": { "index": { "type": "integer" }, "message": { "type": "object", "properties": { "role": { "type": "string" }, "content": { "type": "string" } }, "required": [ "role", "content" ], "x-apifox-orders": [ "role", "content" ] }, "finish_reason": { "type": "string" } }, "x-apifox-orders": [ "index", "message", "finish_reason" ] } }, "usage": { "type": "object", "properties": { "prompt_tokens": { "type": "integer" }, "completion_tokens": { "type": "integer" }, "total_tokens": { "type": "integer" } }, "required": [ "prompt_tokens", "completion_tokens", "total_tokens" ], "x-apifox-orders": [ "prompt_tokens", "completion_tokens", "total_tokens" ] } }, "required": [ "id", "object", "created", "choices", "usage" ], "x-apifox-orders": [ "id", "object", "created", "choices", "usage" ] }, "itemSchema": {}, "description": "", "mediaType": "", "headers": [], "oasExtensions": "" } ]
响应示例
[ { "name": "成功示例", "responseId": 582389294, "data": "{\r\n \"code\": 0,\r\n \"data\": {\r\n \"task_id\": \"CjMT7WdSwWcAAAAAALvB3g\",\r\n \"created_at\": 1733851336696,\r\n \"updated_at\": 1733851344553,\r\n \"task_result\": {\r\n \"images\": [\r\n {\r\n \"id\": \"\",\r\n \"url\": \"https://cdn.klingai.com/bs2/upload-kling-api/0923471513/image/CjMT7WdSwWcAAAAAALvB3g-0_raw_image_0.png\"\r\n }\r\n ]\r\n },\r\n \"task_status\": \"succeed\",\r\n \"task_status_msg\": \"\"\r\n },\r\n \"message\": \"SUCCEED\",\r\n \"request_id\": \"CjNTkGdSwxYAAAAAALud5A\"\r\n}", "description": "", "oasKey": "", "oasExtensions": "", "id": 454723175 } ]