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

# Qwen Image Editing

Qwen Image Edit supports multiple input and output images. It can precisely edit text in images, add, remove, or move objects, change a subject’s pose, transfer styles, and enhance details.

### Model parameters

* Model IDs: `qwen-image-edit`/`qwen-image-edit-plus`
* Pricing: Check the [Model Hub](https://geekai.co/models?platform=dashscope\&type=image) for current prices.
* Endpoint: `https://geekai.co/api/v1/images/generations`
* Parameters: See the [Image API reference](https://docs.geekai.co/en/api/image/generations.md).
* Authentication: [Get an API key](https://docs.geekai.co/en/docs/quick_start.md).

> [!NOTE]
>
> The following Image API parameters are not supported:
>
> * `strength`
> * `aspect_ratio`
> * `quality`
> * `style_preset`
> * `response_format`
> * `output_format`
> * `mask`
> * `background`
>
> See also: [Official Qwen-Image-Edit API documentation](https://help.aliyun.com/zh/model-studio/qwen-image-edit-guide?spm=5176.smartservice_service_robot_chat_new.0.0.1c8f3a98ftAoNh#ac07d69b4ag98).

Use `size` to set the output resolution as a width-by-height string, such as "1024x2048". Both dimensions must be between 512 and 2048 pixels. Only the qwen-image-edit-plus series supports this parameter.
Set `n` to specify the number of outputs (default: 1). The qwen-image-edit-plus series can output 1–6 images; qwen-image-edit outputs only 1. `image` also accepts Base64 image data in the format `data:{mime_type};base64,{base64_data}`.

### Image editing

```bash theme={null}
curl --location --request POST 'https://geekai.co/api/v1/images/generations' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer $GEEKAI_API_KEY' \
--data '{
    "model": "qwen-image-edit",
    "prompt": "Generate an image matching the depth map: a battered red bicycle stands on a muddy path with dense old-growth forest in the background",
    "image": "https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20250925/fpakfo/image36.webp",
    "negative_prompt ": "Low quality",
    "watermark": false
}'
```

The response is a JSON object containing the URL of the generated image:

```json theme={null}
{
    "model": "qwen-image-edit",
    "created": 1767593301,
    "task_id": "5e22aad1-72e6-4206-8b7a-286a6d4a4dd9",
    "task_status": "succeed",
    "data": [
        {
            "url": "https://static.geekai.co/image/2026/01/05/9322e44329ac13b1604332bbb8b1baa4.png"
        }
    ],
    "usage": {
        "billed_units": 1
    }
}
```


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