Используйте API RunComfy для запуска bytedance/seedance-v1.5-pro/image-to-video. Допустимые входы и выходы см. в схеме.
curl --request POST \
--url https://model-api.runcomfy.net/v1/models/bytedance/seedance-v1.5-pro/image-to-video \
--header "Content-Type: application/json" \
--header "Authorization: Bearer <token>" \
--data '{
"prompt": "A gentle breeze blows softly, and the real girl's body remains stable. Her long hair, including the hair below, flutters naturally. The anime girl on the phone screen first closes her eyes for 2 seconds, then slowly opens them, with her mouth remaining still and silent. Her hair, including the hair below, also flutters naturally in the breeze in perfect synchronization. The rhythm and direction of the hair fluttering of the two girls are exactly the same. The subway train moves rapidly, emitting a low rumbling echo. ",
"first_frame_image_url": "https://playgrounds-storage-public.runcomfy.net/tools/7272/media-files/input-1-1.png"
}'Задайте для переменной окружения 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-v1.5-pro/image-to-video \
--header "Content-Type: application/json" \
--header "Authorization: Bearer <token>" \
--data '{
"prompt": "A gentle breeze blows softly, and the real girl's body remains stable. Her long hair, including the hair below, flutters naturally. The anime girl on the phone screen first closes her eyes for 2 seconds, then slowly opens them, with her mouth remaining still and silent. Her hair, including the hair below, also flutters naturally in the breeze in perfect synchronization. The rhythm and direction of the hair fluttering of the two girls are exactly the same. The subway train moves rapidly, emitting a low rumbling echo. ",
"first_frame_image_url": "https://playgrounds-storage-public.runcomfy.net/tools/7272/media-files/input-1-1.png"
}'Текущее состояние по 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",
"first_frame_image_url"
],
"properties": {
"prompt": {
"title": "Промпт",
"description": "Промпт должен содержать менее 500 символов для лучших результатов.",
"type": "string",
"default": "A gentle breeze blows softly, and the real girl's body remains stable. Her long hair, including the hair below, flutters naturally. The anime girl on the phone screen first closes her eyes for 2 seconds, then slowly opens them, with her mouth remaining still and silent. Her hair, including the hair below, also flutters naturally in the breeze in perfect synchronization. The rhythm and direction of the hair fluttering of the two girls are exactly the same. The subway train moves rapidly, emitting a low rumbling echo. "
},
"first_frame_image_url": {
"title": "Начальное изображение",
"description": "",
"type": "string",
"validations": [
{
"validation_rule": "width_pixels<",
"validation_value": 6000,
"validation_error": "Ширина и высота загруженного изображения не должны превышать 6000 пикселей."
},
{
"validation_rule": "height_pixels<",
"validation_value": 6000,
"validation_error": "Ширина и высота загруженного изображения не должны превышать 6000 пикселей."
},
{
"validation_rule": "width_pixels>",
"validation_value": 300,
"validation_error": "Ширина и высота загруженного изображения не должны быть менее 300 пикселей."
},
{
"validation_rule": "height_pixels>",
"validation_value": 300,
"validation_error": "Ширина и высота загруженного изображения не должны быть менее 300 пикселей."
},
{
"validation_rule": "width/height>",
"validation_value": 0.4,
"validation_error": "Соотношение сторон должно быть от 0,4 до 2,5."
},
{
"validation_rule": "width/height<",
"validation_value": 2.5,
"validation_error": "Соотношение сторон должно быть от 0,4 до 2,5."
},
{
"validation_rule": "file_size_mb<",
"validation_value": 30,
"validation_error": "Размер файла должен быть менее 30 МБ."
}
],
"default": "https://playgrounds-storage-public.runcomfy.net/tools/7272/media-files/input-1-1.png"
},
"resolution": {
"title": "Разрешение",
"description": "",
"type": "string",
"enum": [
"480p",
"720p",
"1080p"
],
"default": "480p"
},
"ratio": {
"title": "Соотношение сторон (Ш:В)",
"description": "",
"type": "string",
"enum": [
"16:9",
"4:3",
"1:1",
"3:4",
"9:16",
"21:9",
"adaptive"
],
"default": "adaptive"
},
"duration": {
"title": "Длительность",
"description": "",
"type": "integer",
"enum": [
4,
5,
6,
7,
8,
9,
10,
11,
12
],
"default": 5
},
"generate_audio": {
"title": "Генерировать аудио",
"description": "",
"type": "boolean",
"default": true
},
"camera_fixed": {
"title": "Фиксированная камера",
"description": "Определяет, остаётся ли камера неподвижной в видео.",
"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 для создания невероятного искусства.