创建时间: 2026-06-16 14:12 | 步骤: 4 个
根据用户上传的人物照片、衣物照片、提示词和比例参数,通过意图深度解析、提示词专业优化、生图任务提交与结果轮询4个步骤,生成自然贴合的虚拟试穿效果照片。
{
"workflow_id": "virtual_tryon_workflow",
"input": {
"ratio": {
"field_name": "ratio",
"default": "3:4",
"description": "生成图片的宽高比例,可选值:1:1、3:4、4:3、16:9、9:16",
"example": "3:4",
"type": "string",
"required": false
},
"person_image": {
"field_name": "person_image",
"default": "",
"description": "人物照片URL或Base64编码字符串",
"example": "https://showapi-pub-hangzhou.oss-cn-hangzhou.aliyuncs.com/huangye/img_7a7ca425-5baf-462e-b0b8-898c6e904eea.jpg",
"type": "base64",
"required": true
},
"clothing_image": {
"field_name": "clothing_image",
"default": "",
"description": "衣物照片URL或Base64编码字符串",
"example": "https://showapi-pub-hangzhou.oss-cn-hangzhou.aliyuncs.com/huangye/img_e36a80d8-b4ca-43f0-aab3-2f1ba09de7db.png",
"type": "base64",
"required": true
},
"user_prompt": {
"field_name": "user_prompt",
"default": "请帮我把这件衣服穿在这个人身上,要自然贴合",
"description": "用户提供的生图提示词,描述试穿需求",
"example": "请帮我把这件衣服穿在这个人身上,要自然贴合",
"type": "string",
"required": true
}
},
"steps": [
{
"point_code": "",
"id": "step_1_intent_analyzer",
"result": [],
"api_code": "intent_analyzer",
"backend_type": "prompt_api",
"status": "PENDING",
"name": "意图深度解析",
"action": "run",
"params": {
"user_request": "生成虚拟试穿效果,将用户提供的衣物自然贴合地穿在人物身上,保持人物姿态和面部特征",
"ratio": "{{@input.ratio}}",
"user_prompt": "{{@input.user_prompt}}"
}
},
{
"id": "step_2_prompt_optimize",
"point_code": "",
"result": [],
"api_code": "tryon_prompt_optimize",
"backend_type": "prompt_api",
"status": "PENDING",
"name": "试穿提示词专业优化",
"action": "run",
"params": {
"success_criteria": "{{@step_1_intent_analyzer.result.data.structured_analysis.entities.2.value}}",
"structured_intent": "{{@step_1_intent_analyzer.result.data.result}}",
"user_prompt": "{{@input.user_prompt}}"
},
"depends_on": [
"step_1_intent_analyzer"
]
},
{
"id": "step_3_submit_tryon_task",
"point_code": "1",
"result": [],
"api_code": "3373",
"backend_type": "sys_api",
"status": "PENDING",
"name": "提交试穿生图任务",
"action": "run",
"params": {
"referImages": [
"{{@input.person_image}}",
"{{@input.clothing_image}}"
],
"prompt": "{{@step_2_prompt_optimize.result.data.result}}",
"aspect_ratio": "{{@input.ratio}}"
},
"depends_on": [
"step_2_prompt_optimize"
]
},
{
"id": "step_4_poll_tryon_result",
"point_code": "",
"result": [],
"api_code": "polling",
"backend_type": "sys_api",
"status": "PENDING",
"name": "轮询试穿生图状态",
"action": "run",
"params": {
"result_url": "{{@step_3_submit_tryon_task.result.data.result_url}}"
},
"depends_on": [
"step_3_submit_tryon_task"
],
"polling": {
"interval_seconds": 5,
"timeout_seconds": 600,
"success_condition": "{{@step_4_poll_tryon_result.result.data.task_status}} === 'SUCCEEDED'"
}
}
],
"output": {
"tryon_result_url": {
"field_name": "tryon_result_url",
"description": "最终生成的虚拟试穿效果图URL",
"value": "{{@step_4_poll_tryon_result.result.data.result_url}}",
"type": "string"
},
"optimized_prompt": {
"field_name": "optimized_prompt",
"description": "优化后的专业试穿提示词",
"value": "{{@step_2_prompt_optimize.result.data.result}}",
"type": "string"
},
"task_id": {
"field_name": "task_id",
"description": "生图任务唯一标识",
"value": "{{@step_3_submit_tryon_task.result.data.task_id}}",
"type": "string"
}
}
} 提交后立即返回 task_id,系统每 2 秒自动轮询一次运行状态并可视化执行步骤,适合耗时较长的 Skill。
ratiostring生成图片的宽高比例,可选值:1:1、3:4、4:3、16:9、9:16
person_image必填base64人物照片URL或Base64编码字符串
clothing_image必填base64衣物照片URL或Base64编码字符串
user_prompt必填string用户提供的生图提示词,描述试穿需求
把这个 Skill 接入你的应用或 AI Agent —— 自带 REST API、OpenAPI 规范与 Agent 技能包。
下载技能包导入 AI Agent 客户端,即可作为技能使用
appKey={AppKey},与 API 文档一致。Agent 技能包接入教程 帮助文档
不知道如何接入?跟随图文步骤一步步完成配置
不同 Agent 客户端对技能包名称格式有不同要求,请选择你使用的客户端下载对应版本。
WorkBuddy
腾讯 Agent 客户端
DuMate
EN百度智能体 · 英文名称
阿里悟空
EN阿里 Agent · 英文名称
QoderWork CN
EN编程智能体 · 英文名称
QwenPaw
通义千问 Agent
Trae Work
字节跳动 Agent
有道 LobsterAI
网易有道智能体
智谱 AutoClaw
智谱 AI Agent
CodeX
ENCodex AI Agent
标注 EN 的客户端要求 Skill 英文命名,其余使用中文命名版本。

7*24小时服务
保证您的售后无忧

1v1专属服务
保证服务质量

担保交易
全程担保交易保证资金安全

服务全程监管
全周期保证商品服务质量
© 2015-2023 WWW.SHOWAPI.COM ALL RIGHTS RESERVED.昆明秀派科技有限公司
本网站所列接口及文档全部由SHOWAPI网站提供,并对其拥有最终解释权 POWERED BY SHOWAPI