Unified Image API is now generally available. Read the docs →
Unified Image API

Qwen-Image Max API

Qwen-Image Max — the flagship of Alibaba's Qwen-Image line, with reference-image input, 1K and 2K output and a fixed set of five aspect ratios.

from 8 credits ≈ $0.10 per image

At a glance

Model id
qwen-image-max
Capability
image.generate
Resolutions
1K · 2K
Aspect ratios
16:9, 4:3, 1:1, 3:4, 9:16
Images per request
4
Seed
supported
Reference images
up to 4 per request
Negative prompt
supported
Prompt length
up to 2000 characters

Pricing

Cost = credits per image × n. Credits are reserved when you submit a job and refunded in full if it fails or you cancel it before it starts.

ResolutionCredits / imageUSD / imageUSD for 4 images
1K8$0.10$0.40
2K9$0.113$0.45

USD figures are converted at the Scale pack rate; larger packs are cheaper per credit. See pricing for the full pack list.

All credit packs →

List prices elsewhere

Publicly listed per-image prices for comparable access to this model, read from each provider's own pricing page. Providers change prices without notice — follow the links for the current figure.

ProviderList price per imageChecked on
Unified Image API (1K)
8 credits · at the Scale pack rate
$0.10live
Alibaba Cloud Model Studio (qwen-image-max)
Alibaba's own list price for image generation, per image (international region).
$0.0752026-08-30

Quick start

Create a key in the dashboard, then submit a job and poll it. Replace the id in the second call with the one the first call returns.

1. Submit a generation

cURL
curl -s -X POST https://api.genmux.tech/v1/generations \
  -H "Authorization: Bearer $API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"model":"qwen-image-max","prompt":"a red fox in fresh snow, low winter sun","n":1,"resolution":"1K","ratio":"1:1"}'
Response · 202 Accepted
{
  "id": "0d8b6a3e-2f1c-4a5b-9c1d-7e2f3a4b5c6d",
  "model": "qwen-image-max",
  "status": "queued",
  "params": {"prompt": "a red fox in fresh snow, low winter sun", "n": 1, "resolution": "1K", "ratio": "1:1"},
  "cost": 8,
  "created_at": "2026-08-30T20:01:12.345Z"
}

2. Poll until status is succeeded (typically 1–20 s)

cURL
curl -s https://api.genmux.tech/v1/generations/0d8b6a3e-2f1c-4a5b-9c1d-7e2f3a4b5c6d \
  -H "Authorization: Bearer $API_KEY"
Response · 200 OK
{
  "id": "0d8b6a3e-2f1c-4a5b-9c1d-7e2f3a4b5c6d",
  "model": "qwen-image-max",
  "status": "succeeded",
  "cost": 8,
  "images": [
    {"index": 0, "url": "https://…/0.png?X-Amz-Expires=900&…", "expires_at": "2026-08-30T20:16:30Z", "mime": "image/png", "width": 1024, "height": 1024, "bytes": 1843201, "sha256": "9f2c…"}
  ],
  "created_at": "2026-08-30T20:01:12.345Z",
  "finished_at": "2026-08-30T20:01:19.802Z"
}
Python (requests)
import os, time, uuid, requests

BASE = "https://api.genmux.tech"
auth = {"Authorization": f"Bearer {os.environ['API_KEY']}"}

job = requests.post(
    f"{BASE}/v1/generations",
    headers={**auth, "Idempotency-Key": str(uuid.uuid4())},
    json={"model": "qwen-image-max", "prompt": "a red fox in fresh snow, low winter sun", "n": 1, "resolution": "1K", "ratio": "1:1"},
    timeout=30,
).json()

while job["status"] in ("queued", "running"):
    time.sleep(1)
    job = requests.get(f"{BASE}/v1/generations/{job['id']}", headers=auth, timeout=30).json()

print(job["images"][0]["url"])  # presigned, valid for 15 minutes
Node.js (fetch)
const BASE = "https://api.genmux.tech";
const auth = { Authorization: `Bearer ${process.env.API_KEY}` };

let job = await fetch(`${BASE}/v1/generations`, {
  method: "POST",
  headers: { ...auth, "Idempotency-Key": crypto.randomUUID(), "Content-Type": "application/json" },
  body: JSON.stringify({ model: "qwen-image-max", prompt: "a red fox in fresh snow, low winter sun", n: 1, resolution: "1K", ratio: "1:1" }),
}).then((r) => r.json());

while (job.status === "queued" || job.status === "running") {
  await new Promise((r) => setTimeout(r, 1000));
  job = await fetch(`${BASE}/v1/generations/${job.id}`, { headers: auth }).then((r) => r.json());
}

console.log(job.images[0].url); // presigned, valid for 15 minutes
Full API reference →

Frequently asked questions

