image-outfit-swap

AI outfit swap: preserves the person's face and body shape while changing only the clothing. Simple color changes (e.g., turning a dress red) are also supported by this tool.

meitu image-outfit-swap

Usage Examples

# Scenario 1: Text-described outfit swap (required parameters only)
meitu image-outfit-swap \
  --image_url ./person.jpg \
  --prompt "Black suit" \
  --json

# Scenario 2: Reference-image outfit swap
meitu image-outfit-swap \
  --image_url ./person.jpg \
  --clothes_image_url ./outfit_ref.jpg \
  --prompt "Swap to the outfit shown in the reference image" \
  --json

# Scenario 3: Full parameters + download results
meitu image-outfit-swap \
  --image_url ./person.jpg \
  --clothes_image_url ./outfit_ref.jpg \
  --prompt "Swap to the outfit shown in the reference image" \
  --json \
  --download-dir ./output

Parameter Reference

ParameterRequiredDescription
--image_urlYesAliases: --image
--clothes_image_urlNoType: string
--promptYesType: string
--download-dirNoType: string
--outputNoType: string[]
--jsonNoOutput results in JSON format for easy script or agent parsing