Qwen Image Edit API
Edits an image from a written instruction: one image in, one image out, at the size of the image you send.
$0.034 per image. Billed per image, not per token. 15% below the model vendor's published rate.
Edit one image
Send one image — a link, or the file itself — and say what to change. The result takes the size of the image you send, so there is no size to set.
The OpenAI Images API reaches this model, on our base URL and your existing code: images.edit with the file, or /v1/images/generations with a link in image. The OpenAI reply is base64 in b64_json, or ask for response_format: "url" and get a link of ours, kept for 7 days.
These are request formats, not providers: Tokenify is not affiliated with OpenAI or Google and does not serve their models on these endpoints. The SDK names in the samples are the packages you install to call this model.
import base64
import os
from openai import OpenAI
client = OpenAI(
base_url="https://api.tokenify.dev/v1",
api_key=os.environ["TOKENIFY_API_KEY"],
)
res = client.images.edit(
model="qwen/qwen-image-edit",
image=open("photo.png", "rb"),
prompt="Turn the scene to night under a full moon",
)
open("out.jpg", "wb").write(base64.b64decode(res.data[0].b64_json))curl https://api.tokenify.dev/v1/images/generations \
-H "Authorization: Bearer $TOKENIFY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "qwen/qwen-image-edit",
"prompt": "Turn the scene to night under a full moon",
"image": "https://example.com/photo.png"
}' | jq -r '.data[0].b64_json' | base64 -d > out.jpgWhat it costs
A hundred images cost $3.40. There is no subscription, no minimum and no per-request fee; a request that produces nothing is not charged.
- Per image
$0.040$0.034- Larger sizes
- Same price
- Image you send
- Free
15% offoff the model vendor’s published price per image. The discount is the same at every size we accept.
Sizes it accepts
A tier, or any width by height between 0.07 megapixels and 16.78 megapixels at an aspect ratio within 1:8 to 8:1. A tier lets the model pick the shape from your prompt; a tier and a ratio together give one exact size, from the table below.
Omitting size gives 1024x1024, which is the model’s own default.
Any other ratio is computed from the tier’s own area and clamped into the range, so it works without being in the table. How a size resolves.
The image models, side by side
| Model | Per image | Larger images | Image you send | Sizes |
|---|---|---|---|---|
Qwen Image Edit15% off qwen/qwen-image-edit | same price | free | 1024 × 1024 | |
Seedream 5.5 bytedance/seedream-5.5 | $0.020 | $0.035 above 2,601,124 pixels | $0.008 each, none free, per image made | 1K, 1.5K, 2K or any size 0.92 megapixels–4.62 megapixels |
Seedream 5.0 Pro20% off bytedance/seedream-5.0-pro | above 2.61 megapixels | $0.0024 first one free, per image made | 1K, 1.5K, 2K or any size 0.92 megapixels–4.62 megapixels | |
Seedream 5.0 Lite20% off bytedance/seedream-5.0-lite | same price | free | 2K, 3K, 4K or any size 3.69 megapixels–16.78 megapixels | |
Seedream 5.0 Flash bytedance/seedream-5.0-flash | $0.018 | same price | free | 1K, 1.5K, 2K or any size 0.92 megapixels–4.62 megapixels |
Z-Image15% off tongyi-mai/z-image | same price | free | 1024 × 1024, 1024 × 1536, 1536 × 1024, 1536 × 1536 |
From the live catalogue. All models · the full rate card · the endpoint.
Questions about this model
How is Qwen Image Edit billed?
Per image. Qwen Image Edit costs $0.034 an image at every size it accepts. There is no per-token price and no context window: the token counts the model vendor reports are metering, not the basis of the charge. Credit is reserved at the price of the image you asked for before the request is sent, so the charge is known in advance.
Which sizes can I ask for?
any width by height between 0.07 megapixels and 16.78 megapixels, at an aspect ratio up to 16:1 either way. A tier lets the model pick the shape from your prompt; an exact size gives you exactly that. Anything outside the range is a 400 that states the range, rather than being silently rounded to something you did not ask for.
Can I generate several images in one request?
Yes, up to 1 with n. Each one is generated and charged separately, and if some of them fail you get the ones that worked and pay for those. Reference images are charged once per image generated, because each image is made from all of them. Beyond that, make requests in parallel up to your key's 60 images a minute.
Does sending an image cost extra?
No. Qwen Image Edit does not charge for images you send in; only the image it generates is billed.
How much cheaper is this than the vendor’s own price?
15% below their published price per image, at every size. The list price is in the table on this page beside ours, so the comparison is a subtraction rather than a claim.
Where does the image come back?
Base64 in data[0].b64_json by default, or a link in data[0].url if you send response_format: "url". Every link is on img.tokenify.dev and the image is kept 7 days; the reply carries expires_at so you know when. We hold the bytes ourselves rather than pointing you somewhere else, so the address does not change and does not expire before expires_at says it will.
Do I need a subscription?
No. Billing is per image from prepaid credit, with no subscription, no seats and no minimum. Credit does not expire.
Last updated 2026-12-05. Prices come from the live catalogue at the time this page was built.