# Alibaba Qwen Image Edit API

> Qwen Image Edit is Alibaba's intelligent image editing model. Transform, retouch, and reimagine existing images using text prompts - from background replacement to artistic style conversion.

Source: https://www.sandbase.ai/models/alibaba/qwen-image-edit
API reference: https://www.sandbase.ai/models/alibaba/qwen-image-edit/docs

## Facts

- Provider: Alibaba
- Type: Image model
- Model ID: `alibaba/qwen-image-edit`
- Price: $0.04 per run
- Capabilities: image to image
- Billing: pay per use from one SandBase balance; no provider account or subscription needed

## Call it

- Unified Run API: `POST https://api.sandbase.ai/v1/run`

```bash
curl -X POST https://api.sandbase.ai/v1/run \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "alibaba/qwen-image-edit",
  "image": "https://static.sandbase.ai/examples/alibaba/qwen-image-edit/input_image_0.png",
  "prompt": "Change bag to apple macbook",
  "strength": 0.94,
  "output_format": "png"
}'
```

The response returns a run id; poll `GET https://api.sandbase.ai/v1/run/{id}` until the status is `completed` or `failed`.

## FAQ

### How do I call Alibaba Qwen Image Edit through SandBase?

Create a SandBase API key, then send requests with the model ID "alibaba/qwen-image-edit" to Unified Run API (/v1/run) at https://api.sandbase.ai. The request examples on this page show the exact payload.

### Do I need a separate Alibaba account?

No. One SandBase API key and balance gives you access to Alibaba Qwen Image Edit and the other models in the catalog; you do not need to sign up with Alibaba separately.

## README

### Qwen Image Edit

The original Qwen Image Edit: change one image with an instruction, including Chinese and English text edits. `strength` controls how far the result may move from the input.

#### Fields

| Field | Type | Default | Notes |
|---|---|---|---|
| `prompt` | string, required | — | Text instruction. |
| `image` | image URL, required | — | Image to edit. JPEG, PNG, or WebP URL. |
| `strength` | number 0.01–1 | 0.94 | How much the output may differ from the input (0.01–1). |
| `output_format` | `jpeg` / `png` | `png` | Output file format. |
| `aspect_ratio` | `21:9` / `16:9` / `3:2` / `4:3` / `5:4` / `1:1` / `4:5` / `3:4` / `2:3` / `9:16` | — | Omit to follow the input image. |
| `seed` | integer | random | Fix it to compare prompt changes. |

#### Billing

$0.045 per output image, Alibaba's list price.

| Request | Price |
|---|---|
| One image | $0.045 |

Failed runs are not charged.

#### Prompting

- State the change and what must stay the same.
- Lower `strength` for subtle edits.

#### Limits

- One input image per request; 2511 accepts several.

#### Also on SandBase

Related: `alibaba/qwen-image-edit/2511`, `alibaba/qwen-image-edit/2511/multiple-angles`, `alibaba/qwen-image-3/edit` (newer).
