by Alibaba

Open model with 2K output and transparent backgrounds

alibaba/qwen-image-2.1/text-to-image
Qwen Image 2.1 AI Image Generator online
  • Up to 2K
  • Up to 10 reference images
  • 15 aspect ratios
  • Create Image
  • Edit Image

About Qwen Image 2.1

The Qwen Image 2.1 API combines several practical controls in one model: mask_url for region edits, background transparent for alpha cut-outs, a seed for reproducibility, and 15 aspect ratios. Both endpoints typically finish in about 45 seconds.

Call it with the model name alibaba/qwen-image-2.1/text-to-image on POST /jobs/createTask, from $0.024.

Introduction

Qwen Image 2.1 Text to Image turns a written brief into one image per request. Alibaba's Qwen team open-weighted the model on 21 September 2026 and it went live here the same day, hosted, with no weights to download and no GPU to rent.

Choose a Qwen Image 2.1 mode by starting material

Starting materialMode
A written brief and nothing elseQwen Image 2.1 Text to Image
One to ten source images to work fromQwen Image 2.1 Image Editing
A brief plus your own LoRA weightsQwen Image 2.1 LoRA

Key features

Fifteen ratios, composed rather than cropped

The composition is built at the ratio you request, so a panoramic frame is genuinely staged for its width instead of arriving as the middle slice of a square.

Request parameters

ParameterRequiredDescription
seedNoUse the same seed and settings for more controlled comparisons. ≥ 0 · ≤ 2147483647
promptYesDescribe what you want to make.
backgroundNoKeep, remove or replace the background. opaque · transparent · Default: opaque
resolutionNoChoose an available output size. 1k · 1.5k · 2k · Default: 1k
aspect_ratioNoThe shape of the frame: wide, square or tall. 1:1 · 16:9 · 9:16 · 4:3 · 3:4 · 3:2 · 2:3 · 21:9 · 9:21 · 2:1 · 1:2 · 3:1 · 1:3 · 5:4 · 4:5 · Default: 1:1
output_formatNoFile type of the result. jpeg · png · webp · Default: jpeg
enable_prompt_expansionNoLets the model add detail to a short prompt. Default: true

Pricing

Prices are in USD and charged to your PopNow balance. When a task is accepted, we reserve the maximum quoted amount from your PopNow balance. On completion, we charge for actual usage, never more than the hold, and release the remainder. If the task fails, the hold is released.

OptionUSD per image
resolution 1K$0.024
resolution 1.5K$0.048
resolution 2K$0.048

Send the same request body to POST /jobs/quote to see the estimated and maximum USD charge before running. A quote does not run the task or charge your balance.

Use cases

High-volume concept passes

Run the spread, pick the survivors, promote those to 2k.

Wide banners and phone-first verticals

3:1 and 21:9 for site headers and cinematic plates; 9:21 and 1:3 for full-bleed mobile. Staged at the ratio, not cropped to it.

Character starting frames

Generate the character here, then move to image editing and feed that frame back as a reference to hold identity while you change wardrobe, light or setting.

Prompt guide & pro tips

Pick the ratio and the tier before writing

Both decisions change the picture more than any adjective will. Choose the shape you will publish at, and stay at 1k until the composition is settled.

Put exclusions inside the prompt

There is no negative prompt on this family. With 5,000 characters available, state what belongs in the frame and then state what must not appear — duplicated limbs, extra figures, unrequested objects.

Keep scenes to one or two figures at 2k

Anatomy is where this model breaks first. Single figures and pairs hold together; crowded multi-figure compositions at the top tier can duplicate or merge limbs. If a scene needs a crowd, build it by editing rather than asking for it all at once.

Treat the seed as a nudge

The same seed twice does not return the same file. Use it to keep a set coherent, and archive the asset when a frame is final.

API quick start

Call the Qwen Image 2.1 API in three steps

  1. Create an API key. Sign in to PopNow and create a key in the API console. Keys start with sk-popnow-. API calls are billed in USD from your PopNow balance.
  2. Send the request. POST /jobs/createTask with model alibaba/qwen-image-2.1/text-to-image and an input object that follows the parameter table. The response returns a task ID straight away.
  3. Get the result. Poll GET /jobs/recordInfo with the task ID, or pass a callBackUrl and we post the result to it. Download the output links when the task succeeds.
