PopNowDokumentacja API
Treść główna

Wan 2.1 LoRA: dokumentacja API

Wideo i edycja Wan 2.1 z twoimi LoRA, łącznie z ruchem kamery

Jednym kluczem API PopNow wywołasz Wan 2.1 LoRA 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
36 kr. za zapytanie ($0.36)

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.

Utwórz wideo

alibaba/wan-2.1-lora/text-to-video

Cena

OpcjaKredyty (za zapytanie)Dolary USA
duration_seconds = 5, resolution = 480p36$0.36
duration_seconds = 10, resolution = 480p54$0.54
duration_seconds = 5, resolution = 720p54$0.54
duration_seconds = 10, resolution = 720p81$0.81

Parametry

PoleTypDomyślnieDozwolone wartościDo czego służy
promptWymaganestring——Describe the scene, the action and the camera. If a LoRA has trigger words, put them first.
negative_promptOpcjonalnestring——What must stay out of the clip.
aspect_ratioOpcjonalnestring16:916:9, 9:16Output aspect ratio.
resolutionOpcjonalnestring480p480p, 720pOutput resolution.
duration_secondsOpcjonalneinteger55, 10Clip length: 5 or 10 seconds.
lorasOpcjonalnearray<object>[]do 3 elementówUp to three LoRA weight files trained for Wan 2.1 14B, each with its own strength.
guidance_scaleOpcjonalnenumber5od 0 do 20How closely the clip follows the prompt, from 0 to 20.
flow_shiftOpcjonalnenumber—od 1 do 10Flow-matching timestep shift, from 1 to 10. Leave it out for the default (3 at 480p, 5 at 720p).
stepsOpcjonalneinteger30od 1 do 40Denoising steps, from 1 to 40. Fewer steps return faster and softer.
seedOpcjonalneinteger—od 0 do 2147483647Random seed for controlled comparisons, not 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.1-lora/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": "480p"
  }
}'

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.1-lora/image-to-video

Cena

OpcjaKredyty (za zapytanie)Dolary USA
duration_seconds = 5, resolution = 480p36$0.36
duration_seconds = 10, resolution = 480p54$0.54
duration_seconds = 5, resolution = 720p54$0.54
duration_seconds = 10, resolution = 720p81$0.81

Parametry

PoleTypDomyślnieDozwolone wartościDo czego służy
promptWymaganestring——Describe what happens after the opening frame and how the camera moves.
image_urlWymaganestring (uri)——Opening frame. The clip keeps its aspect ratio.
negative_promptOpcjonalnestring——What must stay out of the clip.
resolutionOpcjonalnestring480p480p, 720pOutput resolution.
duration_secondsOpcjonalneinteger55, 10Clip length: 5 or 10 seconds.
lorasOpcjonalnearray<object>[]do 3 elementówUp to three LoRA weight files trained for Wan 2.1 14B, each with its own strength.
guidance_scaleOpcjonalnenumber5od 0 do 20How closely the clip follows the prompt, from 0 to 20.
flow_shiftOpcjonalnenumber—od 1 do 10Flow-matching timestep shift, from 1 to 10. Leave it out for the default (3 at 480p, 5 at 720p).
stepsOpcjonalneinteger30od 1 do 40Denoising steps, from 1 to 40. Fewer steps return faster and softer.
seedOpcjonalneinteger—od 0 do 2147483647Random seed for controlled comparisons, not 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.1-lora/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": "480p"
  }
}'

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"

Edytuj wideo

alibaba/wan-2.1-lora/video-edit

Cena

OpcjaKredyty (za zapytanie)Dolary USA
duration_seconds = 5, resolution = 480p36$0.36
duration_seconds = 10, resolution = 480p54$0.54
duration_seconds = 5, resolution = 720p54$0.54
duration_seconds = 10, resolution = 720p81$0.81

Parametry

PoleTypDomyślnieDozwolone wartościDo czego służy
promptWymaganestring——Describe how the whole clip should look after the restyle: subject, wardrobe, setting, style.
video_urlWymaganestring (uri)——Source clip. Its motion and timing carry over to the result.
negative_promptOpcjonalnestring——What must stay out of the clip.
resolutionOpcjonalnestring480p480p, 720pOutput resolution.
strengthOpcjonalnenumber0.9od 0.1 do 1How far to move away from the source, from 0.1 to 1.
duration_secondsOpcjonalneinteger55, 10Clip length: 5 or 10 seconds.
lorasOpcjonalnearray<object>[]do 3 elementówUp to three LoRA weight files trained for Wan 2.1 14B, each with its own strength.
guidance_scaleOpcjonalnenumber5od 0 do 20How closely the clip follows the prompt, from 0 to 20.
flow_shiftOpcjonalnenumber—od 1 do 10Flow-matching timestep shift, from 1 to 10. Leave it out for the default (3 at 480p, 5 at 720p).
stepsOpcjonalneinteger30od 1 do 40Denoising steps, from 1 to 40. Fewer steps return faster and softer.
seedOpcjonalneinteger—od 0 do 2147483647Random seed for controlled comparisons, not 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.1-lora/video-edit",
  "input": {
    "prompt": "Recolor the flowers in soft pastel blue; keep the face and the motion unchanged",
    "video_url": "https://media.popnow.ai/effects/flower-bloom-1abd6efb.mp4",
    "duration_seconds": 5,
    "resolution": "480p"
  }
}'

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