• Qwen
  • Images

Qwen-Image-2.1 API: pricing, capabilities and setup

Qwen-Image-2.1 API through llmbox: a compact Qwen image model for illustrations, visuals and short lettering from a text prompt, billed per image.

pay as you go · no subscription · key right after sign-up

Model ID
Image
$0.135 / image
Get a key No subscription · pay as you go

How much Qwen-Image-2.1 costs

  • Image
    $0.135
    per image

Cost calculator

100 pcs

With llmbox
$13.50

Specs

  • Input
    text

Endpoints

  • /v1/images/generations

Setup in three steps

  1. 01
    Get a key

    Sign up and create an API key in the dashboard.

    Get a key →
  2. 02
    Set the base URL

    In any OpenAI-compatible client, point the API address to:

  3. 03
    Pass the model id

    Put this identifier in the model field:

import base64
import os
from openai import OpenAI

client = OpenAI(
    base_url="https://llmbox.cc/v1",
    api_key=os.environ["LLMBOX_API_KEY"],
)
resp = client.images.generate(
    model="qwen/qwen-image-2.1",
    prompt="A cat in a spacesuit on the Moon, watercolor",
    n=1,
    size="1024x1024",
)
with open("image.png", "wb") as f:
    f.write(base64.b64decode(resp.data[0].b64_json))
Use in

What Qwen-Image-2.1 is good for

Qwen-Image-2.1 is an image model from the Qwen family that, as the Qwen team puts it, combines generation quality, efficiency and versatility. According to the model card on Hugging Face, its generation component has 7 billion parameters, and it creates images in seven aspect ratios, from a 1:1 square to a 16:9 widescreen frame; Alibaba describes the architecture as compact and efficient. Through llmbox the model creates images from a text prompt.

What it's good for

  • illustrations for articles, posts and newsletters;
  • product images and still-life scenes for a catalog;
  • images for a specific format — a square for a feed, a vertical frame for stories, a wide frame for a cover;
  • drafts and exploring ideas before the final generation.

Qwen-Image-2.1 is handy when you need many images in different aspect ratios: the model creates the frame format you need right away, without cropping a finished picture. The Qwen team specifically highlights improved typography, portrait lighting and rendering of fine detail, so it's worth trying for short lettering too — a banner headline or a caption on packaging.

If there's a lot of lettering or it's small, compare the result with Qwen-Image-3.0: that line was built with a focus on text in 12 languages. Both models are called with the same client and key, but they set the frame size differently — check the Images section of the docs before switching.

When to pick another model

  • Dense layouts with a lot of text — menus, posters, newspaper pages: that's what Qwen-Image-3.0 Pro is for.

Image models from other vendors are on the image models page.

How to connect

The model is called from the OpenAI SDK or your own HTTP client with an llmbox key and the model ID qwen/qwen-image-2.1 — the same client and key you use for the Qwen text models. A sample request and size options are in the Images section of the docs.

Pricing and billing

The price per image is listed on this page. You pay for each generated image from a prepaid balance as you go, with no subscription. If you iterate through many draft variants, total spend by day and by model is easy to track in the Usage section, and the cost of a single request is in the request log in your dashboard.

Typical tasks

  • Illustrations and visuals for articles and social media
  • Product images and still-life scenes
  • Images in different aspect ratios, from square to widescreen
  • Drafts and exploring ideas before the final generation

Qwen-Image-2.1 or Qwen-Image-3.0?

ModelPrice
Qwen-Image-2.1$0.135
Qwen-Image-3.0$0.09

Qwen-Image-2.1 vs neighbours

ModelPrice
Qwen-Image-2.1$0.135
Qwen-Image-3.0 $0.09
Qwen-Image-3.0 Pro $0.203
GPT Image 2 OpenAIfrom $0.09
All Qwen models

Other Qwen models

Articles about the model

FAQ

How is Qwen-Image-2.1 different from Qwen-Image-3.0?

Qwen-Image-2.1 is a compact model of the Qwen-Image 2 line, which the Qwen team describes as a balance of generation quality, efficiency and versatility. The Qwen-Image-3.0 line focuses on small text in 12 languages and long prompts. Compare both on your own tasks — the price per image is on each model's page.

What aspect ratios does the model support?

Qwen's model card lists seven aspect ratios: 1:1, 4:3, 3:4, 3:2, 2:3, 16:9 and 9:16. How to set the size in a request is described in the Images section of the docs.

What model name do I pass to the API?

Create a key in your dashboard and call image generation from the OpenAI SDK with the llmbox base URL and the model qwen/qwen-image-2.1. The aspect ratio is set differently for it than for Qwen-Image-3.0 — the Images section of the docs explains how.

Do I need a Qwen API key?

No. An llmbox key from the API keys section of your dashboard is enough — no Alibaba Cloud account. The same key works for Qwen text models and every other model in the catalog.

How is Qwen-Image-2.1 billed?

Per generated image, at the price on this page, from a prepaid balance as you go. There is no subscription.