Introduction
Qwen Image 2 Image to Image takes exactly one reference image plus an instruction and returns one edited result: relit, restyled, re-dressed or with lettering added, as the prompt describes.
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 |
|---|---|---|
aspect_ratio | No | The shape of the frame: wide, square or tall. 1:1 · 4:3 · 3:4 · 16:9 · 9:16 · 3:2 · 2:3 · 21:9 · Default: 1:1 |
image_urls | Yes | Photos to edit or combine. Say in the prompt what each one adds. |
prompt | Yes | Describe the image to produce from the source: subject, composition, style, and lighting. |
seed | No | Reuse the same number to get a repeatable result. ≥ 0 · ≤ 2147483647 |
Pricing
Prices are in credits, the same credits you use on the website (1 credit = $0.01). The hold is taken when the task is accepted and settled to the actual charge when it finishes; failed tasks are refunded.
| Option | Credits per image | ≈ USD |
|---|---|---|
| Standard | 5.25 | $0.053 |
Each task is rounded up to whole credits, so one run at the lowest tier costs 6 credits per image ($0.06).
For an exact number before you run, send the same body to POST /jobs/quote.
Use cases
Refine a supplied visual
Use this mode when an existing photograph should fix the subject, composition or style. Send it as the single entry in image_urls, say what changes and what must stay identical, and compare the result with the source at the size it will be used.
Product restaged in a new scene
Send the product shot and describe the setting it should sit in, including which light it should pick up. One call, one frame. If the environment has to come from a second photograph, use an editing model that accepts several references.
Bilingual campaign production
Adapt one approved key visual for another market by asking for lettering on a blank surface, written into the prompt exactly as it should read, in Chinese or English. Keep it to a short string: signage and dense copy are the Qwen Image 3.0 line's job.
Character and costume work
Keep the subject from one photograph and describe the new garment in words, including fabric and sheen. Set aspect_ratio to the photograph's shape — it defaults to 1:1 — so the result is not reshaped into a square you did not ask for.
Prompt guide & pro tips
Pick the frame before you write
The output shape comes from aspect_ratio, not from the source. It defaults to 1:1, and eight ratios are available, including 3:2, 2:3 and 21:9; set the one that matches your photograph before you write the instruction.
Spend the 800 characters on one complete scene
Describe the result, not the source. Say first what must stay identical, then what changes, and spend the rest on the new set and light — anything left unstated is open to drift.
Adapt the included example
Start with the published example and replace the creative direction while keeping the input contract for this mode intact.
The image has to come from you — the URL here is a placeholder, not a hosted sample.
Check the result before iterating
There is no strength dial here, and exactly one reference is accepted — a second is rejected before the request leaves the platform. aspect_ratio defaults to 1:1 and does not follow the source, so a portrait photograph comes back square unless you set the ratio. How much of the source survives is decided by how specifically you write the instruction. Fix seed when you want to compare two phrasings of the same edit against an identical draw.
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- and use the same credits as the website.
- Send the request. POST /jobs/createTask with model alibaba/qwen-image-2/edit 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/edit",
"input": {
"prompt": "A ceramic teapot on a linen cloth, soft window light, muted palette",
"image_urls": [
"https://media.popnow.ai/influencer/examples/marco.webp"
],
"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.
Qwen Image 2 API questions
How much does the Qwen Image 2 API cost?
Qwen Image 2 starts at 6 credits ($0.06) per image with Edit Image, its cheapest task. Credits are the same as on the website (1 credit = $0.01), new accounts get 30 free credits, and failed tasks are refunded.
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 prompt really work in Chinese?
Yes, natively, with no language parameter and no translation step. The 800-character cap is the same in either language, and so is everything else in the schema.
How is image editing different from text-to-image?
Editing takes exactly one reference image and offers eight aspect ratios, adding 3:2, 2:3 and 21:9; its aspect_ratio defaults to 1:1 rather than following the reference, so set it to your source's shape. Text-to-image starts from a prompt alone and offers five ratios.
Can I pass more than one reference image?
Not on this family. image_urls takes exactly one image, and a second is rejected before the request leaves the platform. To take a subject from one photograph and a garment from another in a single call, use an editing endpoint that accepts several references, such as Qwen Image 3.0.
Can I get several images from one request?
No. Both endpoints return exactly one image; there is no num_outputs field. Repeat the call with a different seed when you want variation.
Can it render text inside the image?
Not reliably. Short strings sometimes land, but signage, mastheads and packaging copy are the Qwen Image 3.0 line's job, not this model's.
What are the limits of the Qwen Image 2 API?
Aspect ratios: 1:1 · 4:3 · 3:4 · 16:9 · 9:16 · 3:2 +2; Reference images: 1; Prompt length (characters): 800. Requests outside these limits are rejected before anything is charged.
Can I try Qwen Image 2 without writing code?
Yes. The Playground runs Qwen Image 2 on your PopNow credits, needs no API key, and shows the matching code for every run.
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 6 credits per image
- Qwen Image 2.1 Turbo APIFast 8-step renders, up to six per promptFrom 3 credits per image
- Qwen Image 2.1 APIOpen model with 2K output and transparent backgroundsFrom 4 credits per image
- Qwen Image 2.1 LoRA APIQwen Image 2.1 images and edits with up to three of your LoRAsFrom 5 credits per image
- Qwen Image 3.0 Pro APIFine typography plus lifelike skin, fabric and glassFrom 6 credits per image
- Qwen Image 3.0 APIReadable signs and headlines rendered into the imageFrom 5 credits per image
- Qwen Image 2 APISimple prompt-to-image and one-photo editsFrom 6 credits per image
- Qwen Image 2512 LoRA APIQwen Image 2512 renders and edits with your own LoRAsFrom 5 credits per image
- Qwen Image Edit 2509 LoRA APIMulti-photo Qwen edits that load your own LoRAsFrom 5 credits per image
- Qwen Image 1.0 LoRA APIOriginal Qwen-Image with clean lettering and your own LoRAsFrom 5 credits per image

