Используйте API RunComfy для запуска bytedance/seedance-2.5/reference-to-video/4k. Допустимые входы и выходы см. в схеме.
curl --request POST \
--url https://model-api.runcomfy.net/v1/models/bytedance/seedance-2.5/reference-to-video/4k \
--header "Content-Type: application/json" \
--header "Authorization: Bearer <token>" \
--data '{
"prompt": "Using the reference image for wardrobe and set design and the reference clip for camera rhythm, follow the subject through a lantern-lit European Christmas market: slow tracking move past timber stalls and steaming mulled wine, warm string lights flaring softly, wool coat and knitted scarf catching the glow, shallow depth of field, continuous handheld drift, no text, no watermark.",
"videos": [
"https://playgrounds-storage-public.runcomfy.net/tools/7450/media-files/input-1-1.mp4"
]
}'Задайте для переменной окружения 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/bytedance/seedance-2.5/reference-to-video/4k \
--header "Content-Type: application/json" \
--header "Authorization: Bearer <token>" \
--data '{
"prompt": "Using the reference image for wardrobe and set design and the reference clip for camera rhythm, follow the subject through a lantern-lit European Christmas market: slow tracking move past timber stalls and steaming mulled wine, warm string lights flaring softly, wool coat and knitted scarf catching the glow, shallow depth of field, continuous handheld drift, no text, no watermark.",
"videos": [
"https://playgrounds-storage-public.runcomfy.net/tools/7450/media-files/input-1-1.mp4"
]
}'Текущее состояние по 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",
"videos"
],
"properties": {
"prompt": {
"title": "Промпт",
"description": "Текстовый промпт, описывающий нужное видео и опирающийся на предоставленные изображения, клипы и аудио как подсказки среды, движения и настроения.",
"type": "string",
"default": "Using the reference image for wardrobe and set design and the reference clip for camera rhythm, follow the subject through a lantern-lit European Christmas market: slow tracking move past timber stalls and steaming mulled wine, warm string lights flaring softly, wool coat and knitted scarf catching the glow, shallow depth of field, continuous handheld drift, no text, no watermark."
},
"images": {
"title": "Референсные изображения",
"description": "Референсные изображения для среды и стиля. До 9 изображений.",
"type": "array",
"default": [
"https://playgrounds-storage-public.runcomfy.net/tools/7450/media-files/input-1-1.png"
],
"maxItems": 9
},
"videos": {
"title": "Референсные видео",
"description": "Референсные видеоклипы для движения камеры и ритма. До 3 клипов.",
"type": "array",
"maxItems": 3,
"minItems": 1,
"default": [
"https://playgrounds-storage-public.runcomfy.net/tools/7450/media-files/input-1-1.mp4"
]
},
"audios": {
"title": "Референсное аудио",
"description": "Референсное аудио для настроения и темпа. До 3 файлов.",
"type": "array",
"maxItems": 3
},
"aspect_ratio": {
"title": "Соотношение сторон (Ш:В)",
"description": "Соотношение сторон сгенерированного видео.",
"type": "string",
"enum": [
"16:9",
"9:16",
"1:1",
"4:3",
"3:4",
"21:9",
"adaptive"
],
"default": "16:9"
},
"duration": {
"title": "Длительность (секунды)",
"description": "Длительность сгенерированного видео в секундах. От 4 до 30.",
"type": "integer",
"minimum": 4,
"maximum": 30,
"default": 5
},
"generate_audio": {
"title": "Генерировать аудио",
"description": "Если true, модель выдаёт видео с синхронизированным аудио (речь, SFX, музыка).",
"type": "boolean",
"default": true
}
}
}{
"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 для создания невероятного искусства.