What is the Qwen-Image Max API?
Qwen-Image Max is the flagship of Alibaba's Qwen-Image line — the same family built around legible in-image text, including Chinese, and around editing from reference images, at the top quality tier Alibaba offers for it. On Unified Image API the Qwen-Image API exposes it as the model id "qwen-image-max". It renders at 1K, 2K, takes up to 4 reference images per request, and accepts a fixed set of aspect ratios: 16:9, 4:3, 1:1, 3:4, 9:16.
How much does one Qwen-Image Max image cost?
From 8 credits per image, about $0.10 at the Scale pack rate. Price follows the resolution tier: 1K — 8 credits · 2K — 9 credits. A request for n images costs n times the per-image price. Credits are prepaid, so there is no subscription and no per-seat fee.
How is Qwen-Image Max different from Qwen-Image 2.0?
Max is the higher tier of the same line and costs more per image: 1K — 8 credits · 2K — 9 credits. Its aspect-ratio list is narrower, and the request fields are otherwise identical to 2.0, so switching between them is one field. Against Nano Banana Pro the trade is different: Nano Banana Pro offers higher resolution tiers, while Max is the one to reach for when typography or reference-image editing is what the frame turns on. Max renders at 1K, 2K.
Why does Qwen-Image Max accept fewer aspect ratios?
Because the upstream model is served for a fixed set of shapes: 16:9, 4:3, 1:1, 3:4, 9:16, with no "auto". A ratio outside that list is rejected with a 400 validation_error rather than approximated, so you never pay for a frame you did not ask for. If you need an unusual shape, pick a model whose spec table lists it — GET /v1/models returns the ratios for every model — or generate at the closest listed ratio and crop.
What resolutions does Qwen-Image Max support?
Resolution is a tier, not a pixel size: this model renders at 1K, 2K, and the request defaults to 1K when you omit the resolution field. A tier outside that list is rejected with a 400 validation_error rather than quietly downscaled, so you always know which price you are paying. The legacy size field ("1024x1024") still works for existing integrations and is mapped to the nearest tier and ratio.
What aspect ratios can I ask for?
16:9, 4:3, 1:1, 3:4, 9:16. Pass it as the ratio field; it defaults to 1:1. A ratio outside the list is a 400 validation_error. Ratio never changes the price — only the resolution tier does.
Can I send reference images (image-to-image)?
Yes. Pass images as an array of public https URLs — up to 4 per request — and the prompt then describes the edit or the variation rather than the whole scene; with reference images the prompt itself is optional. URLs must be reachable from the public internet: private hosts and non-https URLs are rejected with a 400 validation_error.
Is there a negative prompt?
Yes. Pass negative_prompt alongside prompt to describe what you do not want in the frame — artefacts, text, watermarks, a colour you are steering away from. It costs nothing extra.
How many images can I generate in one request?
Up to 4 per call, via the n field. Each image is billed separately, so n=4 at 1K costs 4 times the per-image price. For larger batches submit several jobs — throughput is bounded by your account's in-flight job limit (20 by default), not by n.
Are generations reproducible? Does it support seeds?
Yes. Pass an integer seed alongside the prompt, and the same seed with the same prompt, resolution and ratio gives you a reproducible result — which is also how you compare two models fairly. Leave it out and each call is sampled independently.
How long does a generation take, and do I have to poll?
Typically 1–20 seconds from submit to succeeded, depending on the resolution tier and queue depth. The API is asynchronous: POST /v1/generations returns a job id in milliseconds, and from there you either poll GET /v1/generations/{id} or pass webhook_url and let us POST you once the job finishes, retrying with backoff for up to 8 attempts until your endpoint returns 2xx. Every delivery carries an HMAC-SHA256 signature you verify with your account webhook secret.
What happens if a generation fails?
You are not charged. Credits are reserved when the job is created and refunded in full if the job fails, is cancelled while still queued, or the model is temporarily unavailable (503 model_unavailable). The failed job carries an error object with a code such as content_policy so you can branch on it.
What stops me from being double-charged on a retry?
Every POST /v1/generations requires an Idempotency-Key header. Resending the same key returns the original job with 200 and charges nothing extra, so a network timeout can be retried safely. Reusing a key with a different body is rejected with 422 idempotency_key_mismatch.
Can I use the generated images commercially?
Yes — under our terms of service you own the rights we can pass on to the output of your generations and may use them commercially, provided the prompt and the use comply with the terms and the upstream model provider's content policy. Read the terms before shipping anything customer-facing.

Other models

Same key, same request shape — switch by changing the model field.

  • Nano Banana API

    nanobanana

    Fast, general-purpose text-to-image and image-to-image generation at 1K, behind a single HTTP endpoint. Billed per image in credits, refunded automatically when a job fails.

    from 2 credits ≈ $0.025 per image

  • Nano Banana Pro API

    nanobanana-pro

    Higher-fidelity generation for hero shots and print-sized crops, with 1K, 2K and 4K output — roughly twice the base price per image at 1K.

    from 4 credits ≈ $0.05 per image

  • Qwen-Image 2.0 API

    qwen-image-2

    Qwen-Image 2.0 from Alibaba — an image model built around legible in-image text, including Chinese, with reference-image input and 1K or 2K output.

    from 3 credits ≈ $0.038 per image

  • Seedream 5.0 API

    seedream-5

    ByteDance Seedream 5.0 — a high-resolution model for photoreal frames and in-image text, served at 2K and 4K only. Takes reference images, billed per image in credits.

    from 16 credits ≈ $0.20 per image

  • Wan 2.7 Image API

    wan-2-7-image

    wan2.7-image from Alibaba's Tongyi Wanxiang line — text-to-image and reference-image generation at 1K or 2K, on the same endpoint and API key as every other model here.

    from 2 credits ≈ $0.025 per image