Wan 2.1 LoRA API-Referenz
Wan-2.1-Video und -Edits mit eigenen LoRAs, Kamerafahrten inklusive
Mit einem einzigen PopNow-API-Schlüssel rufst du Wan 2.1 LoRA aus deinem eigenen Code auf. Hier findest du die Modell-IDs, jedes Eingabefeld, die Kosten pro Anfrage in Credits und eine Anfrage, die du direkt ins Terminal kopieren kannst.
Die Parameterbeschreibungen stammen aus dem Eingabeschema des Modells und sind nur auf Englisch verfügbar.
Auf einen Blick
- Hersteller
- Alibaba
- Ergebnis
- Video
- Ab
- 36 Credits pro Anfrage ($0.36)
1 Credit = 0,01 $. Bei Annahme reserviert ein Task den höchstmöglichen Betrag und rechnet am Ende den tatsächlichen Verbrauch ab, auf ganze Credits aufgerundet; der Rest wird freigegeben. Fehlgeschlagene Tasks kosten nichts. Den genauen Betrag vorab liefert POST /api/v1/jobs/quote.
Video erstellen
alibaba/wan-2.1-lora/text-to-video
Preis
| Option | Credits (pro Anfrage) | US-Dollar |
|---|---|---|
duration_seconds = 5, resolution = 480p | 36 | $0.36 |
duration_seconds = 10, resolution = 480p | 54 | $0.54 |
duration_seconds = 5, resolution = 720p | 54 | $0.54 |
duration_seconds = 10, resolution = 720p | 81 | $0.81 |
Parameter
| Feld | Typ | Standardwert | Erlaubt | Bedeutung |
|---|---|---|---|---|
promptPflicht | string | — | — | Describe the scene, the action and the camera. If a LoRA has trigger words, put them first. |
negative_promptOptional | string | — | — | What must stay out of the clip. |
aspect_ratioOptional | string | 16:9 | 16:9, 9:16 | Output aspect ratio. |
resolutionOptional | string | 480p | 480p, 720p | Output resolution. |
duration_secondsOptional | integer | 5 | 5, 10 | Clip length: 5 or 10 seconds. |
lorasOptional | array<object> | [] | bis zu 3 Einträge | Up to three LoRA weight files trained for Wan 2.1 14B, each with its own strength. |
guidance_scaleOptional | number | 5 | 0 bis 20 | How closely the clip follows the prompt, from 0 to 20. |
flow_shiftOptional | number | — | 1 bis 10 | Flow-matching timestep shift, from 1 to 10. Leave it out for the default (3 at 480p, 5 at 720p). |
stepsOptional | integer | 30 | 1 bis 40 | Denoising steps, from 1 to 40. Fewer steps return faster and softer. |
seedOptional | integer | — | 0 bis 2147483647 | Random seed for controlled comparisons, not a frame-identical guarantee. |
Beispielanfrage
Diese Anfrage läuft so, wie sie ist; weggelassene Felder behalten ihren Standardwert. Leg deinen Schlüssel vorher in POPNOW_API_KEY ab.
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: $(uuidgen)" \
-d '{
"model": "alibaba/wan-2.1-lora/text-to-video",
"input": {
"prompt": "A paper boat drifts down a rain-soaked street at dusk, neon signs reflecting in the water, slow tracking shot at ground level",
"duration_seconds": 5,
"resolution": "480p"
}
}'Die Antwort enthält sofort eine taskId. Das Ergebnis holst du mit GET /api/v1/jobs/recordInfo ab – oder du gibst callBackUrl mit und wirst benachrichtigt.
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
-H "Authorization: Bearer $POPNOW_API_KEY"Bild zu Video
alibaba/wan-2.1-lora/image-to-video
Preis
| Option | Credits (pro Anfrage) | US-Dollar |
|---|---|---|
duration_seconds = 5, resolution = 480p | 36 | $0.36 |
duration_seconds = 10, resolution = 480p | 54 | $0.54 |
duration_seconds = 5, resolution = 720p | 54 | $0.54 |
duration_seconds = 10, resolution = 720p | 81 | $0.81 |
Parameter
| Feld | Typ | Standardwert | Erlaubt | Bedeutung |
|---|---|---|---|---|
promptPflicht | string | — | — | Describe what happens after the opening frame and how the camera moves. |
image_urlPflicht | string (uri) | — | — | Opening frame. The clip keeps its aspect ratio. |
negative_promptOptional | string | — | — | What must stay out of the clip. |
resolutionOptional | string | 480p | 480p, 720p | Output resolution. |
duration_secondsOptional | integer | 5 | 5, 10 | Clip length: 5 or 10 seconds. |
lorasOptional | array<object> | [] | bis zu 3 Einträge | Up to three LoRA weight files trained for Wan 2.1 14B, each with its own strength. |
guidance_scaleOptional | number | 5 | 0 bis 20 | How closely the clip follows the prompt, from 0 to 20. |
flow_shiftOptional | number | — | 1 bis 10 | Flow-matching timestep shift, from 1 to 10. Leave it out for the default (3 at 480p, 5 at 720p). |
stepsOptional | integer | 30 | 1 bis 40 | Denoising steps, from 1 to 40. Fewer steps return faster and softer. |
seedOptional | integer | — | 0 bis 2147483647 | Random seed for controlled comparisons, not a frame-identical guarantee. |
Beispielanfrage
Diese Anfrage läuft so, wie sie ist; weggelassene Felder behalten ihren Standardwert. Leg deinen Schlüssel vorher in POPNOW_API_KEY ab.
Das Beispiel nutzt in image_url Beispieldateien von PopNow. Ersetze sie durch eigene öffentliche HTTPS-Links, Uploads oder gespeicherte Assets.
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: $(uuidgen)" \
-d '{
"model": "alibaba/wan-2.1-lora/image-to-video",
"input": {
"prompt": "He lands softly on the rooftop, laughs and turns toward the camera while the balloons sway in the evening breeze; slow push-in",
"image_url": "https://media.popnow.ai/influencer/examples/marco.webp",
"duration_seconds": 5,
"resolution": "480p"
}
}'Die Antwort enthält sofort eine taskId. Das Ergebnis holst du mit GET /api/v1/jobs/recordInfo ab – oder du gibst callBackUrl mit und wirst benachrichtigt.
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
-H "Authorization: Bearer $POPNOW_API_KEY"Video bearbeiten
alibaba/wan-2.1-lora/video-edit
Preis
| Option | Credits (pro Anfrage) | US-Dollar |
|---|---|---|
duration_seconds = 5, resolution = 480p | 36 | $0.36 |
duration_seconds = 10, resolution = 480p | 54 | $0.54 |
duration_seconds = 5, resolution = 720p | 54 | $0.54 |
duration_seconds = 10, resolution = 720p | 81 | $0.81 |
Parameter
| Feld | Typ | Standardwert | Erlaubt | Bedeutung |
|---|---|---|---|---|
promptPflicht | string | — | — | Describe how the whole clip should look after the restyle: subject, wardrobe, setting, style. |
video_urlPflicht | string (uri) | — | — | Source clip. Its motion and timing carry over to the result. |
negative_promptOptional | string | — | — | What must stay out of the clip. |
resolutionOptional | string | 480p | 480p, 720p | Output resolution. |
strengthOptional | number | 0.9 | 0.1 bis 1 | How far to move away from the source, from 0.1 to 1. |
duration_secondsOptional | integer | 5 | 5, 10 | Clip length: 5 or 10 seconds. |
lorasOptional | array<object> | [] | bis zu 3 Einträge | Up to three LoRA weight files trained for Wan 2.1 14B, each with its own strength. |
guidance_scaleOptional | number | 5 | 0 bis 20 | How closely the clip follows the prompt, from 0 to 20. |
flow_shiftOptional | number | — | 1 bis 10 | Flow-matching timestep shift, from 1 to 10. Leave it out for the default (3 at 480p, 5 at 720p). |
stepsOptional | integer | 30 | 1 bis 40 | Denoising steps, from 1 to 40. Fewer steps return faster and softer. |
seedOptional | integer | — | 0 bis 2147483647 | Random seed for controlled comparisons, not a frame-identical guarantee. |
Beispielanfrage
Diese Anfrage läuft so, wie sie ist; weggelassene Felder behalten ihren Standardwert. Leg deinen Schlüssel vorher in POPNOW_API_KEY ab.
Das Beispiel nutzt in video_url Beispieldateien von PopNow. Ersetze sie durch eigene öffentliche HTTPS-Links, Uploads oder gespeicherte Assets.
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: $(uuidgen)" \
-d '{
"model": "alibaba/wan-2.1-lora/video-edit",
"input": {
"prompt": "Recolor the flowers in soft pastel blue; keep the face and the motion unchanged",
"video_url": "https://media.popnow.ai/effects/flower-bloom-1abd6efb.mp4",
"duration_seconds": 5,
"resolution": "480p"
}
}'Die Antwort enthält sofort eine taskId. Das Ergebnis holst du mit GET /api/v1/jobs/recordInfo ab – oder du gibst callBackUrl mit und wirst benachrichtigt.
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
-H "Authorization: Bearer $POPNOW_API_KEY"
