Wan 2.6 Flash: справочник по API
Быстрые мультикадровые клипы из одной картинки
С одним ключом PopNow API вы вызываете Wan 2.6 Flash прямо из своего кода. Здесь собраны ID модели, которые нужно передать, все поля, которые она принимает, стоимость запроса в кредитах и готовый запрос — его можно вставить в терминал и запустить.
Описания параметров взяты из входной схемы модели и пока доступны только на английском.
Кратко
- Разработчик
- Alibaba
- Результат
- Видео
- От
- 3.38 кр. за секунду результата ($0.0338)
- Обычное время
- около 81 с
1 кредит = 0,01 $. При приёме задачи резервируется максимально возможная сумма, а после завершения списывается фактический расход с округлением вверх до целого кредита; остаток возвращается. За задачи, завершившиеся ошибкой, плата не взимается. Точную сумму до запуска покажет POST /api/v1/jobs/quote.
Видео из картинки
alibaba/wan-2.6-flash/image-to-video
Цена
| Вариант | Кредиты (за секунду результата) | Доллары США |
|---|---|---|
generate_audio = false, resolution = 720p | 3.38 | $0.0338 |
generate_audio = false, resolution = 1080p | 5.06 | $0.0506 |
generate_audio = true, resolution = 720p | 6.75 | $0.0675 |
generate_audio = true, resolution = 1080p | 10.13 | $0.1013 |
Параметры
| Поле | Тип | По умолчанию | Допустимые значения | Назначение |
|---|---|---|---|---|
image_urlОбязательно | string | — | — | 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. |
audio_urlНеобязательно | string | — | — | Optional voice or music track the clip follows for mouth shapes and pacing; the clip itself stays silent. |
generate_audioНеобязательно | boolean | false | — | Generate a native soundtrack (voices, effects, ambience) with the picture. Audio costs twice as much per second. |
resolutionНеобязательно | string | 720p | 720p, 1080p | Output resolution. |
duration_secondsНеобязательно | integer | 5 | 5, 10, 15 | Requested output length in seconds. |
shot_typeНеобязательно | string | single | single, multi | Single continuous shot, or a multi-shot edit. |
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.6-flash/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",
"generate_audio": false
}
}'В ответе сразу приходит 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.6-flash/reference-to-video
Цена
| Вариант | Кредиты (за секунду результата) | Доллары США |
|---|---|---|
generate_audio = false, resolution = 720p | 3.38 | $0.0338 |
generate_audio = false, resolution = 1080p | 5.06 | $0.0506 |
generate_audio = true, resolution = 720p | 6.75 | $0.0675 |
generate_audio = true, resolution = 1080p | 10.13 | $0.1013 |
Параметры
| Поле | Тип | По умолчанию | Допустимые значения | Назначение |
|---|---|---|---|---|
promptОбязательно | string | — | до 1 500 символов | Describe the new scene: name each reference as character1, character2 and so on (videos first, then images), then setting, action, camera and light. |
negative_promptНеобязательно | string | — | до 500 символов | List what must not appear in the shot. |
reference_video_urlsНеобязательно | array<string> | — | до 3 элементов | Reference videos of the subjects to cast, up to 3 clips adding up to 5 seconds. Still images in reference_image_urls are numbered after them. |
reference_image_urlsНеобязательно | array<string> | — | до 5 элементов | Up to 5 still images of subjects to cast, alongside or instead of the reference videos; numbered after the videos. Videos and images together take at most 5 entries. |
aspect_ratioНеобязательно | string | 16:9 | 16:9, 9:16, 1:1, 4:3, 3:4 | Output aspect ratio. |
generate_audioНеобязательно | boolean | false | — | Generate a native soundtrack (voices, effects, ambience) with the picture. Audio costs twice as much per second. |
resolutionНеобязательно | string | 720p | 720p, 1080p | Output resolution. |
duration_secondsНеобязательно | integer | 5 | от 2 до 10 | Requested output length in seconds. |
shot_typeНеобязательно | string | single | single, multi | Single continuous shot, or a multi-shot edit. |
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.
В примере в reference_video_urls стоят демонстрационные файлы 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.6-flash/reference-to-video",
"input": {
"prompt": "The man from the reference image jogs across a sunlit rooftop at golden hour and smiles at the camera; smooth tracking shot",
"reference_video_urls": [
"https://media.popnow.ai/effects/flower-bloom-1abd6efb.mp4"
],
"duration_seconds": 5,
"resolution": "720p",
"generate_audio": false
}
}'В ответе сразу приходит 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"
