Qwen Edit API for Developers

Qwen Edit API

Edit images with AI using Qwen Edit via API. Fast, low-cost prompt-based edits including object removal, inpainting, and background changes — no GPU setup required.

Free to start
No watermarks on paid plans
Subscription or usage-based
Auto-scaling
Qwen Edit example: anime-style girl with long green pigtails, school blazer, and white skirt on a clean background
Anime portrait
Qwen Edit example: realistic close-up portrait of a man in a brown leather cowboy hat
Man in cowboy hat
Qwen Edit example: narrow city street lined with brick buildings framing a distant suspension bridge
City bridge
Qwen Edit example: close-up portrait of a woman with bangs and soft, flattering light
Soft portrait
Qwen Edit example: bold 2D illustration of a woman with jewelry and jacket on a flat brown background
Cartoon woman
Qwen Edit example: stylized basketball court scene with an anime-style character and cheerleaders
Gym mashup
Qwen Edit example: clean studio portrait with long wavy hair and white top on a minimal backdrop
Studio portrait
Qwen Edit example: warm indoor cafe or lounge portrait with bokeh lights and a red button-up shirt
Cafe portrait

Trusted by teams at

meta
nba
loreal
puma
cisco
deel
shopify
decathlon
dallas-mavericks
pittsburgh-pirates
tala
dyson
dazn
wsc-sports

Everything You Need to Ship Qwen Edit

Low-cost AI image editing with object removal, inpainting, and background changes.

Object Removal
Remove unwanted objects, people, or elements from images with natural inpainting.
Background Changes
Replace or modify image backgrounds while preserving subjects cleanly.
Text-Aware Edits
Understands and follows natural language edit instructions for intuitive workflows.
Low Cost Editing
At 10–15 credits per image, Qwen Edit is one of the most affordable editing models.
Auto-Scaling Infrastructure
Scales compute to match demand automatically. No GPU provisioning or cold starts.
Commercial-Ready
Paid plans support non-watermarked outputs for commercial delivery.

Integrate in 3 Steps

Add AI image editing to your app in minutes.

1
Get Your API Key
Sign up free and generate an API key from the Developer dashboard. You get free credits to start.
2
Send Your Request
Upload your source image and provide a natural language edit instruction to the AI image editor endpoint with the qwen-edit model.
3
Get Results & Scale
Receive the edited image via response. Deploy to production — infrastructure scales automatically.
Get Started Free

Code Examples

Qwen Edit in a few lines of code. Install an SDK or use the REST API directly.

from magic_hour import Client
from os import getenv

client = Client(token=getenv("API_TOKEN"))
res = client.v1.ai_image_editor.generate(
    assets={"image_file_path": "/path/to/source.png"},
    image_count=1,
    model="qwen-edit",
    name="Qwen Edit",
    aspect_ratio="1:1",
    resolution="1k",
    style={"prompt": "Replace the background with a soft pastel gradient"},
)
API Docs

Qwen Edit API Pricing

Subscription plans for standard usage.

Prefer usage-based pricing?

Email us or message us in Intercom and we will set up your usage-based pricing.

API Calculator
Use our calculator to estimate your API costs.
Tier
Estimated monthly cost

$1.73

Based on 24 FPS

Built for Builders

See how developers use the Qwen Edit API to power real products.

E-Commerce Photo Cleanup
Remove distracting backgrounds and objects from product photos at scale.
Real Estate Photo Editing
Clean up property photos by removing clutter, cars, and unwanted elements.
Social Media Content
Edit and enhance social media images with quick prompt-based modifications.
Marketing Asset Polish
Touch up campaign assets by removing or replacing visual elements.
User-Generated Content
Power in-app photo editing features with AI-driven cleanup tools.
Archival & Restoration
Clean up and repair scanned or degraded images for archival purposes.
Try before integrating

Try Qwen Edit Free — No Code Required

Test quality first with the free tool, then plug the same output quality into your app with the API when you are ready.

Qwen Edit API — Frequently Asked Questions

Magic Hour's Qwen Edit API lets developers edit images using Alibaba's Qwen Edit model via REST API with SDKs for Python, Node.js, Go, and Rust.

Object removal, background replacement, inpainting, and text-aware modifications based on natural language prompts.

10 credits per image at 1K, 15 credits at 2K.

Yes. Free users can edit at 1K resolution.

1K and 2K editing resolution.

Provide a natural language prompt describing the edit — e.g., 'Remove the car from the background' or 'Change the sky to sunset.'

Use Qwen Edit for quick, low-cost edits. Use Nano Banana for more complex editing and generation workflows.

Official SDKs for Python, Node.js, Go, and Rust.

Start Building with the Magic Hour Qwen Edit API

Free credits on signup. SDKs for Python, Node.js, Go, and Rust. Production-ready in minutes.