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
Цена
| Вариант | Кредиты (за секунду результата) | Доллары США |
|---|---|---|
480p | 6.75 | $0.0675 |
720p | 13.5 | $0.135 |
1080p | 20.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Необязательно | string | 16:9 | 16:9, 9:16, 1:1, 4:3, 3:4 | Output aspect ratio. |
resolutionНеобязательно | string | 720p | 480p, 720p, 1080p | Output resolution. |
duration_secondsНеобязательно | integer | 5 | 5, 10 | Requested output length in seconds. |
audio_urlНеобязательно | string (uri) | — | — | Audio track that drives lip sync or pacing. |
enable_prompt_expansionНеобязательно | boolean | false | — | Allow the service to expand the submitted creative brief before generation. |
seedНеобязательно | integer | — | от 0 до 2147483647 | Random seed. Keep it fixed only for controlled comparisons, not as a frame-identical guarantee. |
Пример запроса
Запрос работает как есть; поля, которые вы не указали, берут значения по умолчанию. Сначала положите ключ в переменную POPNOW_API_KEY.
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, чтобы получить уведомление.
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
Цена
| Вариант | Кредиты (за секунду результата) | Доллары США |
|---|---|---|
480p | 6.75 | $0.0675 |
720p | 13.5 | $0.135 |
1080p | 20.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Необязательно | string | 720p | 480p, 720p, 1080p | Output resolution. |
duration_secondsНеобязательно | integer | 5 | 5, 10 | Requested output length in seconds. |
audio_urlНеобязательно | string (uri) | — | — | Audio track that drives lip sync or pacing. |
enable_prompt_expansionНеобязательно | boolean | false | — | Allow the service to expand the submitted creative brief before generation. |
seedНеобязательно | integer | — | от 0 до 2147483647 | Random seed. Keep it fixed only for controlled comparisons, not as a frame-identical guarantee. |
Пример запроса
Запрос работает как есть; поля, которые вы не указали, берут значения по умолчанию. Сначала положите ключ в переменную POPNOW_API_KEY.
В примере в image_url стоят демонстрационные файлы PopNow. Замените их своими публичными HTTPS-ссылками, загруженными файлами или сохранёнными ассетами.
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, чтобы получить уведомление.
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
Цена
| Вариант | Кредиты (за секунду результата) | Доллары США |
|---|---|---|
480p | 6.75 | $0.0675 |
720p | 13.5 | $0.135 |
1080p | 20.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Необязательно | string | 720p | 480p, 720p, 1080p | Sharpness of the new segment. Match your source to avoid a visible step in sharpness at the seam. |
duration_secondsНеобязательно | integer | 5 | 5, 10 | Length 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Необязательно | boolean | false | — | Allow the service to expand the submitted creative brief before generation. |
seedНеобязательно | integer | — | от 0 до 2147483647 | Random seed. Keep it fixed only for controlled comparisons, not as a frame-identical guarantee. |
Пример запроса
Запрос работает как есть; поля, которые вы не указали, берут значения по умолчанию. Сначала положите ключ в переменную POPNOW_API_KEY.
В примере в video_url стоят демонстрационные файлы PopNow. Замените их своими публичными HTTPS-ссылками, загруженными файлами или сохранёнными ассетами.
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, чтобы получить уведомление.
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
-H "Authorization: Bearer $POPNOW_API_KEY"
