跳转到主要内容
POST
https://llm.ai-nebula.com
/
nebula
/
v4
/
api
/
dressing2Submitv4
万物迁移-服装模式-提交任务
curl --request POST \
  --url https://llm.ai-nebula.com/nebula/v4/api/dressing2Submitv4 \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "cVDressingV4DTO.model.url": "<string>",
  "cVDressingV4DTO.garment.data": [
    {}
  ],
  "cVDressingV4DTO.garment.data[].type": "<string>",
  "cVDressingV4DTO.garment.data[].url": "<string>",
  "cVDressingV4DTO.req_key": "<string>",
  "cVDressingV4DTO.return_url": true,
  "cVDressingV4DTO.inference_config.do_sr": true,
  "cVDressingV4DTO.inference_config.seed": 123,
  "cVDressingV4DTO.inference_config.keep_head": true,
  "cVDressingV4DTO.inference_config.keep_hand": true,
  "cVDressingV4DTO.inference_config.keep_foot": true,
  "cVDressingV4DTO.inference_config.num_steps": 123,
  "cVDressingV4DTO.inference_config.keep_upper": true,
  "cVDressingV4DTO.inference_config.keep_lower": true,
  "cVDressingV4DTO.inference_config.tight_mask": "<string>",
  "cVDressingV4DTO.inference_config.p_bbox_iou_ratio": 123,
  "cVDressingV4DTO.inference_config.p_bbox_expand_ratio": 123,
  "cVDressingV4DTO.inference_config.max_process_side_length": 123,
  "cVDressingV4DTO.logoInfo.add_logo": true,
  "cVDressingV4DTO.logoInfo.position": 123,
  "cVDressingV4DTO.logoInfo.language": 123,
  "cVDressingV4DTO.logoInfo.opacity": 123
}
'
{
  "code": 200,
  "msg": "操作成功",
  "data": {
    "task_id": "task-1234567890"
  }
}

简介

提交万物迁移-服装模式任务,用于实现虚拟试装功能。

认证

Authorization
string
必填
Bearer Token,如 Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9... 获取方法:依照左侧最上面认证模块的post接口获取,https://docs.openai-nebula.com/cn/nebula-lab-v4/endpoint/get-token

请求参数

cVDressingV4DTO.model.url
string
必填
模特图片 URL
cVDressingV4DTO.garment.data
object[]
必填
服装素材列表
cVDressingV4DTO.garment.data[].type
string
必填
素材类型(如:image)
cVDressingV4DTO.garment.data[].url
string
必填
素材 URL
cVDressingV4DTO.req_key
string
请求标识,用于业务侧关联或去重
cVDressingV4DTO.return_url
boolean
是否直接返回结果 URL
cVDressingV4DTO.inference_config.do_sr
boolean
是否开启超分
cVDressingV4DTO.inference_config.seed
integer
随机种子
cVDressingV4DTO.inference_config.keep_head
boolean
保留头部
cVDressingV4DTO.inference_config.keep_hand
boolean
保留手部
cVDressingV4DTO.inference_config.keep_foot
boolean
保留脚部
cVDressingV4DTO.inference_config.num_steps
integer
生成步数
cVDressingV4DTO.inference_config.keep_upper
boolean
保留上半身
cVDressingV4DTO.inference_config.keep_lower
boolean
保留下半身
cVDressingV4DTO.inference_config.tight_mask
string
紧致蒙版
cVDressingV4DTO.inference_config.p_bbox_iou_ratio
number
人体框 IOU 比例
cVDressingV4DTO.inference_config.p_bbox_expand_ratio
number
人体框扩展比例
cVDressingV4DTO.inference_config.max_process_side_length
integer
最大处理边长
是否添加 Logo
cVDressingV4DTO.logoInfo.position
integer
Logo 位置
cVDressingV4DTO.logoInfo.language
integer
Logo 语言
cVDressingV4DTO.logoInfo.opacity
number
Logo 透明度

示例代码

curl -X POST "https://llm.ai-nebula.com/nebula/v4/api/dressing2Submitv4" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer sk-xxxxxxxxxx" \
  -d '{
    "imageUrl": "https://example.com/model.jpg",
    "clothingUrl": "https://example.com/clothing.jpg"
  }'

响应示例

{
  "code": 200,
  "msg": "操作成功",
  "data": {
    "task_id": "task-1234567890"
  }
}