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

Anime portrait

Man in cowboy hat

City bridge

Soft portrait

Cartoon woman

Gym mashup

Studio portrait

Cafe portrait
Trusted by teams at














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.
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"},
)SDKs for Every Stack
Official open-source SDKs with full TypeScript/type support. Install and start building.
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.