PopNowDokumentacja API
Treść główna

Wan 2.5: dokumentacja API

Klipy 1080p z dźwiękiem, które mogą podążać za twoim audio

Jednym kluczem API PopNow wywołasz Wan 2.5 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.045 USD za sekundę wyniku

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.

Utwórz wideo

alibaba/wan-2.5/text-to-video

Cena

OpcjaUSD
480p$0.045 za sekundę wyniku
720p$0.09 za sekundę wyniku
1080p$0.135 za sekundę wyniku

Parametry

PoleTypDomyślnieDozwolone wartościDo czego służy
promptWymaganestring—do 1500 znakówDescribe the subject, action, camera, light, pacing, and boundaries for the shot.
negative_promptOpcjonalnestring—do 500 znakówList what must not appear in the shot.
aspect_ratioOpcjonalnestring16:916:9, 9:16, 1:1, 4:3, 3:4Output aspect ratio.
resolutionOpcjonalnestring720p480p, 720p, 1080pOutput resolution.
duration_secondsOpcjonalneinteger55, 10Requested output length in seconds.
audio_urlOpcjonalnestring (uri)——Audio track that drives pacing and speech timing.
enable_prompt_expansionOpcjonalnebooleanfalse—Allow the service to expand the submitted creative brief before generation.
seedOpcjonalneinteger—od 0 do 2147483647Random 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.

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.5/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": "720p"
  }
}'

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"

Obraz w wideo

alibaba/wan-2.5/image-to-video

Cena

OpcjaUSD
480p$0.045 za sekundę wyniku
720p$0.09 za sekundę wyniku
1080p$0.135 za sekundę wyniku

Parametry

PoleTypDomyślnieDozwolone wartościDo czego służy
image_urlWymaganestring (uri)——Opening frame. The clip starts from this image.
promptOpcjonalnestring—do 1500 znakówDescribe 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.
resolutionOpcjonalnestring720p480p, 720p, 1080pOutput resolution.
duration_secondsOpcjonalneinteger55, 10Requested output length in seconds.
audio_urlOpcjonalnestring (uri)——Audio track that drives pacing and speech timing.
enable_prompt_expansionOpcjonalnebooleanfalse—Allow the service to expand the submitted creative brief before generation.
seedOpcjonalneinteger—od 0 do 2147483647Random 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.

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.5/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.

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.5/video-extend

Cena

OpcjaUSD
480p$0.045 za sekundę wyniku
720p$0.09 za sekundę wyniku
1080p$0.135 za sekundę wyniku

Parametry

PoleTypDomyślnieDozwolone wartościDo czego służy
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.
promptOpcjonalnestring—do 1500 znakówDescribe what happens next: the action that follows, the camera move and the mood.
negative_promptOpcjonalnestring—do 500 znakówList what must not appear in the new segment.
resolutionOpcjonalnestring720p480p, 720p, 1080pSharpness of the new segment. Match your source to avoid a visible step in sharpness at the seam.
duration_secondsOpcjonalneinteger55, 10Length of the new segment in seconds. The source clip is added on top and is not billed.
audio_urlOpcjonalnestring (uri)——Audio for the new segment: a voice line or music cue it should follow. Your source keeps its own sound.
enable_prompt_expansionOpcjonalnebooleanfalse—Allow the service to expand the submitted creative brief before generation.
seedOpcjonalneinteger—od 0 do 2147483647Random 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.

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.5/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.

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