Skip to content
youbot
Qwen Image Edit cover

Qwen Image Edit API

qwen-image-edit
QwenCommercial use API verifiedImage generation

Qwen Image Edit — fast, high-fidelity AI image generation & editing.

by Qwen

Get Your API Key
View as Markdown

Pricing: Qwen Image Edit costs 3.36 credits per image (≈ $0.0336).

Save up to 13%with the $1,250 top-up pack (+10% bonus) — 4% lower than direct rates even without itTop up

24H Status Monitor

Operational
24h agonow
Loading…

Affordable Qwen Image Edit API on you.bot

Qwen Image Edit — Alibaba's instruction-driven photo editor that reworks visual content and in-image text from a single prompt.

Qwen Image Edit API pricing & guide (2026)

Qwen Image Edit — fast, high-fidelity AI image generation & editing. Through you.bot you call the Qwen Image Edit API by Qwen on the same unified endpoint as every other model — one key, one integration.

On you.bot, the Qwen Image Edit API costs about $0.034 per image — roughly 4% cheaper than the official Qwen price of $0.035. You only pay for successful generations; failed tasks are never charged.

Billing is pay-as-you-go in credits (1 credit = $0.01 USD) — no subscription, no monthly minimum, and credits never expire. So Qwen Image Edit API pricing in 2026 is easy to predict: you pay per successful call and nothing for failures.

Core capabilities of the Qwen Image Edit API

Prompt-driven edits

Provide a source image and a plain-language instruction, and it applies your change directly with no masks or manual selection needed.

Text-in-image editing

Add, remove, or rewrite text baked into a picture in English or Chinese while preserving the original font, size, and style.

Semantic and appearance control

Reshape whole objects and scenes or make precise local touch-ups, then tune guidance_scale to control how closely results follow your prompt.

Where the Qwen Image Edit API fits in production

Every image below was generated on you.bot with the Qwen Image Edit API itself — no stock photography.

A set from one photo

A set from one photo

Detail crops and alternate angles from a single approved frame.

Localise the props

Localise the props

Same hero product, props that suit the market.

Swap the background, keep the subject

Swap the background, keep the subject

Put the same product on a new ground without re-shooting it.

Change the light, not the shot

Change the light, not the shot

Move a frame from morning to golden hour as a parameter.

Recolour one object

Recolour one object

Change a single colourway and keep everything else identical.

Remove what should not be there

Remove what should not be there

Clear distractions out of a usable photo instead of discarding it.

How to access and deploy the Qwen Image Edit API on you.bot

Step 1

Get your API key

Create a key in the dashboard — one key works across every model on the platform.

Step 2

Call the Qwen Image Edit endpoint

POST your prompt and parameters to /api/v1/generate with your key in the Authorization header.

Step 3

Poll for your result

Use the returned taskId to poll the task endpoint, or register a webhook to receive the result URLs.

curl -X POST https://you.bot/api/v1/generate \
  -H "Authorization: Bearer sk-live-..." \
  -H "Content-Type: application/json" \
  -d '{
    "modelId": "qwen-image-edit",
    "input": { "prompt": "..." }
  }'

Qwen Image Edit API on you.bot vs going direct

Featureyou.botGoing direct
Price per image$0.034$0.035
Failed-task billingFree (auto-refund)Charged
IntegrationOne unified APIPer-vendor SDKs
Credit expiryNeverVaries

4.9

Based on 1,200+ developer reviews

Why choose you.bot for the Qwen Image Edit API

4% cheaper

Lower rates than going direct to Qwen — and you only pay for successful runs.

Production-grade reliability

Monitored availability with automatic credit refunds on failed jobs.

One API for everything

Swap models freely without touching your integration or juggling vendors.

FAQs about the Qwen Image Edit API

Qwen Image Edit is billed per image at about $0.034 on you.bot — and you only pay for successful generations.

Qwen

Qwen Image Edit API code example

POST/api/v1/generate

