Wan 3.0 Spicy: dokumentacja API
Wan 3.0: wideo z obrazu, do 30 sekund z dźwiękiem
Jednym kluczem API PopNow wywołasz Wan 3.0 Spicy z własnego kodu. Znajdziesz tu identyfikatory modelu, które trzeba wysłać, każde pole wejściowe, koszt zapytania w USD i gotowe zapytanie do wklejenia w terminalu.
Opisy parametrów pochodzą ze schematu wejściowego modelu i są dostępne tylko po angielsku.
W skrócie
- Twórca
- Alibaba
- Wynik
- Wideo
- Od
- $0.057 USD za sekundę wyniku
- Typowy czas
- ok. 184 s
- Identyfikatory modelu
Ceny są podane w USD, a opłaty są pobierane z Twojego salda PopNow. Przy przyjęciu zadania rezerwowana jest maksymalna kwota, po zakończeniu rozliczane jest rzeczywiste zużycie, a reszta zostaje zwolniona. Nieudane zadania są bezpłatne. Dokładną wycenę przed uruchomieniem uzyskasz przez POST /api/v1/jobs/quote.
Obraz w wideo
alibaba/wan-3.0-spicy/image-to-video
Cena
| Opcja | USD |
|---|---|
480p | $0.057 za sekundę wyniku |
720p | $0.114 za sekundę wyniku |
1080p | $0.228 za sekundę wyniku |
Parametry
| Pole | Typ | Domyślnie | Dozwolone wartości | Do czego służy |
|---|---|---|---|---|
image_urlWymagane | string | — | — | Opening-frame image. |
promptOpcjonalne | string | — | — | Describe the subject, action, camera, light, pacing, and sound for the shot. |
last_image_urlOpcjonalne | string | — | — | Optional last frame: the clip ends on this image. Requires image_url. |
aspect_ratioOpcjonalne | string | — | 16:9, 9:16, 1:1, 4:3, 3:4 | Output aspect ratio. Omit it to let the clip adapt to the opening image; a ratio that differs from the image crops it. |
resolutionOpcjonalne | string | 720p | 480p, 720p, 1080p | Output resolution. |
duration_secondsOpcjonalne | integer | 5 | 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, … (+15) | Requested output length in whole seconds. |
generate_audioOpcjonalne | boolean | true | — | Request generated audio with the video. |
enable_prompt_expansionOpcjonalne | boolean | false | — | Allow the service to expand the submitted creative brief before generation. |
seedOpcjonalne | integer | — | od 0 do 2147483647 | Random seed. Keep it fixed only for controlled comparisons, not as a frame-identical guarantee. |
Przykładowe zapytanie
To zapytanie działa w obecnej postaci; pominięte pola mają wartości domyślne. Najpierw zapisz klucz w zmiennej POPNOW_API_KEY.
Przykład używa w image_url przykładowych plików PopNow. Zamień je na własne publiczne linki HTTPS, przesłane pliki albo zapisane zasoby.
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-3.0-spicy/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": "720p"
}
}'Odpowiedź od razu zawiera taskId. Wynik pobierzesz przez GET /api/v1/jobs/recordInfo albo dodaj callBackUrl, by dostać powiadomienie.
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
-H "Authorization: Bearer $POPNOW_API_KEY"Wydłuż wideo
alibaba/wan-3.0-spicy/video-extend
Cena
| Opcja | USD |
|---|---|
480p | $0.05928 za sekundę wyniku |
720p | $0.11856 za sekundę wyniku |
1080p | $0.23712 za sekundę wyniku |
Parametry
| Pole | Typ | Domyślnie | Dozwolone wartości | Do czego służy |
|---|---|---|---|---|
video_urlWymagane | 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. |
promptOpcjonalne | string | — | — | Describe what happens next: the action that follows, the camera move and the sound. |
last_image_urlOpcjonalne | string | — | — | Optional target last frame: the new segment ends on this image. |
resolutionOpcjonalne | string | 720p | 480p, 720p, 1080p | Resolution the new segment is generated at. Match your source to avoid a visible step in sharpness at the seam. |
duration_secondsOpcjonalne | integer | 5 | 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, … (+15) | Length of the new segment in seconds. The source clip is added on top and is not billed. |
generate_audioOpcjonalne | boolean | true | — | Generate sound for the new segment. The source keeps its own sound either way. |
enable_prompt_expansionOpcjonalne | boolean | false | — | Allow the service to expand the submitted creative brief before generation. |
seedOpcjonalne | integer | — | od 0 do 2147483647 | Random seed. Keep it fixed only for controlled comparisons, not as a frame-identical guarantee. |
Przykładowe zapytanie
To zapytanie działa w obecnej postaci; pominięte pola mają wartości domyślne. Najpierw zapisz klucz w zmiennej POPNOW_API_KEY.
Przykład używa w video_url przykładowych plików PopNow. Zamień je na własne publiczne linki HTTPS, przesłane pliki albo zapisane zasoby.
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-3.0-spicy/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": "720p"
}
}'Odpowiedź od razu zawiera taskId. Wynik pobierzesz przez GET /api/v1/jobs/recordInfo albo dodaj callBackUrl, by dostać powiadomienie.
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
-H "Authorization: Bearer $POPNOW_API_KEY"
