Wan 2.2 LoRA API-Referenz
Wan-2.2-Video mit deinen LoRAs in jedem Experten-Durchgang
Mit einem einzigen PopNow-API-Schlüssel rufst du Wan 2.2 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
- 3.6 Credits pro Sekunde Ergebnis ($0.036)
- Typische Dauer
- etwa 54 s
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.2-lora/text-to-video
Preis
| Option | Credits (pro Sekunde Ergebnis) | US-Dollar |
|---|---|---|
480p | 7.2 | $0.072 |
720p | 12.6 | $0.126 |
Parameter
| Feld | Typ | Standardwert | Erlaubt | Bedeutung |
|---|---|---|---|---|
promptPflicht | string | — | — | Describe the scene, the action and the camera move. |
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 video resolution. |
duration_secondsOptional | integer | 5 | 5, 8 | Output video duration in seconds. |
lorasOptional | array<object> | [] | bis zu 3 Einträge | LoRA weights applied to both noise experts. |
high_noise_lorasOptional | array<object> | [] | bis zu 3 Einträge | LoRA weights applied to the high-noise expert. |
low_noise_lorasOptional | array<object> | [] | bis zu 3 Einträge | LoRA weights applied to the low-noise expert. |
seedOptional | integer | — | 0 bis 2147483647 | Random seed; the same seed and inputs repeat the clip. |
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.2-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.2-lora/image-to-video
Preis
| Option | Credits (pro Sekunde Ergebnis) | US-Dollar |
|---|---|---|
480p | 3.6 | $0.036 |
720p | 7.2 | $0.072 |
Parameter
| Feld | Typ | Standardwert | Erlaubt | Bedeutung |
|---|---|---|---|---|
promptPflicht | string | — | — | Describe the motion to generate. |
image_urlPflicht | string (uri) | — | — | Opening-frame image. |
resolutionOptional | string | 480p | 480p, 720p | Output video resolution. |
duration_secondsOptional | integer | 5 | 5, 8 | Output video duration in seconds. |
lorasOptional | array<object> | [] | bis zu 3 Einträge | LoRA weights applied to both noise experts. |
high_noise_lorasOptional | array<object> | [] | bis zu 3 Einträge | LoRA weights applied to the high-noise expert. |
low_noise_lorasOptional | array<object> | [] | bis zu 3 Einträge | LoRA weights applied to the low-noise expert. |
seedOptional | integer | — | 0 bis 2147483647 | Random seed; zero requests a random seed. |
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.2-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 verlängern
alibaba/wan-2.2-lora/video-extend
Preis
| Option | Credits (pro Sekunde Ergebnis) | US-Dollar |
|---|---|---|
480p | 3.6 | $0.036 |
720p | 7.2 | $0.072 |
Parameter
| Feld | Typ | Standardwert | Erlaubt | Bedeutung |
|---|---|---|---|---|
promptPflicht | string | — | — | Describe what happens next: the action that follows and the camera move. |
video_urlPflicht | string (uri) | — | — | The clip to continue: MP4, MOV or WebM, up to 60 seconds. Its last frame opens the new segment, and the result is your clip with the new segment joined on. |
resolutionOptional | string | 480p | 480p, 720p | Resolution the new segment is generated at. Match your source to avoid a visible step in sharpness at the seam. |
duration_secondsOptional | integer | 5 | 5, 8 | Length of the new segment in seconds: 5 or 8. The source clip is added on top and is not billed. |
lorasOptional | array<object> | [] | bis zu 3 Einträge | LoRA weights applied to both noise experts of the new segment. Reuse the LoRAs from the clip you are continuing to keep its look. |
high_noise_lorasOptional | array<object> | [] | bis zu 3 Einträge | LoRA weights applied to the high-noise expert. |
low_noise_lorasOptional | array<object> | [] | bis zu 3 Einträge | LoRA weights applied to the low-noise expert. |
seedOptional | integer | — | 0 bis 2147483647 | Random seed; zero requests a random seed. |
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.2-lora/video-extend",
"input": {
"prompt": "The flowers keep opening while the camera slowly pulls back to reveal a sunlit meadow",
"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"
