POST
/kling/v1/images/kolors-virtual-try-on虚拟试穿
API Key application/json
请求示例
curl -X POST https://top.qingyuntop.ai/kling/v1/images/kolors-virtual-try-on \
-H "Authorization: Bearer ${QINGYUN_TOP_API_KEY}" \
-H "Content-Type: application/json" \
-d '{
"model_name": "kolors-virtual-try-on-v1",
"human_image": "https://h2.inkwai.com/bs2/upload-ylab-stunt/se/ai_portal_queue_mmu_image_upscale_aiweb/3214b798-e1b4-4b00-b7af-72b5b0417420_raw_image_0.jpg",
"cloth_image": "https://imageproxy.zhongzhuan.chat/api/proxy/image/1db2a32c24087cab3405a00ee4454c94.jpg",
"callback_url": ""
}'请求参数
| 参数 | 位置 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|---|
Content-Type | Header | string | 否 | - | application/json |
Authorization | Header | string | 否 | - | Bearer {{YOUR_API_KEY}} |
model_name | JSON body | string | 是 | 模型名称 枚举值:kolors-virtual-try-on-v1, kolors-virtual-try-on-v1-5 | - |
human_image | JSON body | string | 是 | 上传的人物图片;支持传入图片Base64编码或图片URL(确保可访问);图片格式支持.jpg / .jpeg / .png;图片文件大小不能超过10MB,图片宽高尺寸不小于300px | - |
cloth_image | JSON body | string | 是 | 虚拟试穿的服饰图片 | - |
callback_url | JSON body | string | 否 | - | - |
返回响应 (200)
此部分没有定义参数。
来源原始接口定义(用于追溯)
以下内容来自 Apifox 快照,可能包含兼容层字段或旧示例;公开调用请以本页的协议说明和当前模型列表为准。
{
"id": 495899816,
"name": "虚拟试穿",
"type": "http",
"serverId": "",
"preProcessors": [],
"postProcessors": [],
"inheritPreProcessors": {},
"inheritPostProcessors": {},
"description": "",
"operationId": "",
"sourceUrl": "",
"method": "post",
"path": "/kling/v1/images/kolors-virtual-try-on",
"tags": [],
"status": -1,
"requestBody": {
"type": "application/json",
"parameters": [],
"jsonSchema": {
"type": "object",
"properties": {
"model_name": {
"type": "string",
"description": "模型名称 枚举值:kolors-virtual-try-on-v1, kolors-virtual-try-on-v1-5"
},
"human_image": {
"type": "string",
"description": "上传的人物图片;支持传入图片Base64编码或图片URL(确保可访问);图片格式支持.jpg / .jpeg / .png;图片文件大小不能超过10MB,图片宽高尺寸不小于300px"
},
"cloth_image": {
"type": "string",
"description": "虚拟试穿的服饰图片"
},
"callback_url": {
"type": "string"
}
},
"required": [
"human_image",
"cloth_image",
"model_name"
],
"x-apifox-orders": [
"model_name",
"human_image",
"cloth_image",
"callback_url"
]
},
"examples": [
{
"mediaType": "application/json",
"value": "{\r\n \"model_name\": \"kolors-virtual-try-on-v1\",\r\n \"human_image\": \"https://h2.inkwai.com/bs2/upload-ylab-stunt/se/ai_portal_queue_mmu_image_upscale_aiweb/3214b798-e1b4-4b00-b7af-72b5b0417420_raw_image_0.jpg\",\r\n \"cloth_image\": \"https://imageproxy.zhongzhuan.chat/api/proxy/image/1db2a32c24087cab3405a00ee4454c94.jpg\",\r\n \"callback_url\": \"\"\r\n}"
}
],
"mediaType": "",
"oasExtensions": "",
"required": true,
"additionalContentTypes": []
},
"parameters": {
"path": [],
"query": [],
"cookie": [],
"header": [
{
"id": "USch8VIlYM",
"name": "Content-Type",
"required": false,
"enable": true,
"description": "",
"type": "string",
"sampleValue": "application/json"
},
{
"id": "O3aVYIrOua",
"name": "Authorization",
"required": false,
"enable": true,
"description": "",
"type": "string",
"sampleValue": "Bearer {{YOUR_API_KEY}}"
}
]
},
"commonParameters": {
"query": [],
"body": [],
"cookie": [],
"header": []
},
"auth": {},
"responses": [
{
"id": 171993860,
"name": "成功",
"code": 200,
"contentType": "json",
"jsonSchema": {
"type": "object",
"properties": {},
"x-apifox-orders": []
},
"itemSchema": {},
"description": "",
"mediaType": "",
"headers": []
}
],
"responseExamples": [],
"codeSamples": [],
"projectId": 8662722,
"moduleId": 8310462,
"folderId": 92436155,
"ordering": 0,
"responsibleId": 0,
"commonResponseStatus": {},
"advancedSettings": {
"disabledSystemHeaders": {}
},
"customApiFields": {},
"oasExtensions": "",
"mockScript": {},
"createdAt": "2026-08-02T03:53:34.000Z",
"updatedAt": "2026-08-06T12:15:55.000Z",
"creatorId": 2863449,
"editorId": 2863449,
"creatorUserId": 2863449,
"editorUserId": 2863449,
"responseChildren": [],
"visibility": "INHERITED",
"securityScheme": {},
"callbacks": ""
}