Qwen Image Edit API — Natural-Language Image Editing
Edit 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 requestsresponse = 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())
Ready to create?
Start generating with Qwen Image Edit API — Natural-Language Image Editing on ModelsLab.