Riferimento API di Wan 2.1 LoRA
Video e modifiche Wan 2.1 con le tue LoRA, movimenti di camera inclusi
Con una sola chiave API di PopNow chiami Wan 2.1 LoRA dal tuo codice. Qui trovi gli ID del modello da inviare, ogni campo di input accettato, quanti crediti costa ogni richiesta e una richiesta da incollare nel terminale così com’è.
Le descrizioni dei parametri provengono dallo schema di input del modello e sono disponibili solo in inglese.
In sintesi
- Sviluppato da
- Alibaba
- Risultato
- Video
- Da
- 36 crediti per richiesta ($0.36)
1 credito = 0,01 $. All’accettazione l’attività trattiene l’importo massimo possibile e alla fine addebita il consumo reale, arrotondato al credito superiore; il resto viene sbloccato. Le attività non riuscite non vengono addebitate. Per conoscere la cifra esatta prima di eseguire, chiama POST /api/v1/jobs/quote.
Crea video
alibaba/wan-2.1-lora/text-to-video
Prezzo
| Opzione | Crediti (per richiesta) | Dollari USA |
|---|---|---|
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 |
Parametri
| Campo | Tipo | Predefinito | Valori ammessi | A cosa serve |
|---|---|---|---|---|
promptObbligatorio | string | — | — | Describe the scene, the action and the camera. If a LoRA has trigger words, put them first. |
negative_promptFacoltativo | string | — | — | What must stay out of the clip. |
aspect_ratioFacoltativo | string | 16:9 | 16:9, 9:16 | Output aspect ratio. |
resolutionFacoltativo | string | 480p | 480p, 720p | Output resolution. |
duration_secondsFacoltativo | integer | 5 | 5, 10 | Clip length: 5 or 10 seconds. |
lorasFacoltativo | array<object> | [] | fino a 3 elementi | Up to three LoRA weight files trained for Wan 2.1 14B, each with its own strength. |
guidance_scaleFacoltativo | number | 5 | da 0 a 20 | How closely the clip follows the prompt, from 0 to 20. |
flow_shiftFacoltativo | number | — | da 1 a 10 | Flow-matching timestep shift, from 1 to 10. Leave it out for the default (3 at 480p, 5 at 720p). |
stepsFacoltativo | integer | 30 | da 1 a 40 | Denoising steps, from 1 to 40. Fewer steps return faster and softer. |
seedFacoltativo | integer | — | da 0 a 2147483647 | Random seed for controlled comparisons, not a frame-identical guarantee. |
Richiesta di esempio
Questa richiesta funziona così com’è; i campi omessi usano il valore predefinito. Prima salva la tua chiave in POPNOW_API_KEY.
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"
}
}'La risposta contiene subito un taskId. Recupera il risultato con GET /api/v1/jobs/recordInfo, oppure aggiungi callBackUrl per ricevere una notifica.
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
-H "Authorization: Bearer $POPNOW_API_KEY"Da immagine a video
alibaba/wan-2.1-lora/image-to-video
Prezzo
| Opzione | Crediti (per richiesta) | Dollari USA |
|---|---|---|
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 |
Parametri
| Campo | Tipo | Predefinito | Valori ammessi | A cosa serve |
|---|---|---|---|---|
promptObbligatorio | string | — | — | Describe what happens after the opening frame and how the camera moves. |
image_urlObbligatorio | string (uri) | — | — | Opening frame. The clip keeps its aspect ratio. |
negative_promptFacoltativo | string | — | — | What must stay out of the clip. |
resolutionFacoltativo | string | 480p | 480p, 720p | Output resolution. |
duration_secondsFacoltativo | integer | 5 | 5, 10 | Clip length: 5 or 10 seconds. |
lorasFacoltativo | array<object> | [] | fino a 3 elementi | Up to three LoRA weight files trained for Wan 2.1 14B, each with its own strength. |
guidance_scaleFacoltativo | number | 5 | da 0 a 20 | How closely the clip follows the prompt, from 0 to 20. |
flow_shiftFacoltativo | number | — | da 1 a 10 | Flow-matching timestep shift, from 1 to 10. Leave it out for the default (3 at 480p, 5 at 720p). |
stepsFacoltativo | integer | 30 | da 1 a 40 | Denoising steps, from 1 to 40. Fewer steps return faster and softer. |
seedFacoltativo | integer | — | da 0 a 2147483647 | Random seed for controlled comparisons, not a frame-identical guarantee. |
Richiesta di esempio
Questa richiesta funziona così com’è; i campi omessi usano il valore predefinito. Prima salva la tua chiave in POPNOW_API_KEY.
L’esempio usa file di prova di PopNow in image_url. Sostituiscili con i tuoi link HTTPS pubblici, file caricati o asset salvati.
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"
}
}'La risposta contiene subito un taskId. Recupera il risultato con GET /api/v1/jobs/recordInfo, oppure aggiungi callBackUrl per ricevere una notifica.
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
-H "Authorization: Bearer $POPNOW_API_KEY"Modifica video
alibaba/wan-2.1-lora/video-edit
Prezzo
| Opzione | Crediti (per richiesta) | Dollari USA |
|---|---|---|
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 |
Parametri
| Campo | Tipo | Predefinito | Valori ammessi | A cosa serve |
|---|---|---|---|---|
promptObbligatorio | string | — | — | Describe how the whole clip should look after the restyle: subject, wardrobe, setting, style. |
video_urlObbligatorio | string (uri) | — | — | Source clip. Its motion and timing carry over to the result. |
negative_promptFacoltativo | string | — | — | What must stay out of the clip. |
resolutionFacoltativo | string | 480p | 480p, 720p | Output resolution. |
strengthFacoltativo | number | 0.9 | da 0.1 a 1 | How far to move away from the source, from 0.1 to 1. |
duration_secondsFacoltativo | integer | 5 | 5, 10 | Clip length: 5 or 10 seconds. |
lorasFacoltativo | array<object> | [] | fino a 3 elementi | Up to three LoRA weight files trained for Wan 2.1 14B, each with its own strength. |
guidance_scaleFacoltativo | number | 5 | da 0 a 20 | How closely the clip follows the prompt, from 0 to 20. |
flow_shiftFacoltativo | number | — | da 1 a 10 | Flow-matching timestep shift, from 1 to 10. Leave it out for the default (3 at 480p, 5 at 720p). |
stepsFacoltativo | integer | 30 | da 1 a 40 | Denoising steps, from 1 to 40. Fewer steps return faster and softer. |
seedFacoltativo | integer | — | da 0 a 2147483647 | Random seed for controlled comparisons, not a frame-identical guarantee. |
Richiesta di esempio
Questa richiesta funziona così com’è; i campi omessi usano il valore predefinito. Prima salva la tua chiave in POPNOW_API_KEY.
L’esempio usa file di prova di PopNow in video_url. Sostituiscili con i tuoi link HTTPS pubblici, file caricati o asset salvati.
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"
}
}'La risposta contiene subito un taskId. Recupera il risultato con GET /api/v1/jobs/recordInfo, oppure aggiungi callBackUrl per ricevere una notifica.
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
-H "Authorization: Bearer $POPNOW_API_KEY"
