Get API key

by Alibaba

Photoreal Wan 2.1 stills and restyles with your LoRAs

alibaba/wan-2.1-image-lora/editFrom 5 creditsper image · $0.05
  • Up to 1.5K
  • 9 aspect ratios
  • Loads your own LoRA
  • Create Image
  • Edit Image

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 5 credits per image ($0.05). New accounts get 30 free credits to try it in the Playground first.

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 haveMode
a written descriptionWan 2.1 Image LoRA Text to image
an image to changeWan 2.1 Image LoRA Image editing
a scene that should moveWan 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

ParameterRequiredDescription
image_urlYesThe picture to start from.
lorasNoLoad your own LoRA files to lock in a style or character. Default: []
output_formatNoFile type of the result. jpeg · png · webp · Default: jpeg
promptYesDescribe the image you want back, not just the change.
resolutionNoOutput size. Bigger sizes look sharper and cost more. 1k · 1.5k · Default: 1k
seedNoReuse the same number to get a repeatable result. ≥ 0 · ≤ 2147483647
strengthNoHow far the result may move away from your input. ≥ 0 · ≤ 1 · Default: 0.6

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.

OptionCredits per image≈ USD
Standard4.5$0.045

Each task is rounded up to whole credits, so one run at the lowest tier costs 5 credits per image ($0.05).

For an exact number before you run, send the same body to POST /jobs/quote.

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

  1. 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.
  2. 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.
  3. 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 5 credits ($0.05) 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 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