用途 muapi-fashion-try-on 用于虚拟试穿:把一张人物(或模特)的照片与一张服装图片组合,生成该人物穿着该服装的时尚照片;在此基础上,还可以可选地生成一段专业的时装模特视频。
主要能力 该技能分为两个阶段。阶段 A 为虚拟试穿,使用 muapi 图像编辑能力(模型 qwen-image-edit-2511),以人物图和服装图作为参考图,生成高质量时装照片,保持人物姿态以及服装的质感和图案。阶段 B 为可选的时装视频生成,使用 muapi 图生视频能力(模型 seedance-v1.5-pro-i2v-fast),以阶段 A 生成的试穿图为参考图,生成模特展示服装的视频。
输入 需要两个输入,均为必填:person_image(image_url 类型),即将要试穿服装的人物或模特照片;clothing_image(image_url 类型),即要试穿的服装照片。
使用方式 若缺少 person_image 或 clothing_image,需请用户上传。两张图片齐备后,提交只包含一个步骤的计划来执行试穿:Fashion Try-On — muapi image edit(model=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 为可选:图像生成后询问用户是否要制作品牌模特穿着该套装的专业时装视频。若用户需要,提交只含一个步骤的计划:Fashion Video Generation — muapi video from-image(model=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。生成后呈现最终时装视频。
执行说明 该配方由 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}} 占位符替换为用户的实际输入。
触发关键词 fashion try on、virtual fitting room、try on clothes、model fashion、clothing preview。
适用场景 适用于希望预览服装上身效果的场景,例如虚拟试衣间、服装预览,以及由试穿结果生成模特展示视频。
限制 资料未提供计费、价格、平台支持范围、生成时长、效果保证等信息,暂未提供。