Wan 2.6 Flash: dokumentacja API
Szybkie klipy z wielu ujęć z jednego obrazu
Jednym kluczem API PopNow wywołasz Wan 2.6 Flash z własnego kodu. Znajdziesz tu identyfikatory modelu, które trzeba wysłać, każde pole wejściowe, koszt zapytania w kredytach 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
- 3.38 kr. za sekundę wyniku ($0.0338)
- Typowy czas
- ok. 81 s
- Identyfikatory modelu
1 kredyt = 0,01 USD. Po przyjęciu zadanie blokuje najwyższą możliwą kwotę, a na koniec rozlicza faktyczne zużycie, zaokrąglone w górę do pełnych kredytów; resztę zwalnia. Za zadania zakończone błędem nie płacisz. Dokładną kwotę przed uruchomieniem poda POST /api/v1/jobs/quote.
Obraz w wideo
alibaba/wan-2.6-flash/image-to-video
Cena
| Opcja | Kredyty (za sekundę wyniku) | Dolary USA |
|---|---|---|
generate_audio = false, resolution = 720p | 3.38 | $0.0338 |
generate_audio = false, resolution = 1080p | 5.06 | $0.0506 |
generate_audio = true, resolution = 720p | 6.75 | $0.0675 |
generate_audio = true, resolution = 1080p | 10.13 | $0.1013 |
Parametry
| Pole | Typ | Domyślnie | Dozwolone wartości | Do czego służy |
|---|---|---|---|---|
image_urlWymagane | string | — | — | Opening frame. The clip starts from this image. |
promptOpcjonalne | string | — | do 1500 znaków | Describe what happens after the opening frame: the action, the camera, and the mood. |
negative_promptOpcjonalne | string | — | do 500 znaków | List what must not appear in the shot. |
audio_urlOpcjonalne | string | — | — | Optional voice or music track the clip follows for mouth shapes and pacing; the clip itself stays silent. |
generate_audioOpcjonalne | boolean | false | — | Generate a native soundtrack (voices, effects, ambience) with the picture. Audio costs twice as much per second. |
resolutionOpcjonalne | string | 720p | 720p, 1080p | Output resolution. |
duration_secondsOpcjonalne | integer | 5 | 5, 10, 15 | Requested output length in seconds. |
shot_typeOpcjonalne | string | single | single, multi | Single continuous shot, or a multi-shot edit. |
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-2.6-flash/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",
"generate_audio": false
}
}'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"Wideo z referencji
alibaba/wan-2.6-flash/reference-to-video
Cena
| Opcja | Kredyty (za sekundę wyniku) | Dolary USA |
|---|---|---|
generate_audio = false, resolution = 720p | 3.38 | $0.0338 |
generate_audio = false, resolution = 1080p | 5.06 | $0.0506 |
generate_audio = true, resolution = 720p | 6.75 | $0.0675 |
generate_audio = true, resolution = 1080p | 10.13 | $0.1013 |
Parametry
| Pole | Typ | Domyślnie | Dozwolone wartości | Do czego służy |
|---|---|---|---|---|
promptWymagane | string | — | do 1500 znaków | Describe the new scene: name each reference as character1, character2 and so on (videos first, then images), then setting, action, camera and light. |
negative_promptOpcjonalne | string | — | do 500 znaków | List what must not appear in the shot. |
reference_video_urlsOpcjonalne | array<string> | — | do 3 elementów | Reference videos of the subjects to cast, up to 3 clips adding up to 5 seconds. Still images in reference_image_urls are numbered after them. |
reference_image_urlsOpcjonalne | array<string> | — | do 5 elementów | Up to 5 still images of subjects to cast, alongside or instead of the reference videos; numbered after the videos. Videos and images together take at most 5 entries. |
aspect_ratioOpcjonalne | string | 16:9 | 16:9, 9:16, 1:1, 4:3, 3:4 | Output aspect ratio. |
generate_audioOpcjonalne | boolean | false | — | Generate a native soundtrack (voices, effects, ambience) with the picture. Audio costs twice as much per second. |
resolutionOpcjonalne | string | 720p | 720p, 1080p | Output resolution. |
duration_secondsOpcjonalne | integer | 5 | od 2 do 10 | Requested output length in seconds. |
shot_typeOpcjonalne | string | single | single, multi | Single continuous shot, or a multi-shot edit. |
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 reference_video_urls 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-2.6-flash/reference-to-video",
"input": {
"prompt": "The man from the reference image jogs across a sunlit rooftop at golden hour and smiles at the camera; smooth tracking shot",
"reference_video_urls": [
"https://media.popnow.ai/effects/flower-bloom-1abd6efb.mp4"
],
"duration_seconds": 5,
"resolution": "720p",
"generate_audio": false
}
}'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"
