SuperAPI AI 工具集

muapi-fashion-try-on

设计与创作

查看项目

更新于 10-15 12:07

技能介绍

用途

muapi-fashion-try-on 是一个虚拟试衣技能,用于把人物照片与服装照片合成,实现服装的虚拟试穿效果,并可选择进一步生成时尚模特展示视频。

主要能力

阶段 A — 虚拟试穿

使用 muapi 图像编辑(模型 qwen-image-edit-2511)执行试穿合成:

  • 参考图:同时使用 {{person_image}} 和 {{clothing_image}}。
  • 提示词:A high-quality fashion photograph of the person from the first reference image wearing the exact clothing item from the second reference image. The fit should be natural and realistic, maintaining the person's pose and the clothing's texture and patterns. Soft studio lighting, neutral background, professional fashion photography style.
  • 宽高比:1:1 或 4:5

生成后将时尚照片提交给用户确认。

阶段 B — 时尚视频生成(可选)

在图片生成后,询问用户是否希望创建模特穿着该服装的专业时尚视频。如果用户需要,使用 muapi 图生视频(模型 seedance-v1.5-pro-i2v-fast)执行:

  • 参考图:阶段 A 生成的试穿图片。
  • 提示词:Shot type of Three-Quarter Length Shot. [Push in] as model gracefully places hand on hip, shifts weight to one side, tilts head slightly with soft smile, and gently adjusts hair with fingertips, creating elegant movement and confidence.
  • 宽高比:9:16 或 4:5

生成后展示最终时尚视频。

使用方式

输入

名称 类型 必填 默认值 说明
person_image image_url 是 — 将试穿服装的人物或模特照片。
clothing_image image_url 是 — 要试穿的服装照片。

步骤

阶段 A — 虚拟试穿:

  1. 如果未提供 {{person_image}} 或 {{clothing_image}},请用户上传。
  2. 两张图片就绪后,提交包含一个步骤的计划执行试穿。
  3. 将生成的时尚照片呈现给用户确认。

阶段 B — 时尚视频生成(可选):

  1. 图片生成后,询问用户是否希望创建专业时尚视频。
  2. 如需要,提交包含一个步骤的计划。
  3. 生成后展示最终时尚视频。

触发关键词

fashion try on, virtual fitting room, try on clothes, model fashion, clothing preview

执行代理注意事项

  • 本配方由 LLM 编排:阅读每个阶段,向用户收集缺失的输入,然后调用 muapi CLI 命令。
  • 如果 MUAPI_API_KEY 未设置,先使用 muapi auth configure。
  • 对于尚无 CLI 别名的模型 ID,回退到通过 curl -X POST https://api.muapi.ai/api/v1/<endpoint> -H "x-api-key: $MUAPI_API_KEY" -H 'content-type: application/json' -d '{...}' 调用原始端点,并用 muapi predict wait <request_id> 轮询。
  • 在发起每次调用前,用用户的实际输入替换 {{input_name}} 占位符。

适用场景

  • 电商或时尚类内容的服装预览。
  • 虚拟试衣间式的穿搭效果展示。
  • 生成模特穿着特定服装的静态时尚照片。
  • 在静态照片基础上生成模特展示服装的短视频。

限制

  • 必须提供 person_image 和 clothing_image 两个输入。
  • 虚拟试穿使用固定模型 qwen-image-edit-2511;视频生成使用固定模型 seedance-v1.5-pro-i2v-fast。
  • 视频生成阶段为可选项,需用户主动请求。
  • 关于收费、价格、平台支持范围、生成速度或效果保证等信息,资料未提供。