PopNowДокументация API
Основное содержимое

Wan 2.5: справочник по API

Клипы 1080p со звуком, которые могут идти под твоё аудио

С одним ключом PopNow API вы вызываете Wan 2.5 прямо из своего кода. Здесь собраны ID модели, которые нужно передать, все поля, которые она принимает, стоимость запроса в кредитах и готовый запрос — его можно вставить в терминал и запустить.

Описания параметров взяты из входной схемы модели и пока доступны только на английском.

Кратко

Разработчик
Alibaba
Результат
Видео
От
6.75 кр. за секунду результата ($0.0675)

1 кредит = 0,01 $. При приёме задачи резервируется максимально возможная сумма, а после завершения списывается фактический расход с округлением вверх до целого кредита; остаток возвращается. За задачи, завершившиеся ошибкой, плата не взимается. Точную сумму до запуска покажет POST /api/v1/jobs/quote.

Создать видео

alibaba/wan-2.5/text-to-video

Цена

ВариантКредиты (за секунду результата)Доллары США
480p6.75$0.0675
720p13.5$0.135
1080p20.25$0.2025

Параметры

ПолеТипПо умолчаниюДопустимые значенияНазначение
promptОбязательноstring—до 1 500 символовDescribe the subject, action, camera, light, pacing, and boundaries for the shot.
negative_promptНеобязательноstring—до 500 символовList what must not appear in the shot.
aspect_ratioНеобязательноstring16:916:9, 9:16, 1:1, 4:3, 3:4Output aspect ratio.
resolutionНеобязательноstring720p480p, 720p, 1080pOutput resolution.
duration_secondsНеобязательноinteger55, 10Requested output length in seconds.
audio_urlНеобязательноstring (uri)——Audio track that drives lip sync or pacing.
enable_prompt_expansionНеобязательноbooleanfalse—Allow the service to expand the submitted creative brief before generation.
seedНеобязательноinteger—от 0 до 2147483647Random seed. Keep it fixed only for controlled comparisons, not as a frame-identical guarantee.

Пример запроса

Запрос работает как есть; поля, которые вы не указали, берут значения по умолчанию. Сначала положите ключ в переменную 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"
  }
}'

В ответе сразу приходит taskId. Результат забирайте через GET /api/v1/jobs/recordInfo или передайте callBackUrl, чтобы получить уведомление.

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"

Видео из картинки

alibaba/wan-2.5/image-to-video

Цена

ВариантКредиты (за секунду результата)Доллары США
480p6.75$0.0675
720p13.5$0.135
1080p20.25$0.2025

Параметры

ПолеТипПо умолчаниюДопустимые значенияНазначение
image_urlОбязательноstring (uri)——Opening frame. The clip starts from this image.
promptНеобязательноstring—до 1 500 символовDescribe what happens after the opening frame: the action, the camera, and the mood.
negative_promptНеобязательноstring—до 500 символовList what must not appear in the shot.
resolutionНеобязательноstring720p480p, 720p, 1080pOutput resolution.
duration_secondsНеобязательноinteger55, 10Requested output length in seconds.
audio_urlНеобязательноstring (uri)——Audio track that drives lip sync or pacing.
enable_prompt_expansionНеобязательноbooleanfalse—Allow the service to expand the submitted creative brief before generation.
seedНеобязательноinteger—от 0 до 2147483647Random seed. Keep it fixed only for controlled comparisons, not as a frame-identical guarantee.

Пример запроса

Запрос работает как есть; поля, которые вы не указали, берут значения по умолчанию. Сначала положите ключ в переменную POPNOW_API_KEY.

В примере в image_url стоят демонстрационные файлы PopNow. Замените их своими публичными HTTPS-ссылками, загруженными файлами или сохранёнными ассетами.

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"
  }
}'

В ответе сразу приходит taskId. Результат забирайте через GET /api/v1/jobs/recordInfo или передайте callBackUrl, чтобы получить уведомление.

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"

Продлить видео

alibaba/wan-2.5/video-extend

Цена

ВариантКредиты (за секунду результата)Доллары США
480p6.75$0.0675
720p13.5$0.135
1080p20.25$0.2025

Параметры

ПолеТипПо умолчаниюДопустимые значенияНазначение
video_urlОбязательно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.
promptНеобязательноstring—до 1 500 символовDescribe what happens next: the action that follows, the camera move and the mood.
negative_promptНеобязательноstring—до 500 символовList what must not appear in the new segment.
resolutionНеобязательноstring720p480p, 720p, 1080pSharpness of the new segment. Match your source to avoid a visible step in sharpness at the seam.
duration_secondsНеобязательноinteger55, 10Length of the new segment in seconds. The source clip is added on top and is not billed.
audio_urlНеобязательноstring (uri)——Audio for the new segment: a voice line or music cue it should follow. Your source keeps its own sound.
enable_prompt_expansionНеобязательноbooleanfalse—Allow the service to expand the submitted creative brief before generation.
seedНеобязательноinteger—от 0 до 2147483647Random seed. Keep it fixed only for controlled comparisons, not as a frame-identical guarantee.

Пример запроса

Запрос работает как есть; поля, которые вы не указали, берут значения по умолчанию. Сначала положите ключ в переменную POPNOW_API_KEY.

В примере в video_url стоят демонстрационные файлы PopNow. Замените их своими публичными HTTPS-ссылками, загруженными файлами или сохранёнными ассетами.

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"
  }
}'

В ответе сразу приходит taskId. Результат забирайте через GET /api/v1/jobs/recordInfo или передайте callBackUrl, чтобы получить уведомление.

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"

Что дальше

На этой странице