API Reference

Edit based on multiple input images with AI prompt

Edit based on multiple images (up to 3) using natural language prompts powered by the Qwen-Image-Edit model. Supports multiple editing modes:

ModeDescriptionExample
editingGeneral editing promptPut the man and the dog in a stadium

Model:general-edit-multi-of-qwen-image-edit
Credit:26
post/v1/images/edits/multi

AuthorizationThis endpoint requires an API key. Pass it in the api-key header on every request. Learn more

Parameters

NameTypeStatusDescription
input_image_0
fileRequiredFirst input image file or URL.
input_image_1
fileOptionalSecond input image file or URL.
input_image_2
fileOptionalThird input image file or URL.
prompt
stringRequiredNatural language editing instruction.
mode
stringRequiredEditing mode.
editing

Responses

Image edited successfullySingleImageResponse

FieldTypeDescription
createdintegerUnix timestamp of when the response was created
dataobject[]
urlstringURL to download the result image
curl -X POST "https://api.snapedit.app/v1/images/edits/multi" \
  -H "api-key: YOUR_API_KEY" \
  -F "input_image_0=@./image.jpg" \
  -F "input_image_1=@./image.jpg" \
  -F "input_image_2=@./image.jpg" \
  -F "prompt=value" \
  -F "mode=editing"
Response
{
  "created": 1745827200,
  "data": [
    {
      "url": "https://outputs.snapedit.app/outputs/abc123.png"
    }
  ]
}

Examples (1 example)

Prompt

Two people are shaking hands.

Input

Input 1Input 2

Output

Output