# 1. Create the task. Keep the Idempotency-Key if you retry after a network error.
export IDEMPOTENCY_KEY="$(uuidgen)"
curl -X POST https://api.popnow.ai/api/v1/jobs/createTask \
  -H "Authorization: Bearer $POPNOW_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -d '{
  "model": "alibaba/qwen-image-2.1/text-to-image",
  "input": {
    "prompt": "A ceramic teapot on a linen cloth, soft window light, muted palette",
    "aspect_ratio": "1:1",
    "resolution": "1k",
    "background": "opaque",
    "output_format": "jpeg"
  }
}'

# 2. Copy data.taskId from the response, then poll until state is succeeded, failed, canceled or expired.
TASK_ID="TASK_ID_FROM_RESPONSE"
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=$TASK_ID" \
  -H "Authorization: Bearer $POPNOW_API_KEY"

Replace the prompt and any links with your own. The API tab has the response, polling and callback reference.

What to build with the Qwen Image 2.1 API

  • Inpainting tools where users paint the region to change.
  • Banner and wallpaper generators for unusual aspect ratios.
  • Catalogue variation pipelines at 1K with seeds.

Qwen Image 2.1 parameter notes

  • mask_url works with exactly one image in image_urls.
  • background transparent returns an alpha channel; use png or webp.
  • resolution offers 1k, 1.5k and 2k; seed is supported.
  • enable_prompt_expansion can rewrite prompts; disable it for reproducible jobs.

How Qwen Image 2.1 API pricing adds up

Per image by resolution. On edits, each reference image adds to the charge, so a ten-reference edit costs several times a single-reference one.

  • resolution 1k: $0.024 per run, $2.40 for 100 runs
  • resolution 2k: $0.048 per run, $4.80 for 100 runs

Async jobs, webhooks and rate limits

Every Qwen Image 2.1 request is asynchronous: createTask returns a taskId straight away, and the result arrives when the job finishes. Poll GET /jobs/recordInfo every few seconds, or pass a public https callBackUrl and verify the X-Webhook-Signature header (HMAC-SHA256 over taskId, timestamp and the body hash) before trusting the payload. Each account gets 1,000 write requests per 10 seconds; a 429 carries Retry-After. Send an Idempotency-Key with createTask so a retried request for alibaba/qwen-image-2.1/text-to-image never runs or bills twice.

Common Qwen Image 2.1 API errors

errorCodeWhat it usually means and how to fix it
unsupported_combinationmask_url sent with more than one image in image_urls.
invalid_requestMore than ten references or an unknown aspect ratio.
generation_failedVery dense multi-person scenes at 2K can fail or distort; reduce figures or resolution.

Qwen Image 2.1 price on other platforms

OptionsPopNowfal
2K−40% vs fal$0.0480/ image$0.0800/ image

Each platform's public API list price for the same model and settings, checked Nov 3, 2026.

Qwen Image 2.1 API questions

How much does the Qwen Image 2.1 API cost?

Qwen Image 2.1 starts at $0.024 per image with Create Image, its lowest-priced task. Prices by option: 1K $0.024 per image, 1.5K $0.048 per image, 2K $0.048 per image. API usage is charged in USD to your PopNow balance. When a task is accepted, we reserve the maximum quoted amount from your PopNow balance. On completion, we charge for actual usage, never more than the hold, and release the remainder. If the task fails, the hold is released.

What is the model name for Qwen Image 2.1 in the API?

Put alibaba/qwen-image-2.1/text-to-image for Create Image; alibaba/qwen-image-2.1/edit for Edit Image in the model field of POST /jobs/createTask.

How do masked edits work in the Qwen Image 2.1 API?

Send one image in image_urls and a mask in mask_url; only the masked region changes.

Does Qwen Image 2.1 support a seed?

Yes, on both endpoints.

Does each reference cost extra on Qwen Image 2.1 edits?

Yes, the price grows with the number of reference images.

What are the limits of the Qwen Image 2.1 API?

Resolutions: 1K · 1.5K · 2K; Aspect ratios: 1:1 · 16:9 · 9:16 · 4:3 · 3:4 · 3:2 +9; Prompt length (characters): 5,000. Requests outside these limits are rejected before anything is charged.

Can I try Qwen Image 2.1 without writing code?

Run Qwen Image 2.1 in the Playground without an API key, using the same PopNow balance as the website, shown in USD. Each run appears in your developer history with its matching code.

All Qwen Image models

Qwen Image 2.1 Turbo is faster and cheaper for drafts, and Pro adds finer portrait detail. The standard model sits between them, with masked edits and transparent cut-outs.

More about Qwen Image 2.1