虚拟试穿
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:
- 可灵 Kling 平台/虚拟试穿
parameters:
- name: Content-Type
in: header
description: ''
required: false
example: application/json
schema:
type: string
- name: Authorization
in: header
description: ''
required: false
example: Bearer {{YOUR_API_KEY}}
schema:
type: string
requestBody:
content:
application/json:
schema:
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
example:
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: ''
responses:
'200':
description: ''
content:
application/json:
schema:
type: object
properties: {}
headers: {}
x-apifox-name: 成功
security:
- bearer: []
x-apifox-folder: 可灵 Kling 平台/虚拟试穿
x-apifox-status: testing
x-run-in-apifox: https://app.apifox.com/web/project/5443236/apis/api-386354700-run
components:
schemas: {}
securitySchemes:
bearer:
type: http
scheme: bearer
servers:
- url: https://www.anyapi.vip
description: 正式环境
security:
- bearer: []