虚拟试穿
OpenAPI Specification
yaml
openapi: 3.0.1
info:
title: ''
description: "本页接口说明详见下方接口定义;参数取值与返回以本平台实测为准。"
version: 1.0.0
paths:
/kling/v1/images/kolors-virtual-try-on:
post:
summary: 虚拟试穿
deprecated: false
description: "接口说明以本平台发布内容为准(上游文档外链已移除);模型与参数以本平台实测为准。"
tags:
- 快手可灵(官方格式)
parameters:
- name: Authorization
in: header
description: "该字段的取值与含义以本平台实际返回为准。"
required: false
example: Bearer {{YOUR_API_KEY}}
schema:
type: string
default: Bearer {{YOUR_API_KEY}}
requestBody:
content:
application/json:
schema:
type: object
properties:
model_name:
type: string
human_image:
type: string
description: "人像图片地址"
cloth_image:
type: string
description: "服装图片地址"
required:
- model_name
- human_image
- cloth_image
description: "可用模型:kolors-virtual-try-on-v1、kolors-virtual-try-on-v1-5"
responses:
'200':
description: "该字段的取值与含义以本平台实际返回为准。"
content:
application/json:
schema:
type: object
properties: {}
example:
code: 0
message: SUCCEED
request_id: CmJ8DGePZioAAAAAAFIvOQ
data:
task_id: CmJ8DGePZioAAAAAAFIvOQ
task_status: submitted
created_at: 1785000000000
updated_at: 1785000000000
headers: {}
security: []
components:
schemas: {}
securitySchemes: {}
servers: []
security: []
使用提示:本页接口的 Base URL 为
https://api.allyang.cn,请求头需携带Authorization: Bearer <令牌>(令牌在控制台「令牌管理」中创建)。示例中的任务 ID、时间戳与文件地址均为示意值,实际以平台返回为准。模型名请在「模型广场」复制后填入,不要手输;计费、限流与在售清单以平台实测为准(部分数值待补)。