Happy Horse 1.0 is now on ModelsLab

Try Now
Skip to main content
Available now on ModelsLab · Image Generation

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

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.

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
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())

FAQ

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

Read the docs

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.

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.

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.

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).

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.

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.

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.

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

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.

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.