---
title: Qwen Image Edit API — Instruction-Based Image Editing from $0.01 (2026)
description: Edit images with Alibaba Cloud's Qwen Image 2.0 Pro via REST API. Background swap, style transfer, object replacement from a single text instruction. Free credits.
url: https://modelslab.com/qwen-image-edit
canonical: https://modelslab.com/qwen-image-edit
type: website
component: Seo/ModelPage
generated_at: 2026-05-25T12:07:30.794809Z
---

Available now on ModelsLab · Image Generation

Qwen Image Edit API — Natural-Language Image Editing
Edit images with a text prompt. Swap, restyle, replace — one REST call.
---

[Try Qwen Image Edit](/models/alibaba_cloud/qwen-image-2.0-pro-i2i) [API Documentation](https://docs.modelslab.com)

Qwen Image 2.0 Pro — image edit + text-to-image
---

Qwen Image 2.0 Pro

### Alibaba Cloud's image-edit model

Instruction-based image editing powered by Qwen Image 2.0 Pro — Alibaba Cloud's multimodal image editor. Swap subjects, change backgrounds, restyle scenes from a single text prompt.

Text-to-Image

### Generate images from scratch

Use qwen-image-2.0-pro-t2i for text-to-image generation with strong prompt adherence. Great for product mockups, concept art, and marketing visuals.

Image Edit

### Natural-language edits

Use qwen-image-2.0-pro-i2i to modify existing images. Describe the edit in plain English — Qwen preserves composition while applying the change.

One API Key

### No Alibaba Cloud account needed

Call Qwen Image Edit via the same ModelsLab REST API you use for Flux, SDXL, and Kling. One key, one bill, no Alibaba Cloud signup.

High Resolution

### Up to 2048×2048

Generate or edit at common aspect ratios up to 2048px. Pair with Real-ESRGAN for further 4× upscaling.

Pay-Per-Use

### Transparent pricing

Pricing from roughly $0.01 per image. No monthly commitments, no credit systems. Free credits on signup.

Webhooks

### Async callbacks

Pass a webhook URL and ModelsLab POSTs the edited image to your endpoint when generation completes.

SDKs

### Python & JavaScript

Official SDKs wrap every Qwen endpoint. REST + OpenAPI spec for autogenerated clients in any language.

Examples

See what Qwen Image Edit can do
---

Copy any prompt below and try it yourself in the [playground](/models/alibaba_cloud/qwen-image-2.0-pro-i2i).

Background swap

“change the background to a snowy mountain landscape, preserve subject and lighting”

Style transfer

“apply a cinematic film noir look — high contrast black and white, dramatic shadows”

Product photography

“a sleek modern watch on a marble surface, soft studio lighting, shallow depth of field”

Object replacement

“replace the car in the image with a red 1970 Mustang, keep the same camera angle and scene”

For Developers

A few lines of code.
One endpoint. Natural-language edits.
---

ModelsLab handles the infrastructure: fast inference, auto-scaling, and a developer-friendly API. No GPU management needed.

- **Serverless:** scales to zero, scales to millions
- **Pay per image,** no minimums
- **Python and JavaScript SDKs,** plus REST API

[API Documentation ](https://docs.modelslab.com)

PythonJavaScriptcURL

Copy

```
<code>import requests

response = requests.post(
    "https://modelslab.com/api/v7/images/image-to-image",
    json={
  "key": "YOUR_API_KEY",
  "width": 1024,
  "height": 1024,
  "prompt": "change the background to a snowy mountain landscape",
  "model_id": "qwen-image-2.0-pro-i2i",
  "init_image": "https://example.com/source.jpg"
}
)
print(response.json())</code>
```

FAQ

Common questions about Qwen Image Edit API — Natural-Language Image Editing
---

[Read the docs ](https://docs.modelslab.com)

### What is Qwen Image Edit API?

Qwen Image Edit is Alibaba Cloud's instruction-based image editing model (Qwen Image 2.0 Pro variant). It takes a source image + a natural-language instruction and returns the edited image. On ModelsLab you call it via a single REST endpoint — no Alibaba Cloud or BytePlus account needed.

### How much does Qwen Image Edit cost?

Qwen Image 2.0 Pro on ModelsLab is priced around $0.01 per image. Transparent per-call pricing — no monthly commitments, no credit systems. Every new ModelsLab account gets free credits to test both the image-edit (i2i) and text-to-image (t2i) variants.

### What's the difference between qwen-image-2.0-pro-i2i and qwen-image-2.0-pro-t2i?

qwen-image-2.0-pro-i2i (image-to-image) takes an input image plus instruction and modifies the image. qwen-image-2.0-pro-t2i (text-to-image) generates an image from a text prompt alone. Both run under the same Qwen Image 2.0 Pro backbone.

### How do I get a Qwen Image API key?

Sign up for a free ModelsLab account at modelslab.com and generate your API key from the dashboard. The same key works for Qwen plus every other image and video model (Flux, SDXL, Kling, Runway Aleph).

### Can Qwen Image Edit handle complex instructions?

Yes. Qwen 2.0 Pro follows multi-step instructions ("remove the person, replace background with beach scene, adjust lighting to sunset"). For best results keep instructions under 200 characters and be specific about what to preserve.

### What image resolutions does Qwen Image support?

Up to 2048×2048 pixels, plus common aspect ratios (16:9, 9:16, 3:2, 2:3). For higher-resolution output, pair Qwen with the Real-ESRGAN upscaler on ModelsLab for 4× enhancement.

### Is there a free tier to try Qwen Image Edit?

Yes. Free ModelsLab credits on signup, no credit card required. Enough to test both i2i and t2i variants across realistic workloads before picking a paid plan.

### Does Qwen Image API support webhooks?

Yes. Pass a webhook URL in the request body and ModelsLab POSTs the completed image URL to your endpoint when generation finishes.

### Qwen Image vs Flux vs SDXL — which should I use?

Qwen Image 2.0 Pro leads on instruction-following for image editing (swap subjects, change backgrounds). Flux dev/schnell is the reference for text-to-image quality. SDXL remains strong for stylised/artistic output. All three are available behind one ModelsLab API key.

### Is there a Python SDK for Qwen Image?

Yes. The ModelsLab Python SDK wraps every image endpoint including Qwen. You can also call the REST endpoint directly — we publish an OpenAPI spec for autogenerated clients in any language.

Ready to create?
---

Start generating with Qwen Image Edit API — Natural-Language Image Editing on ModelsLab.

[Try Qwen Image Edit](/models/alibaba_cloud/qwen-image-2.0-pro-i2i) [API Documentation](https://docs.modelslab.com)

---

*This markdown version is optimized for AI agents and LLMs.*

**Links:**
- [Website](https://modelslab.com)
- [API Documentation](https://docs.modelslab.com)
- [Blog](https://modelslab.com/blog)

---
*Generated by ModelsLab - 2026-05-25*