Riferimento API di Wan 2.2 Animate
Muovi la foto di un personaggio con un video di riferimento
Con una sola chiave API di PopNow chiami Wan 2.2 Animate 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
- 7.95 crediti per secondo generato ($0.0795)
- Tempo tipico
- circa 345 s
- ID del modello
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.
Controllo del movimento
alibaba/wan-2.2-animate/character-animation
Prezzo
| Opzione | Crediti (per secondo generato) | Dollari USA |
|---|---|---|
480p | 7.95 | $0.0795 |
720p | 16.5 | $0.165 |
Parametri
| Campo | Tipo | Predefinito | Valori ammessi | A cosa serve |
|---|---|---|---|---|
image_urlObbligatorio | string | — | — | Character image. The person in this image is the one that gets animated. |
video_urlObbligatorio | string | — | — | Driving video, 2 to 30 seconds long; upload an MP4, or pass an MP4 or MOV URL. Its motion is transferred to the character and its length sets the output length. Videos outside that range are rejected before any charge. |
animation_modeFacoltativo | string | animate | animate, replace | animate drives the character in the image with the motion of the driving video; replace swaps the person in the driving video for the one in the image. |
resolutionFacoltativo | string | 720p | 480p, 720p | Output video resolution. |
promptFacoltativo | string | — | fino a 2000 caratteri | Optional description of the motion, used to guide animation style and content. |
seedFacoltativo | integer | — | da 0 a 2147483647 | Random seed; zero requests a random seed. |
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, 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.2-animate/character-animation",
"input": {
"prompt": "The person dances with relaxed, natural movement",
"image_url": "https://media.popnow.ai/influencer/examples/marco.webp",
"video_url": "https://media.popnow.ai/effects/flower-bloom-1abd6efb.mp4",
"resolution": "720p"
}
}'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"
