> ## Documentation Index
> Fetch the complete documentation index at: https://mixroute.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Qwen Image Edit Max

> Qwen Image Edit Max: Edit a reference image with a text instruction. Do not send multipart data or wrap the request in `metadata`.

Edit a reference image with a text instruction. Do not send multipart data or wrap the request in `metadata`.

`POST /v1/images/generations`

## Quick Example

Set `MIXROUTE_API_KEY` before running the request. Replace `https://example.com/reference.png` with a publicly accessible HTTPS image.

```bash theme={null}
curl --request POST 'https://api.mixroute.ai/v1/images/generations' \
  --header "Authorization: Bearer $MIXROUTE_API_KEY" \
  --header 'Content-Type: application/json' \
  --data '{
  "model": "qwen-image-edit-max",
  "input": {
    "messages": [
      {
        "role": "user",
        "content": [
          {
            "text": "Change the mug to blue."
          },
          {
            "image": "https://example.com/reference.png"
          }
        ]
      }
    ]
  },
  "parameters": {
    "size": "1024*1024",
    "n": 1
  }
}'
```

Read the image from `output.choices[].message.content[].image`.

## Parameters and Limits

| Field | Description |
| - | - |
| `model` | `qwen-image-edit-max`. Set the model ID exactly as shown. |
| `input.messages[].content[]` | Use one `user` message with a text block and 1–3 separate image blocks. |
| `parameters.size` | Use `width*height`, for example `1024*1024`. |
| `parameters.n` | Only `1` is supported per request. |

## API Reference

* [Qwen Image Editing](https://mixroute.ai/docs/api-reference/endpoint/qwen-image-edit.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.