About Qwen Image 2
The Qwen Image 2 API is a compact general purpose image endpoint: prompt, aspect ratio and seed, plus exactly one image on edit. Its native English and Chinese reading makes it convenient for bilingual products that pass user prompts through unchanged.
Call it with the model name alibaba/qwen-image-2/text-to-image on POST /jobs/createTask, from $0.035.
Introduction
Qwen Image 2 Text to Image renders a written brief into a single image. Prompts are read natively in Chinese and English — there is no language parameter and no translation step, so switching working language mid-project changes nothing about the request.
Qwen Image 2 is Alibaba's general-purpose image model: 800-character prompts read natively in Chinese or English, five aspect ratios on text-to-image, and an editing endpoint that revises one reference at a ratio you choose. One image per request, with an optional seed to hold a draw steady while you compare.
Choose a Qwen Image 2 mode by starting material
| Starting material | Mode |
|---|---|
| A written art direction or design brief | Qwen Image 2 Text to Image |
| An approved source image to revise | Qwen Image 2 Image Editing |
Key features
Bilingual prompt work
Qwen Image 2 reads Chinese and English prompts directly, so a team can keep its working language where the creative brief is clearest instead of rebuilding it for handoff.
A written change to one supplied image
Its editing mode starts with one supplied visual and a written instruction. Use that starting point when the identity or composition already exists and the review is about a deliberate change, not a new concept from scratch.
Two distinct creative starting points
Text-to-image is for establishing a new scene from art direction; image editing is for revising a source visual. Selecting the starting material first prevents an edit brief from being evaluated like an original generation.
Request parameters
| Parameter | Required | Description |
|---|---|---|
seed | No | Use the same seed and settings for more controlled comparisons. ≥ 0 · ≤ 2147483647 |
prompt | Yes | Describe what you want to make. |
aspect_ratio | No | The shape of the frame: wide, square or tall. 1:1 · 4:3 · 3:4 · 16:9 · 9:16 · Default: 1:1 |
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.
| Option | USD per image |
|---|---|
| Standard | $0.035 |
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
Start from a written brief
Choose the frame first — 1:1, 4:3, 3:4, 16:9 or 9:16 — then describe subject, composition and light, and compare a few draws before settling on a direction.
Bilingual campaign production
A creative team briefs in Chinese, an overseas partner iterates in English, and neither side rewrites the prompt. Framing is chosen with aspect_ratio up front, so each placement is generated at its own shape rather than cropped out of a square.
Character and costume work
Pin a seed once a character works, then vary the set and the wardrobe around a stable face.
Product restaged in a new scene
When no product photograph exists yet, describe the object, its material and the set it sits in, and treat the result as a concept frame rather than a record of the real product. Once a product shot is approved, send it to the editing endpoint and restage that photograph instead.
Prompt guide & pro tips
Pick the frame before you write
aspect_ratio composes the image rather than cropping it, so the description has to match the frame you chose: a 9:16 brief should stack its subject vertically, while a 16:9 brief can spread the set across the width.
Spend the 800 characters on one complete scene
Subject, wardrobe, set, light, lens — in one pass, in either language. The cap is enforced before the request is sent, so cut adjectives before you cut the description of the set. Leave seed out while you hunt for a direction; once a frame is worth keeping, fix its seed and change one element at a time.
Adapt the included example
Start with the published example using aspect_ratio: 1:1. Replace the subject and creative direction while keeping the input contract for this mode intact.
The exact request behind the published still: one square brief covering wardrobe, a tail accessory, the bar set and the lantern light.
Check the result before iterating
800 characters is a hard ceiling — a longer prompt is rejected before the request is sent, so spend the budget on subject, wardrobe, light and lens rather than on adjectives. One image comes back per request; there is no batch field, so exploring means repeating the call. In-image text is not this model's strength: for signage and mastheads use the Qwen Image 3.0 line instead.
API quick start
Call the Qwen Image 2 API in three steps
- 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.
- Send the request. POST /jobs/createTask with model alibaba/qwen-image-2/text-to-image and an input object that follows the parameter table. The response returns a task ID straight away.
- 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/text-to-image",
"input": {
"prompt": "A ceramic teapot on a linen cloth, soft window light, muted palette",
"aspect_ratio": "1: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 API
- Bilingual creative apps that accept prompts in either language.
- Single-photo restaging tools for products.
- Seeded variation tools for small A/B changes.
Qwen Image 2 parameter notes
- Prompt length is capped at 800 characters.
- image_urls on edit accepts exactly one image.
- aspect_ratio defaults to 1:1, including on edit.
- seed is supported on both endpoints.
How Qwen Image 2 API pricing adds up
A flat price per image for both endpoints.
- Create Image: $0.035 per run, $3.50 for 100 runs
Async jobs, webhooks and rate limits
Every Qwen Image 2 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/text-to-image never runs or bills twice.
Common Qwen Image 2 API errors
| errorCode | What it usually means and how to fix it |
|---|---|
invalid_request | A prompt over 800 characters or more than one image on edit. |
invalid_asset | The source photo could not be fetched. |
content_rejected | A refused prompt or photo. |
Qwen Image 2 price on other platforms
| Options | fal | Replicate | |
|---|---|---|---|
| Qwen Image 2 | $0.0350/ image | $0.0350/ image | $0.0350/ image |
Each platform's public API list price for the same model and settings, checked Nov 13, 2026.
Qwen Image 2 API questions
How much does the Qwen Image 2 API cost?
Qwen Image 2 starts at $0.035 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 in the API?
Put alibaba/qwen-image-2/text-to-image for Create Image; alibaba/qwen-image-2/edit for Edit Image in the model field of POST /jobs/createTask.
Does the Qwen Image 2 API need a language parameter?
No. English and Chinese prompts are read natively.
How many images can a Qwen Image 2 edit take?
Exactly one; a second is rejected.
Can Qwen Image 2 return several images?
No, one per request.
What are the limits of the Qwen Image 2 API?
Aspect ratios: 1:1 · 4:3 · 3:4 · 16:9 · 9:16; Prompt length (characters): 800. Requests outside these limits are rejected before anything is charged.
Can I try Qwen Image 2 without writing code?
Run Qwen Image 2 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 takes 5,000-character prompts and edits with up to ten references.
- Qwen Image 2.1 Pro APIUp to six detailed 2K images from one promptFrom $0.036 per image
- Qwen Image 2.1 Turbo APIFast 8-step renders, up to six per promptFrom $0.0144 per image
- Qwen Image 2.1 APIOpen model with 2K output and transparent backgroundsFrom $0.024 per image
- Qwen Image 2.1 LoRA APIQwen Image 2.1 images and edits with up to three of your LoRAsFrom $0.03 per image
- Qwen Image 3.0 Pro APIFine typography plus lifelike skin, fabric and glassFrom $0.04 per image
- Qwen Image 3.0 APIReadable signs and headlines rendered into the imageFrom $0.03 per image
- Qwen Image 2 APISimple prompt-to-image and one-photo editsFrom $0.035 per image
- Qwen Image 2512 LoRA APIQwen Image 2512 renders and edits with your own LoRAsFrom $0.03 per image
- Qwen Image Edit 2509 LoRA APIMulti-photo Qwen edits that load your own LoRAsFrom $0.03 per image
- Qwen Image 1.0 LoRA APIOriginal Qwen-Image with clean lettering and your own LoRAsFrom $0.03 per image
More about Qwen Image 2
- Endpoints
- Qwen Image 2 · Edit Image