SnapEditDocs
API Reference

Edit based on multiple input images with AI prompt

general-edit-multi-of-qwen-image-edit

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

post/v1/images/edits/multi

Credit cost: 26

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

Body

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

NameTypeDescription
createdintegerUnix timestamp of when the response was created
dataobject[]
urlstringURL to download the result image
curl -X POST "https://api.snapapi.ai/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.snapapi.ai/outputs/abc123.png"
    }
  ]
}

Examples

(1 example)

Prompt

Two people are shaking hands.

Input

Input 1Input 2

Output

Output