Skip to content

Qwen-Image API

undefineds max · up to 1.5K · Released Aug 4, 2025 · By Alibaba · Apache 2.0

Qwen-Image costs $0.012 per image, against an official rate of $0.02 — 40% below official pricing. It is a Alibaba model under the Apache 2.0 licence, callable through an OpenAI-compatible endpoint with the model id `qwen/qwen-image`.

Input

$0.0120/img

$0.0200/img

Billing

per image

no per-job minimum

Savings

40%

off official

  • No markup
  • OpenAI SDK compatible
  • No minimum spend
  • Apache 2.0

Best-in-class text rendering inside images — the one thing most open image models still get wrong. Apache 2.0.

Copy this and go

The model id is already filled in. Nothing in this snippet needs editing except your key.

from openai import OpenAI

client = OpenAI(
    api_key="YOUR_API_KEY",
    base_url="https://router.xark.io/api/v1"   # ← the only line that changes
)

response = client.chat.completions.create(
    model="qwen/qwen-image",
    messages=[{"role": "user", "content": "Hello"}]
)

Qwen-Image pricing across providers

Rates as published by each provider. We update these when they change; if you spot one that's stale, tell us and we'll fix it.

ProviderInputOutput
AI Token Router$0.0120/img
Official (Alibaba)$0.0200/img
Replicate$0.0250/img
fal.ai$0.0220/img
OpenRouterNot offered

What it's good at

  • Posters, ads and any image containing legible text
  • Bilingual EN/ZH typography
  • Image editing and inpainting
Full technical documentation

Related

Other image models

Qwen-Image questions

Every figure below is read from the same catalogue entry as the table above, so the two cannot disagree.

What does Qwen-Image cost on AI Token Router, and what is the official rate?

Qwen-Image is billed at $0.0120 per image here, against Alibaba's official $0.0200 — 40% below, or $0.0080 per image back. There is no platform fee, no minimum spend and no per-job surcharge on top of that rate, and failed requests are not billed. The official figure is published next to ours because a discount with no stated benchmark is not a claim anyone can check.

Can I call Qwen-Image right now?

Yes. A request naming `qwen/qwen-image` reaches a live upstream today and is billed at the rates above. 7 of the 24 models in this catalogue are callable right now; the rest are listed at their intended price and marked unavailable on their own pages, so you find that out here rather than from an error at call time.

How do I generate an image with Qwen-Image?

POST to `https://router.xark.io/api/v1/images/generations` with `"model": "qwen/qwen-image"` and a prompt, or call `images.generate` on an OpenAI SDK pointed at `https://router.xark.io/api/v1`. The request and response shapes follow the OpenAI images API, so an existing integration needs the base URL and the model id changed and nothing else. The bare name `qwen-image`, without the provider prefix, resolves to the same model.

What resolution does Qwen-Image output, and what counts as one billable image?

Qwen-Image outputs at up to 1.5K. Billing is per generated image at $0.0120/img — one rate, so resolution, prompt length and the number of denoising steps do not change what you are charged, and a request that fails is not billed at all. Asking for several images in one call bills as that many images, which is the same as making the calls separately.

What licence is Qwen-Image under, and can I use it commercially?

Qwen-Image is published by Alibaba under the Apache 2.0 licence. Apache 2.0 is a standard permissive licence: commercial use, modification and redistribution are allowed, subject to keeping the notices and stating what you changed. It also carries an explicit patent grant from the contributors, which terminates if you bring a patent claim over the work — that grant is usually the reason a legal team prefers it to MIT. No user threshold and no field-of-use restriction apply.

How does Qwen-Image pricing here compare with other providers carrying it?

Of the 2 other providers we track carrying Qwen-Image, the lowest is fal.ai at $0.0220/img, against our $0.0120/img. That is where the rates stood when we last reconciled them, and it can change without notice — we are not claiming to be the cheapest source for this model, only that our rate sits below Alibaba's official $0.0200/img. If you find one of these figures stale, tell us and we will correct it.

What is Qwen-Image actually good at?

Best-in-class text rendering inside images — the one thing most open image models still get wrong. Apache 2.0. In practice that points at posters, ads and any image containing legible text, bilingual EN/ZH typography and image editing and inpainting. The specifics that actually decide a fit — the rate, the licence and what it will and will not serve today — are all on this page rather than behind a sales conversation.

Start using Qwen-Image today

$5 in free credits, no credit card required.