PopNowDokumentacja API
Treść główna

Wan 2.7 Spicy: dokumentacja API

Wan 2.7: wideo z obrazu, może podążać za twoją ścieżką audio

Jednym kluczem API PopNow wywołasz Wan 2.7 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.1235 USD za sekundę wyniku
Typowy czas
ok. 173 s

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-2.7-spicy/image-to-video

Cena

OpcjaUSD
720p$0.1235 za sekundę wyniku
1080p$0.19 za sekundę wyniku

Parametry

PoleTypDomyślnieDozwolone wartościDo czego służy
image_urlWymaganestring——Opening frame. The clip starts from this image.
promptWymaganestring——Describe what happens after the opening frame: the action, the camera, and the mood.
negative_promptOpcjonalnestring—do 500 znakówList what must not appear in the shot.
duration_secondsOpcjonalneinteger5od 2 do 15Requested output length in seconds.
resolutionOpcjonalnestring720p720p, 1080pOutput resolution.
audio_urlOpcjonalnestring——Audio track that drives pacing and speech timing.
seedOpcjonalneinteger—od 0 do 2147483647Random seed. Keep it fixed only for controlled comparisons, not as a frame-identical guarantee.
generate_audioOpcjonalnebooleantrue—Include an audio track in the output. When false, supplied audio is not used.
enable_prompt_expansionOpcjonalnebooleantrue—Expand the prompt before generation.

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.

POST /api/v1/jobs/createTask
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.7-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",
    "resolution": "720p",
    "duration_seconds": 5
  }
}'

Odpowiedź od razu zawiera taskId. Wynik pobierzesz przez GET /api/v1/jobs/recordInfo albo dodaj callBackUrl, by dostać powiadomienie.

GET /api/v1/jobs/recordInfo
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-2.7-spicy/video-extend

Cena

OpcjaUSD
720p$0.1235 za sekundę wyniku
1080p$0.19 za sekundę wyniku

Parametry

PoleTypDomyślnieDozwolone wartościDo czego służy
promptWymaganestring——Describe what happens next: the action that follows, the camera move and the mood.
video_urlWymaganestring (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.
negative_promptOpcjonalnestring—do 500 znakówList what must not appear in the new segment.
duration_secondsOpcjonalneinteger5od 2 do 15Length of the new segment in seconds. The source clip is added on top and is not billed.
resolutionOpcjonalnestring720p720p, 1080pSharpness of the new segment. Match your source to avoid a visible step in sharpness at the seam.
audio_urlOpcjonalnestring——Audio for the new segment, driving lip sync and pacing. Your source keeps its own sound. Needs generate_audio on.
seedOpcjonalneinteger—od 0 do 2147483647Random seed. Keep it fixed only for controlled comparisons, not as a frame-identical guarantee.
generate_audioOpcjonalnebooleantrue—Generate sound for the new segment. The source keeps its own sound either way. When false, supplied audio is not used.
enable_prompt_expansionOpcjonalnebooleantrue—Expand the prompt before generation.

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.

POST /api/v1/jobs/createTask
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.7-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",
    "resolution": "720p",
    "duration_seconds": 5
  }
}'

Odpowiedź od razu zawiera taskId. Wynik pobierzesz przez GET /api/v1/jobs/recordInfo albo dodaj callBackUrl, by dostać powiadomienie.

GET /api/v1/jobs/recordInfo
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
  -H "Authorization: Bearer $POPNOW_API_KEY"

Co dalej

Na tej stronie