About Wan 2.1 Image LoRA
Wan 2.1 Image LoRA edit takes image_url, a prompt, optional loras and strength.
Call it with the model name alibaba/wan-2.1-image-lora/edit on POST /jobs/createTask, from $0.03.
Introduction
Wan 2.1 Image LoRA Image editing redraws your image from a prompt with up to three of your Wan LoRA files loaded on Alibaba's open 14B video model.
Choose a mode by starting material
| What you have | Mode |
|---|---|
| a written description | Wan 2.1 Image LoRA Text to image |
| an image to change | Wan 2.1 Image LoRA Image editing |
| a scene that should move | Wan 2.1 LoRA Text to video |
Key features
One strength control
From a light touch-up to a full redraw: around 0.5 the source mostly stays, around 0.75 to 0.8 the outfit, the light and the setting follow the prompt. In our example a woman in a hoodie on a canal bridge became a masquerade guest at dusk.
Your LoRAs on your image
Wan 2.1 LoRAs apply to the redraw, with the same three-entry limit as text-to-image.
Request parameters
| Parameter | Required | Description |
|---|---|---|
image_url | Yes | The picture to start from. |
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 · Default: 1k |
seed | No | Use the same seed and settings for more controlled comparisons. ≥ 0 · ≤ 2147483647 |
strength | No | How far the result may move away from your input. ≥ 0 · ≤ 1 · Default: 0.6 |
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.03 |
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
Day to night, street to costume
Keep the place and the pose from an ordinary photo and change the hour, the wardrobe and the props: a daylight street shot becomes a lantern-lit carnival evening without restaging anything.
Variations of a frame
Make several alternatives of an opening frame at different strengths and seeds, then animate the one you like with Wan 2.1 LoRA image-to-video.
Prompt guide & pro tips
Describe the result
Write the whole image as it should look, not only the change: the model redraws from your description and keeps the layout, the pose and the colours of the source. A prompt that only says "add a mask" leaves too much to guesswork.
Strength 0.75 for real changes
Below about 0.6 the source mostly stays. At 0.7 style prompts and style LoRAs did not override the source's colours in our tests; go to 0.75 or 0.8 for a stronger change and to 0.9 for a near-complete redraw.
Expect new faces
At strengths that change the scene, faces change too. This is a redraw, not identity-preserving editing, so keep the strength low when the person must stay recognisable.
API quick start
Call the Wan 2.1 Image 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/wan-2.1-image-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/wan-2.1-image-lora/edit",
"input": {
"prompt": "A ceramic teapot on a linen cloth, soft window light, muted palette",
"image_url": "https://media.popnow.ai/influencer/examples/marco.webp",
"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.
About the Wan 2.1 Image LoRA Edit Image endpoint
It redraws rather than following instructions: about 0.5 keeps the source, about 0.75 changes the hour, wardrobe or setting while keeping pose and layout.
The output keeps the source's shape.
Faces change at strengths high enough to change the scene, so describe the person when identity matters.
1k and 1.5k cost the same.
Wan 2.1 Image LoRA API questions
How much does the Wan 2.1 Image LoRA API cost?
Wan 2.1 Image LoRA starts at $0.03 per image with Edit 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 are the limits of the Wan 2.1 Image LoRA · Edit Image API?
Resolutions: 1K · 1.5K; Prompt length (characters): 5,000; Largest upload: 10 MB. Requests outside these limits are rejected before anything is charged.
More about Wan 2.1 Image LoRA
- Endpoints
- Wan 2.1 Image LoRA · Create Image