About Wan 2.1 LoRA
The Wan 2.1 LoRA API exposes more sampler control than most endpoints: steps, guidance_scale and flow_shift alongside a loras array, on text, image and video to video. Billing is per clip by resolution, which keeps restyle jobs predictable. It suits creator tools that want LoRA-based restyling of user footage.
Call it with the model name alibaba/wan-2.1-lora/text-to-video on POST /jobs/createTask, from $0.24.
Introduction
Wan 2.1 LoRA Text to video generates a silent clip from a prompt with up to three of your 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 LoRA Text to video |
| a photo to animate | Wan 2.1 LoRA Image to video |
| a clip to restyle | Wan 2.1 LoRA Video to video |
| a still image instead of a clip | Wan 2.1 Image LoRA Text to image |
Key features
A deep community LoRA library
Load up to three by direct link, each with its own strength from 0 to 4.
Wan 2.2 LoRAs carry over
In our test a single-file Wan 2.2 style LoRA turned the clip into a sepia old-film look on this model, so a good part of the newer Wan 2.2 library is usable here as well. A LoRA for an unrelated model, such as an image model, fails the request instead.
Tuning left open
Steps, guidance, flow shift and a negative prompt are all yours to set, which matters for LoRAs whose authors publish recommended settings. The defaults (30 steps, guidance 5) gave clean frames in our runs.
Request parameters
| Parameter | Required | Description |
|---|---|---|
aspect_ratio | No | The shape of the frame: wide, square or tall. 16:9 · 9:16 · Default: 16:9 |
duration_seconds | No | Length of the generated clip. 5 · 10 · Default: 5 |
flow_shift | No | An advanced flow-matching parameter. Leave it unset to use the model's default. ≥ 1 · ≤ 10 |
guidance_scale | No | How strictly the model follows the prompt. ≥ 0 · ≤ 20 · Default: 5 |
loras | No | Add LoRA weights compatible with this model to guide its style or character. Default: [] |
negative_prompt | No | Things you don't want to see. |
prompt | Yes | Describe what you want to make. |
resolution | No | Choose an available output size. 480p · 720p · Default: 480p |
seed | No | Use the same seed and settings for more controlled comparisons. ≥ 0 · ≤ 2147483647 |
steps | No | Set the number of sampling steps the model runs. ≥ 1 · ≤ 40 · Default: 30 |
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 run |
|---|---|
| duration_seconds 5 · resolution 480p | $0.24 |
| duration_seconds 10 · resolution 480p | $0.36 |
| duration_seconds 5 · resolution 720p | $0.36 |
| duration_seconds 10 · resolution 720p | $0.54 |
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 series
Train or download a character LoRA once and load it on every request: the same face and outfit carry across scenes, which a prompt alone cannot guarantee from clip to clip.
Styled shorts
A style LoRA gives every clip in a set the same look, from cel animation to vintage film, so a series reads as one piece even when the prompts change.
Prompt guide & pro tips
Trigger words first
Most Wan LoRAs were trained with a trigger phrase, listed on the LoRA page. Put it at the very start of the prompt, then describe the subject, the action and the camera in plain sentences.
Start at scale 1
In our tests 0.5 already moved the result and 1 moved it further. Raise the scale only if the LoRA still looks faint, and lower it if the set and the characters change more than you want.
Use direct, public links
Use a public link that downloads the .safetensors file itself, such as a Hugging Face "resolve/main" link.
API quick start
Call the Wan 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/wan-2.1-lora/text-to-video 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-lora/text-to-video",
"input": {
"prompt": "A slow aerial shot drifting over a misty pine forest at sunrise",
"aspect_ratio": "16:9",
"resolution": "480p",
"duration_seconds": 5
}
}'
# 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.
What to build with the Wan 2.1 LoRA API
- Footage restyling: live action to animation via video-edit and a style LoRA.
- Camera-move presets on photos using orbit and dolly LoRAs.
- Seeded LoRA comparisons for training pipelines.
Wan 2.1 LoRA parameter notes
- loras takes up to three entries; Wan 2.1 14B LoRAs, many Wan 2.2 style LoRAs also load.
- steps, guidance_scale and flow_shift tune sampling; defaults are sensible.
- video-edit takes strength (0.1 to 1) for how far the restyle departs from the source.
- Output is silent, 5 or 10 seconds, 480p or 720p.
How Wan 2.1 LoRA API pricing adds up
Billed per clip by resolution on all three endpoints, with 720p at one and a half times 480p. On video to video, choosing 10 seconds bills the 10 second rate even if the source is shorter.
- duration_seconds 5 · resolution 480p: $0.24 per run, $24.00 for 100 runs
- duration_seconds 10 · resolution 720p: $0.54 per run, $54.00 for 100 runs
Async jobs, webhooks and rate limits
Every Wan 2.1 LoRA request is asynchronous: createTask returns a taskId straight away, and the result arrives when the job finishes. Poll GET /jobs/recordInfo every few seconds, or pass a public https callBackUrl and verify the X-Webhook-Signature header (HMAC-SHA256 over taskId, timestamp and the body hash) before trusting the payload. Each account gets 1,000 write requests per 10 seconds; a 429 carries Retry-After. Send an Idempotency-Key with createTask so a retried request for alibaba/wan-2.1-lora/text-to-video never runs or bills twice.
Common Wan 2.1 LoRA API errors
| errorCode | What it usually means and how to fix it |
|---|---|
invalid_request | A duration other than 5 or 10, or strength outside 0.1 to 1. |
invalid_asset | A LoRA URL that is not a direct file link, or an unreachable source video. |
generation_failed | Extreme steps or flow_shift values can fail; return to defaults. |
Examples
Wan 2.1 LoRA API questions
How much does the Wan 2.1 LoRA API cost?
Wan 2.1 LoRA starts at $0.24 per run with Create Video, its lowest-priced task. Prices by option: 5 · 480p $0.24 per run, 10 · 480p $0.36 per run, 5 · 720p $0.36 per run, 10 · 720p $0.54 per run. 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 is the model name for Wan 2.1 LoRA in the API?
Put alibaba/wan-2.1-lora/text-to-video for Create Video; alibaba/wan-2.1-lora/image-to-video for Image to Video; alibaba/wan-2.1-lora/video-edit for Edit Video in the model field of POST /jobs/createTask.
What does strength do on Wan 2.1 LoRA video edit?
It sets how far the result departs from the source video: low keeps it close, high restyles more.
Is Wan 2.1 LoRA billed per second?
No, per clip by resolution.
Do Wan 2.2 LoRAs work on Wan 2.1 LoRA?
Many style LoRAs do; motion LoRAs built for Wan 2.2's expert passes may not.
What are the limits of the Wan 2.1 LoRA API?
Clip length: 5–10 s; Resolutions: 480p · 720p; Aspect ratios: 16:9 · 9:16. Requests outside these limits are rejected before anything is charged.
Can I try Wan 2.1 LoRA without writing code?
Run Wan 2.1 LoRA in the Playground without an API key, using the same PopNow balance as the website, shown in USD. Each run appears in your developer history with its matching code.
All Wan models
Wan 2.2 LoRA runs the newer model with separate motion and detail slots.
- Wan 3.0 APIUp to 30-second clips with synced audioFrom $0.215 for a 5-second clip
- Wan 3.0 Prime APIQuicker Wan 3.0 renders, up to 30 seconds with audioFrom $0.29 for a 5-second clip
- Wan 3.0 Pro Prime APIQuicker Wan 3.0 Pro with 2K and 4K outputFrom $1.17 for a 5-second clip
- Wan 3.0 Pro APIWan 3.0 at 1080p, 2K or 4K, up to 30 secondsFrom $0.72 for a 5-second clip
- Wan 2.7 Pro APILarge 4K canvases and nine-image compositesFrom $0.075 per image
- Wan 2.7 APIThinks through the composition, then draws up to four imagesFrom $0.03 per image
- Wan 2.6 Flash APIQuick multi-shot clips from a single imageFrom $0.1125 for a 5-second clip
- Wan 2.6 APIMulti-shot sequences with sound at up to 1080pFrom $0.325 for a 5-second clip
- Wan 2.5 API1080p clips with sound that can follow your own audioFrom $0.225 for a 5-second clip
- Wan 2.2 Animate APIDrive a character photo with a reference videoFrom $0.053 per second
- Wan 2.2 LoRA APIWan 2.2 video with your LoRAs on either expert passFrom $0.12 for a 5-second clip
- Wan 2.2 APISimple five-second clips at 480p or 720pFrom $0.24 per run
- Wan 2.2 5B LoRA APILight 720p Wan 2.2 clips that load your own LoRAsFrom $0.12 per run
- Wan 2.2 Image LoRA APIWan 2.2 stills with up to nine LoRAs across three slotsFrom $0.03 per image
- Wan 2.1 LoRA APIWan 2.1 video and edits with your own LoRAs, camera moves includedFrom $0.24 per run
- Wan 2.1 Image LoRA APIPhotoreal Wan 2.1 stills and restyles with your LoRAsFrom $0.03 per image