---
title: 虚拟试穿效果生成|万维易源ShowAPI
canonical_url: "https://www.showapi.com/ai/skills/virtual-tryon-workflow"
last_updated: "2026-09-21T17:35:01.090Z"
meta:
  description: "根据用户上传的人物照片、衣物照片、提示词和比例参数，通过意图深度解析、提示词专业优化、生图任务提交与结果轮询4个步骤，生成自然贴合的虚拟试穿效果照片。 免费在线使用，也支持 API / Agent 接入。"
  keywords: "虚拟试穿效果生成, AI Skill, 万维易源, showapi, 大模型, ai技能, AI工具, 异步任务, Agent技能包, api接口, 在线使用, api接口, api接口大全, 免费api, 免费数据接口, 数据接口, api开放平台, 万维易源, showapi, 大模型, AI Skills"
  "og:description": "根据用户上传的人物照片、衣物照片、提示词和比例参数，通过意图深度解析、提示词专业优化、生图任务提交与结果轮询4个步骤，生成自然贴合的虚拟试穿效果照片。 免费在线使用，也支持 API / Agent 接入。"
  "og:title": "虚拟试穿效果生成 AI Skill|万维易源ShowAPI"
---

*

*

*

*

# **虚拟试穿效果生成**

根据用户上传的人物照片、衣物照片、提示词和比例参数，通过意图深度解析、提示词专业优化、生图任务提交与结果轮询4个步骤，生成自然贴合的虚拟试穿效果照片。

S**Serenoa** 2026-06-16 14:12 · 4 个步骤

约 ¥0.23/次调用，含模型推理价格

ID`6a30dddb3c51f28612006569`

### **能力组成**

**立即试一试** 在线体验此 Skill，输入参数即可看到实时效果

### **输出案例**

-
-
-

### **内部编排**

共 4 步 · AI 自动编排的执行流程与原始定义 收起

1意图深度解析

2试穿提示词专业优化

3提交试穿生图任务

4轮询试穿生图状态

**完整定义 (JSON)**134 行

```
{
  "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": [
    {
      "id": "step_1_intent_analyzer",
      "point_code": "",
      "result": [],
      "backend_type": "prompt_api",
      "api_code": "intent_analyzer",
      "status": "PENDING",
      "name": "意图深度解析",
      "action": "run",
      "params": {
        "user_request": "生成虚拟试穿效果，将用户提供的衣物自然贴合地穿在人物身上，保持人物姿态和面部特征",
        "ratio": "{{@input.ratio}}",
        "user_prompt": "{{@input.user_prompt}}"
      }
    },
    {
      "id": "step_2_prompt_optimize",
      "point_code": "",
      "result": [],
      "backend_type": "prompt_api",
      "api_code": "tryon_prompt_optimize",
      "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": [],
      "backend_type": "sys_api",
      "api_code": "3373",
      "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"
      ]
    },
    {
      "point_code": "",
      "id": "step_4_poll_tryon_result",
      "result": [],
      "backend_type": "sys_api",
      "api_code": "polling",
      "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"
    }
  }
}
```

介绍

在线运行

Skill与API