Qwen Image Edit — fast, high-fidelity AI image generation & editing.

Overview

Qwen Image Edit runs in two steps: POST /api/v1/generate to start a task, then poll GET /api/v1/task/{taskId} until the result is ready.

Authentication

All requests require a Bearer Token in the header:

Authorization: Bearer YOUR_API_KEY

Request parameters

ParameterTypeRequiredDescription
modelIdstringYesModel id: `qwen-image-edit`
inputobjectYesInput parameters object (see below)
callbackUrlstringNohttps URL we POST the finished task to. Signed with `X-Webhook-Signature` once you create a webhook signing key in Dashboard → Settings

input object parameters

ParameterTypeRequiredDescription
promptstringYesThe prompt to generate the image with · default: Enhance into a rich cinematic color grade with soft golden rim light, refined detail, and natural depth.
image_urlstringYesThe URL of the image to edit. (image URL)
accelerationstringNoAcceleration level for image generation. Options: 'none', 'regular'. Higher acceleration increases speed. 'regular' balances speed and quality. Default value: "none" (options: none, regular, high) · default: none
image_sizestringNoThe size of the generated image. Default value: landscape_4_3 (options: square, square_hd, portrait_4_3, portrait_16_9, landscape_4_3, landscape_16_9) · default: landscape_4_3
num_inference_stepsnumberNoThe number of inference steps to perform. Default value: 30 (range 2–49) · default: 25
seednumberNoThe same seed and the same prompt given to the same version of the model will output the same image every time.
guidance_scalenumberNoThe CFG (Classifier Free Guidance) scale is a measure of how close you want the model to stick to your prompt when looking for a related image to show you. Default value: 4 (range 0–20) · default: 4
sync_modebooleanNoIf set to true, the function will wait for the image to be generated and uploaded before returning the response. This will increase the latency of the function but it allows you to get the image directly in the response without going through the CDN. (true/false) · default: false
num_imagesstringNoOptions: 1, 2, 3, 4
enable_safety_checkerbooleanNoIf set to true, the safety checker will be enabled. Default value: true (true/false) · default: true
output_formatstringNoThe format of the generated image. Default value: "png" (options: jpeg, png) · default: png
negative_promptstringNoThe negative prompt for the generation Default value: " " · default: blurry, ugly
nsfw_checkerbooleanNoA configurable parameter. Defaults to true in the Playground. (true/false) · default: true

Query task status

GET/api/v1/task/{taskId}?model=qwen-image-edit

When state is success, the output is in resultUrls:

{ "state": "success", "resultUrls": ["https://…/api/file?t=…"] }

Error codes

CodeDescription
200Request successful
400Invalid request parameters
401Authentication failed — check API Key
402Insufficient account balance
403IP not allowed for this key, or the key is restricted to other models
404Task not found, or it has expired
409Duplicate request — an identical submit arrived moments ago. Nothing was charged; retry is safe
413Payload too large — see the character and file-size limits for this model
429Rate limit exceeded — retry after the Retry-After header
500Internal server error
504Upstream timed out — nothing was delivered; retry is safe
Request
curl --location 'https://you.bot/api/v1/generate' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data-raw '{
    "modelId": "qwen-image-edit",
    "input": {
        "prompt": "Enhance into a rich cinematic color grade with soft golden rim light, refined detail, and natural depth.",
        "image_url": "https://you.bot/examples/grok-imagine-text-to-image.jpg",
        "acceleration": "none",
        "image_size": "landscape_4_3",
        "num_inference_steps": 25,
        "seed": 1,
        "guidance_scale": 4,
        "sync_mode": false,
        "num_images": "1",
        "enable_safety_checker": true,
        "output_format": "png",
        "negative_prompt": "blurry, ugly",
        "nsfw_checker": true
    },
    "callbackUrl": "https://your-domain.com/api/callback"
}'
Response
{
  "taskId": "281e5b0…f39b9",
  "creditsCharged": 3.36
}