About Qwen Image 2.1
Qwen Image 2.1 edit takes a prompt and up to ten image_urls, typically in about 44 seconds.
Call it with the model name alibaba/qwen-image-2.1/edit on POST /jobs/createTask, from $0.036.
Introduction
Qwen Image 2.1 Image Editing revises one to ten source images against a written instruction and returns a single new frame. Alibaba's Qwen team open-weighted the model on 21 September 2026; this endpoint went live here the same day.
Choose a Qwen Image 2.1 mode by starting material
| Starting material | Mode |
|---|---|
| One to ten source images to work from | Qwen Image 2.1 Image Editing |
| A written brief and nothing else | Qwen Image 2.1 Text to Image |
| Sources plus your own LoRA weights | Qwen Image 2.1 LoRA Editing |
Key features
Ten references in a single request
Most editing endpoints take one source, or three. This one reads up to ten, which is what makes a consistent series practical: hold the frame that established the character, add the reference carrying the outfit, add the one carrying the location, and change a single variable per run.
Request parameters
| Parameter | Required | Description |
|---|---|---|
aspect_ratio | No | The 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 |
background | No | Keep, remove or replace the background. opaque · transparent · Default: opaque |
enable_prompt_expansion | No | Lets the model add detail to a short prompt. Default: true |
image_urls | Yes | Photos to edit or combine. Say in the prompt what each one adds. |
mask_url | No | Paint over the area that should change. |
output_format | No | File type of the result. jpeg · png · webp · Default: jpeg |
prompt | Yes | Describe what you want to make. |
resolution | No | Choose an available output size. 1k · 1.5k · 2k · Default: 1k |
seed | No | Use the same seed and settings for more controlled comparisons. ≥ 0 · ≤ 2147483647 |
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 |
|---|---|
| resolution 1K | $0.036 |
| resolution 2K | $0.048 |
| resolution 1.5K | $0.072 |
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
Character consistency across a set
Keep one approved frame as the identity reference and re-run it with a new instruction per image. Far steadier than hoping a seed reproduces a face.
Scene composition from an existing figure
Start from a figure you already have and add the second subject, the props or the setting. Instructions are carried out as written.
Wardrobe and setting swaps
Two references — one for the person, one for the garment or the room — and a prompt that says which is which.
Upscaling a keeper in context
Re-run a 1k frame as a 2k edit with an instruction that preserves the composition, when you want the detail without re-rolling the whole scene.
Prompt guide & pro tips
Name what every reference contributes
The model does not infer roles. "The first image is the woman, the second is the room she is standing in" is the difference between an edit and a blend.
Say what must not change
There is no negative prompt here, so put preservation instructions in the main prompt. State which parts of the source must stay unchanged, such as the face, wardrobe and composition.
Send fewer, better references
Identity holds well from one clean source and drifts as sources stack.
Check the quote, not just the tier
The pre-submit estimate is authoritative — read it before you send a ten-source request.
API quick start
Call the Qwen Image 2.1 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.1/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.1/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",
"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.
About the Qwen Image 2.1 Edit Image endpoint
For local changes, send exactly one image with mask_url; the output stays at that image's framing and only the masked area changes.
For composites, give each reference a role in the prompt, such as the woman from Image 1 in the gown from Image 2.
Each reference adds to the price, so keep reference sets small for bulk jobs.
background transparent makes the edit return an alpha cut-out.
Qwen Image 2.1 API questions
How much does the Qwen Image 2.1 API cost?
Qwen Image 2.1 starts at $0.036 per image with Edit Image, its lowest-priced task. Prices by option: 1K $0.036 per image, 2K $0.048 per image, 1.5K $0.072 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 are the limits of the Qwen Image 2.1 · Edit Image API?
Resolutions: 1K · 1.5K · 2K; Aspect ratios: 1:1 · 16:9 · 9:16 · 4:3 · 3:4 · 3:2 +9; Reference images: 10; Prompt length (characters): 5,000; Largest upload: 10 MB. Requests outside these limits are rejected before anything is charged.
More about Qwen Image 2.1
- Endpoints
- Qwen Image 2.1 · Create Image