image-edit
Edits or creates new images based on an existing source image (a base image is required). Covers five major scenarios: e-commerce product images (white-background hero shots, lifestyle scenes, multi-angle views, promotional copy), portrait editing (face swap, makeup, hairstyle, pose adjustment), multi-image consistency editing (product retouching, multi-image compositing, copy replacement), general editing (element replacement, element addition, composition adjustment, background change), and reference-image creation (using a reference image as the primary content source).
meitu image-edit
Usage Examples
# Scenario 1: E-commerce product image + white background
meitu image-edit \
--image_list ./product.jpg \
--prompt "White background e-commerce hero image" \
--json
# Scenario 2: Multi-image compositing
meitu image-edit \
--image_list ./base.jpg \
--image_list ./ref.jpg \
--prompt "Blend design elements from the reference image into the base image" \
--json
# Scenario 3: Specify model + download results
meitu image-edit \
--image_list ./base.jpg \
--image_list ./ref.jpg \
--prompt "High-quality product retouching" \
--model gummy_pro \
--json \
--download-dir ./outputParameter Reference
| Parameter | Required | Description |
|---|---|---|
--image_list | Yes | Aliases: --image, --image_url |
--prompt | Yes | Type: string |
--ratio | No | Type: string |
--size | No | Type: string |
--output_format | No | Type: string |
--model | No | Type: string |
--download-dir | No | Type: string |
--output | No | Type: string[] |
--json | No | Output results in JSON format for easy script or agent parsing |