跳转到主要内容
鞋靴模特

鞋靴模特 — 创建任务

异步鞋靴模特图像生成

POST
/services/aigc/virtualmodel/generation
curl
curl --location 'https://dashscope.aliyuncs.com/api/v1/services/aigc/virtualmodel/generation' \
--header 'X-DashScope-Async: enable' \
--header "Authorization: Bearer $DASHSCOPE_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
  "model": "shoemodel-v1",
  "input": {
    "template_image_url": "https://help-static-aliyun-doc.aliyuncs.com/assets/img/zh-CN/8268778171/p809310.webp",
    "shoe_image_url": ["https://help-static-aliyun-doc.aliyuncs.com/assets/img/zh-CN/8268778171/p809301.webp"]
  },
  "parameters": {
    "n": 1
  }
}'
{
  "output": {
    "task_id": "d76ec1e8-ea27-4038-8913-xxxxxxxxxxxx",
    "task_status": "PENDING"
  },
  "request_id": "7574ee8f-38a3-4b1e-9280-11c33ab46e51"
}
上传模特模板图和鞋靴商品图,自动生成模特上脚效果图。支持多角度鞋靴图片输入(最多3张),可批量生成多张结果图。

前提条件

  • 已开通鞋靴模特免费试用,详见免费额度
  • 鞋靴模特为免费试用服务,限额500张图片。

使用限制

  • QPS限制:2
  • 同时运行的任务数限制:1

鉴权

string
header
必填

千问云 API Key。详见获取 API Key

Header 参数

enum<string>
默认值"enable"
必填

启用异步模式,必须设置为 enable

enable

请求体

application/json
enum<string>
必填

调用的模型名称,固定为 shoemodel-v1

shoemodel-v1
shoemodel-v1
object
必填

输入图片。

object

生成参数。

响应

200-application/json
object
string

请求唯一标识,可用于问题排查。