by Alibaba

Up to six detailed 2K images from one prompt

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

About Qwen Image 2.1 Pro

Qwen Image 2.1 Pro fits a design application that needs detailed generated layouts and reference-based revisions through the same model. A prompt describes the scene and any wording; num_outputs controls a batch of alternatives. The vinyl shop poster and bakery window sign examples are useful visual fixtures for a design review interface, while Jacket to winter demonstrates the separate editing path.

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

Introduction

Qwen Image 2.1 Pro Text to Image turns a written brief into images. Pro is Alibaba's hosted tier of Qwen Image 2.1; Alibaba offers it as an API and has not published weights for it. One request returns 1 to 6 PNG images.

Choose a mode by what you have

Starting materialMode
A written brief and nothing elseQwen Image 2.1 Pro Text to Image
One or more images to changeQwen Image 2.1 Pro Image Editing

Key features

Speed

14 to 31 seconds for a single image and 39 to 43 seconds for two 2K images in one call, end to end across our runs. Prompt expansion and thinking mode add time when they are on.

Text in the image

Our magazine cover asked for "AFTER DARK" as the masthead and "THE SILK ISSUE · NO. 07" below it and got both, letter for letter, in both images of the request.

Fifteen ratios, three sizes

Every ratio from 3:1 to 1:3 at 1k, 1.5k and 2k. At 2K:

RatioOutput size
1:12048 × 2048
16:92688 × 1536
9:161536 × 2688
4:32368 × 1760
3:22496 × 1664
2:31664 × 2496

Pro or Turbo

ProTurbo
What it isAlibaba's hosted Pro tier8-step checkpoint
WeightsNot publishedOpen, Qwen Research License
Images per request1 to 61 to 6

The request is the same, so you can send one prompt to both and keep the result you prefer. Alibaba has not published a quality comparison between them.

Request parameters

ParameterRequiredDescription
seedNoUse the same seed and settings for more controlled comparisons. ≥ 0 · ≤ 2147483647
promptYesDescribe what you want to make.
resolutionNoChoose an available output size. 1k · 1.5k · 2k · Default: 2k
num_outputsNoHow many results to make in one go. ≥ 1 · ≤ 6 · Default: 1
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
enable_thinkingNoThe model plans more carefully first. Slower, but better with complex references. Default: true
enable_prompt_expansionNoLets the model add detail to a short prompt. Default: false
prompt_optimization_modeNoHow your prompt gets rewritten: one quick pass, or a more detailed multi-step rewrite. direct · agent · Default: direct

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
Standard$0.036

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

Editorial and magazine-style covers

Mastheads and cover lines come back as written, so covers and title cards can be produced in one pass.

Product and lifestyle shots

Describe the product, the set and the light; generate a few at once and carry the best into image editing.

Campaign variations

The same prompt at several ratios gives matching assets for feed, story and banner placements.

Prompt guide & pro tips

Turn expansion on for short everyday prompts

A six-word idea gets a fuller scene. direct suits most prompts, agent rewrites in more detail, and thinking mode spends extra time on a better rewrite. Leave expansion off when your prompt is already detailed and has to run as written.

Write in a fixed order

Subject, wardrobe, pose, light, lens and palette, in plain sentences. Name the light source and its direction instead of a mood word.

Quote the words that must appear

Put exact wording in quotation marks, keep each line short and say where it sits ("a masthead across the top", "a small line under the title").

API quick start

Call the Qwen Image 2.1 Pro 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-pro/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-pro/text-to-image",
  "input": {
    "prompt": "A ceramic teapot on a linen cloth, soft window light, muted palette",
    "aspect_ratio": "1:1",
    "resolution": "2k",
    "num_outputs": 1
  }
}'

# 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 Pro API

  • Implement a poster draft queue with a batch selector and independent review of every delivered image. Store the exact requested wording alongside the artwork so an editor can check spelling before exporting a design.
  • Offer a revision action on an existing draft using image-to-image. Keep its source list ordered and versioned separately from the original text-only job, so a later edit can explain which visual references contributed to the new design.

Qwen Image 2.1 Pro parameter notes

  • prompt is required and bounded. There is no negative_prompt property: express exclusions in the main brief. Keep exact lettering distinguishable from scene directions in your prompt builder instead of collecting unsupported negative fields.
  • num_outputs must be an integer within the published batch range. resolution accepts 1k, 1.5k and 2k; all those tiers have the same per-image rate. Aspect ratio is a separate enum, so a resolution label alone does not specify a portrait or landscape canvas.
  • enable_prompt_expansion starts off. enable_thinking only affects the rewrite when expansion is enabled. prompt_optimization_mode selects direct or agent rewriting; expose these as related controls rather than promising that thinking changes an untouched prompt.

How Qwen Image 2.1 Pro API pricing adds up

Meter this model by returned images, including the alternatives requested through num_outputs. The output size tiers do not change the unit rate. Quote the complete batch before acceptance, retain the maximum USD hold and reconcile costUsd against the completed record. A batch is not a single-image purchase merely because it has a single taskId.

  • Create Image: $0.036 per run, $3.60 for 100 runs

Async jobs, webhooks and rate limits

Every Qwen Image 2.1 Pro 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-pro/text-to-image never runs or bills twice.

Common Qwen Image 2.1 Pro API errors

errorCodeWhat it usually means and how to fix it
invalid_requestCheck batch count, resolution spelling, ratio and prompt length. Remove negative_prompt and validate the actual assembled brief before the request enters your design queue.
invalid_assetFor editing, verify each source image is fetchable and that the ordered image_urls list contains actual image assets rather than gallery page URLs.
rate_limitedHonor Retry-After and pace design submissions. Retain accepted batch task IDs instead of recreating all alternatives when a subsequent submission is throttled.

Qwen Image 2.1 Pro API questions

How much does the Qwen Image 2.1 Pro API cost?

Qwen Image 2.1 Pro starts at $0.036 per image with Create Image, its lowest-priced task. 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 Pro in the API?

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

How should a design app track a batch?

Save taskId with the prompt revision and requested output count. Poll recordInfo or consume a verified task webhook, then present the returned assets as alternatives for that revision.

Does thinking always add a planning step?

No. It only operates during enabled prompt expansion. Save both flags so a reviewer can understand whether the submitted wording was eligible for rewriting.

Can a script assume output arrives immediately?

No. Creation is asynchronous. Separate accepted, pending and completed design states and avoid populating the export action until the result assets are available.

What are the limits of the Qwen Image 2.1 Pro API?

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

Can I try Qwen Image 2.1 Pro without writing code?

Run Qwen Image 2.1 Pro 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 takes exactly the same settings at less than half the price and suits drafts and volume. Pro is the one for the final portrait or cover.

More about Qwen Image 2.1 Pro