About Qwen Image 2.1 LoRA
Qwen Image 2.1 LoRA runs Alibaba’s Qwen Image 2.1 with your own LoRA files loaded on top: up to three per run, each with its own strength, for creating and editing. A character LoRA helps you carry a trained appearance across a set.
Call it with the model name alibaba/qwen-image-2.1-lora/edit on POST /jobs/createTask, from $0.042.
Introduction
Qwen Image 2.1 LoRA Editing applies your own LoRA weights while revising one to ten reference images. It is the same custom-weights setup as the text-to-image endpoint, pointed at work you already have rather than at a blank frame.
Choose a Qwen Image 2.1 LoRA mode by starting material
| Starting material | Mode |
|---|---|
| Source images plus your own weights | Qwen Image 2.1 LoRA Editing |
| A brief plus your own weights | Qwen Image 2.1 LoRA Text to Image |
| Editing without custom weights | Qwen Image 2.1 Image Editing |
Key features
Bring a character LoRA to work already in progress
A LoRA you can only start new work with is far less useful than one you can apply to an approved frame. This endpoint takes both: up to ten references and up to three weight files in the same request.
Weights and references solve different halves of consistency
References hold composition, setting and the specific frame; the LoRA holds identity across every frame. Using both is steadier than leaning hard on either.
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 |
image_urls | Yes | Photos to edit or combine. Say in the prompt what each one adds. |
loras | No | Add LoRA weights compatible with this model to guide its style or character. Default: [] |
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.042 |
| resolution 1.5K | $0.078 |
| resolution 2K | $0.15 |
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
Applying a character LoRA to shots you already approved
The expensive part of a shoot is rarely the generation — it is arriving at a frame everyone signed off on. This endpoint lets you keep that frame and change who is in it: send the approved composition as a reference, load the character LoRA, and let the weights carry the identity while lighting, staging and crop stay exactly where they were.
Bringing a back catalogue into the current house style
Point a style LoRA at work generated months ago.
Scene work built from a reference you control
Start from a figure you already generated and add the second subject, the wardrobe or the setting.
Wardrobe and location swaps with the person held fixed
Two references — one carrying the person, one carrying the garment or the room — plus a character LoRA, and a prompt that says which source is which. Change the room, keep the face; change the outfit, keep both.
Prompt guide & pro tips
Name what every reference contributes before you name the change
The model does not infer roles from order or from filename. Write it out: "the first image is the woman, the second is the room she is standing in, the third is the coat." Without that sentence a multi-reference request blends the sources instead of editing with them, and the result looks like an averaging artefact rather than a mistake you can debug.
Do not let the prompt and the LoRA describe the same thing
When a character LoRA is loaded, describe the scene, the action and the light — not the face. Restating features the weights already encode pulls the render in two directions and usually produces something that resembles neither. Let the LoRA own identity and let the prompt own everything around it.
Verify a new LoRA changes something before trusting a batch
Weights built for a different base architecture can load with no error and have almost no visible effect. Run one deliberately obvious prompt against new weights, confirm the output moved, then queue the batch.
API quick start
Call the Qwen Image 2.1 LoRA 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-lora/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-lora/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",
"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.
Qwen Image 2.1 LoRA API questions
How much does the Qwen Image 2.1 LoRA API cost?
Qwen Image 2.1 LoRA starts at $0.042 per image with Edit Image, its lowest-priced task. Prices by option: 1K $0.042 per image, 1.5K $0.078 per image, 2K $0.15 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 LoRA · 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 LoRA
- Endpoints
- Qwen Image 2.1 LoRA · Create Image