Используйте API RunComfy для запуска wan-ai/wan-2-1/lora. Допустимые входы и выходы см. в схеме.
curl --request POST \
--url https://model-api.runcomfy.net/v1/models/wan-ai/wan-2-1/lora \
--header "Content-Type: application/json" \
--header "Authorization: Bearer <token>" \
--data '{
"prompt": "A vast circular library of glowing memory orbs stretches in all directions, with tall curved shelves extending upward. Each orb contains a different memory, glowing in various colors - yellow for joy, blue for sadness, red for anger, purple for fear, and green for disgust. In the foreground, two characters - a small blue figure with glasses and a tall slender yellow figure with bright blue hair - are examining a particularly bright memory orb. Light streams cascade through the enormous room, creating dramatic beams between the shelves. The space has a warm ambient glow with dramatic shadows. Small maintenance worker characters in uniform can be seen in the background, carefully organizing orbs on distant shelves. The rendering features Pixar's characteristic polished surfaces with subtle reflections and depth-of-field blur for distant elements.",
"lora_url": "https://playgrounds-storage-public.runcomfy.net/models/wan2.1/lora/Remade-AI/Pixar/pixar_10_epochs.safetensors"
}'Задайте для переменной окружения YOUR_API_TOKEN ваш API-ключ (управление в Профиль) и передавайте в каждом запросе Bearer-токен в заголовке Authorization : Authorization: Bearer $YOUR_API_TOKEN.
Отправьте асинхронную задачу генерации и сразу получите request_id и URL для статуса, результатов и отмены.
curl --request POST \
--url https://model-api.runcomfy.net/v1/models/wan-ai/wan-2-1/lora \
--header "Content-Type: application/json" \
--header "Authorization: Bearer <token>" \
--data '{
"prompt": "A vast circular library of glowing memory orbs stretches in all directions, with tall curved shelves extending upward. Each orb contains a different memory, glowing in various colors - yellow for joy, blue for sadness, red for anger, purple for fear, and green for disgust. In the foreground, two characters - a small blue figure with glasses and a tall slender yellow figure with bright blue hair - are examining a particularly bright memory orb. Light streams cascade through the enormous room, creating dramatic beams between the shelves. The space has a warm ambient glow with dramatic shadows. Small maintenance worker characters in uniform can be seen in the background, carefully organizing orbs on distant shelves. The rendering features Pixar's characteristic polished surfaces with subtle reflections and depth-of-field blur for distant elements.",
"lora_url": "https://playgrounds-storage-public.runcomfy.net/models/wan2.1/lora/Remade-AI/Pixar/pixar_10_epochs.safetensors"
}'Текущее состояние по request_id: «in_queue», «in_progress», «completed» или «cancelled».
curl --request GET \
--url https://model-api.runcomfy.net/v1/requests/{request_id}/status \
--header "Authorization: Bearer <token>"Финальные выходные данные и метаданные для request_id; если задача не завершена, в ответе — текущее состояние для дальнейшего опроса.
curl --request GET \
--url https://model-api.runcomfy.net/v1/requests/{request_id}/result \
--header "Authorization: Bearer <token>"Отмена задачи в очереди по request_id; выполняющиеся задачи отменить нельзя.
curl --request POST \
--url https://model-api.runcomfy.net/v1/requests/{request_id}/cancel \
--header "Authorization: Bearer <token>"Укажите публично доступный HTTPS URL. Хост должен разрешать серверные запросы (без входа и cookie), без жёсткого лимита и блокировки ботов. Рекомендуется: изображения ≤ 50 МБ (~4K), видео ≤ 100 МБ (~2–5 мин при 720p). Для приватных ресурсов — стабильные или подписанные URL.
{
"type": "object",
"title": "Схема входа",
"required": [
"prompt",
"lora_url"
],
"properties": {
"lora_url": {
"title": "Wan 2.1 LoRA URL",
"description": "Укажите ссылку Hugging Face или Civitai. За одну генерацию можно использовать только одну LoRA.",
"type": "string",
"default": "https://playgrounds-storage-public.runcomfy.net/models/wan2.1/lora/Remade-AI/Pixar/pixar_10_epochs.safetensors"
},
"model": {
"title": "Базовая модель Wan 2.1",
"description": "Выберите базовую модель 1.3b или 14b; по умолчанию: 14b.",
"type": "string",
"enum": [
"1.3b",
"14b"
],
"default": "14b"
},
"prompt": {
"title": "Промпт",
"description": "Обязательный текст, описывающий объект видео, сцену, действие, стиль и движение камеры.",
"type": "string",
"default": "A vast circular library of glowing memory orbs stretches in all directions, with tall curved shelves extending upward. Each orb contains a different memory, glowing in various colors - yellow for joy, blue for sadness, red for anger, purple for fear, and green for disgust. In the foreground, two characters - a small blue figure with glasses and a tall slender yellow figure with bright blue hair - are examining a particularly bright memory orb. Light streams cascade through the enormous room, creating dramatic beams between the shelves. The space has a warm ambient glow with dramatic shadows. Small maintenance worker characters in uniform can be seen in the background, carefully organizing orbs on distant shelves. The rendering features Pixar's characteristic polished surfaces with subtle reflections and depth-of-field blur for distant elements."
},
"image": {
"title": "Входное изображение",
"description": "Необязательное исходное изображение для генерации видео из изображения. Оставьте поле пустым для генерации видео по тексту.",
"type": "string"
},
"resolution": {
"title": "Разрешение",
"description": "Выберите выходное разрешение 480p или 720p; по умолчанию: 480p.",
"type": "string",
"enum": [
"480p",
"720p"
],
"default": "480p"
},
"aspect_ratio": {
"title": "Соотношение сторон (Ш:В)",
"description": "Выберите 16:9, 1:1 или 9:16; по умолчанию: 16:9.",
"type": "string",
"enum": [
"16:9",
"1:1",
"9:16"
],
"default": "16:9"
},
"negative_prompt": {
"title": "Негативный промпт",
"description": "Необязательный текст, описывающий визуальные элементы, которых следует избегать.",
"type": "string",
"default": ""
},
"sample_guide_scale": {
"title": "Сила промпта",
"description": "Определяет, насколько точно результат следует промпту; диапазон: 0–10, значение по умолчанию: 5.",
"maximum": 10,
"minimum": 0,
"type": "float",
"default": 5
},
"lora_strength_model": {
"title": "Интенсивность LoRA",
"description": "Контролирует влияние LoRA. Более высокие значения усиливают эффект; диапазон: 0–1, значение по умолчанию: 1.",
"maximum": 1,
"minimum": 0,
"type": "float",
"default": 1
},
"sample_steps": {
"title": "Шаги сэмплирования",
"description": "Количество шагов сэмплирования от 1 до 60; значение по умолчанию: 30. Чем больше шагов, тем выше стоимость в кредитах.",
"type": "integer",
"default": 30,
"maximum": 60,
"minimum": 1
},
"seed": {
"title": "Сид",
"description": "Целочисленный сид для воспроизведения результата или получения вариаций; значение по умолчанию: 80682279.",
"type": "integer",
"default": 80682279
},
"frames": {
"title": "Количество кадров",
"description": "Выберите 17, 33, 49, 65 или 81 выходной кадр.",
"type": "integer",
"enum": [
17,
33,
49,
65,
81
]
},
"sample_shift": {
"title": "Сдвиг сэмплирования",
"description": "Настраивает сдвиг сэмплирования в диапазоне от 0 до 10.",
"maximum": 10,
"minimum": 0,
"type": "float"
},
"fast_mode": {
"title": "Быстрый режим",
"description": "Выберите «Выкл.», «Сбалансированный» или «Быстрый». Более быстрая обработка может снизить точность.",
"type": "string",
"enum": [
"Off",
"Balanced",
"Fast"
]
}
}
}{
"output": {
"type": "object",
"properties": {
"image": {
"type": "string",
"format": "uri",
"description": "URL одного изображения"
},
"video": {
"type": "string",
"format": "uri",
"description": "URL одного видео"
},
"images": {
"type": "array",
"description": "несколько URL изображений",
"items": {
"type": "string",
"format": "uri"
}
},
"videos": {
"type": "array",
"description": "несколько URL видео",
"items": {
"type": "string",
"format": "uri"
}
}
}
}
}RunComfy - ведущая ComfyUI платформа, предлагающая ComfyUI онлайн среду и услуги, а также рабочие процессы ComfyUI с потрясающей визуализацией. RunComfy также предоставляет AI Models, позволяя художникам использовать новейшие инструменты AI для создания невероятного искусства.