Wan 2.2 LoRA: справочник по API
Видео Wan 2.2 с твоими LoRA на любом из двух экспертных проходов
С одним ключом PopNow API вы вызываете Wan 2.2 LoRA прямо из своего кода. Здесь собраны ID модели, которые нужно передать, все поля, которые она принимает, стоимость запроса в кредитах и готовый запрос — его можно вставить в терминал и запустить.
Описания параметров взяты из входной схемы модели и пока доступны только на английском.
Кратко
- Разработчик
- Alibaba
- Результат
- Видео
- От
- 3.6 кр. за секунду результата ($0.036)
- Обычное время
- около 54 с
1 кредит = 0,01 $. При приёме задачи резервируется максимально возможная сумма, а после завершения списывается фактический расход с округлением вверх до целого кредита; остаток возвращается. За задачи, завершившиеся ошибкой, плата не взимается. Точную сумму до запуска покажет POST /api/v1/jobs/quote.
Создать видео
alibaba/wan-2.2-lora/text-to-video
Цена
| Вариант | Кредиты (за секунду результата) | Доллары США |
|---|---|---|
480p | 7.2 | $0.072 |
720p | 12.6 | $0.126 |
Параметры
| Поле | Тип | По умолчанию | Допустимые значения | Назначение |
|---|---|---|---|---|
promptОбязательно | string | — | — | Describe the scene, the action and the camera move. |
negative_promptНеобязательно | string | — | — | What must stay out of the clip. |
aspect_ratioНеобязательно | string | 16:9 | 16:9, 9:16 | Output aspect ratio. |
resolutionНеобязательно | string | 480p | 480p, 720p | Output video resolution. |
duration_secondsНеобязательно | integer | 5 | 5, 8 | Output video duration in seconds. |
lorasНеобязательно | array<object> | [] | до 3 элементов | LoRA weights applied to both noise experts. |
high_noise_lorasНеобязательно | array<object> | [] | до 3 элементов | LoRA weights applied to the high-noise expert. |
low_noise_lorasНеобязательно | array<object> | [] | до 3 элементов | LoRA weights applied to the low-noise expert. |
seedНеобязательно | integer | — | от 0 до 2147483647 | Random seed; the same seed and inputs repeat the clip. |
Пример запроса
Запрос работает как есть; поля, которые вы не указали, берут значения по умолчанию. Сначала положите ключ в переменную 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.2-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"
}
}'В ответе сразу приходит 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.2-lora/image-to-video
Цена
| Вариант | Кредиты (за секунду результата) | Доллары США |
|---|---|---|
480p | 3.6 | $0.036 |
720p | 7.2 | $0.072 |
Параметры
| Поле | Тип | По умолчанию | Допустимые значения | Назначение |
|---|---|---|---|---|
promptОбязательно | string | — | — | Describe the motion to generate. |
image_urlОбязательно | string (uri) | — | — | Opening-frame image. |
resolutionНеобязательно | string | 480p | 480p, 720p | Output video resolution. |
duration_secondsНеобязательно | integer | 5 | 5, 8 | Output video duration in seconds. |
lorasНеобязательно | array<object> | [] | до 3 элементов | LoRA weights applied to both noise experts. |
high_noise_lorasНеобязательно | array<object> | [] | до 3 элементов | LoRA weights applied to the high-noise expert. |
low_noise_lorasНеобязательно | array<object> | [] | до 3 элементов | LoRA weights applied to the low-noise expert. |
seedНеобязательно | integer | — | от 0 до 2147483647 | Random seed; zero requests a random seed. |
Пример запроса
Запрос работает как есть; поля, которые вы не указали, берут значения по умолчанию. Сначала положите ключ в переменную 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.2-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"
}
}'В ответе сразу приходит 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.2-lora/video-extend
Цена
| Вариант | Кредиты (за секунду результата) | Доллары США |
|---|---|---|
480p | 3.6 | $0.036 |
720p | 7.2 | $0.072 |
Параметры
| Поле | Тип | По умолчанию | Допустимые значения | Назначение |
|---|---|---|---|---|
promptОбязательно | string | — | — | Describe what happens next: the action that follows and the camera move. |
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. |
resolutionНеобязательно | string | 480p | 480p, 720p | Resolution the new segment is generated at. Match your source to avoid a visible step in sharpness at the seam. |
duration_secondsНеобязательно | integer | 5 | 5, 8 | Length of the new segment in seconds: 5 or 8. The source clip is added on top and is not billed. |
lorasНеобязательно | array<object> | [] | до 3 элементов | LoRA weights applied to both noise experts of the new segment. Reuse the LoRAs from the clip you are continuing to keep its look. |
high_noise_lorasНеобязательно | array<object> | [] | до 3 элементов | LoRA weights applied to the high-noise expert. |
low_noise_lorasНеобязательно | array<object> | [] | до 3 элементов | LoRA weights applied to the low-noise expert. |
seedНеобязательно | integer | — | от 0 до 2147483647 | Random seed; zero requests a random seed. |
Пример запроса
Запрос работает как есть; поля, которые вы не указали, берут значения по умолчанию. Сначала положите ключ в переменную 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.2-lora/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": "480p"
}
}'В ответе сразу приходит 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"
