Используйте API RunComfy для запуска community/infinite-talk/image-to-video. Допустимые входы и выходы см. в схеме.
curl --request POST \
--url https://model-api.runcomfy.net/v1/models/community/infinite-talk/image-to-video \
--header "Content-Type: application/json" \
--header "Authorization: Bearer <token>" \
--data '{
"241_positive_prompt": "a woman is talking and waving hands",
"284_image": "Runcomfy_example_1278_1.png",
"125_audio": "Runcomfy_example_1278_1.mp3"
}'Задайте для переменной окружения 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/community/infinite-talk/image-to-video \
--header "Content-Type: application/json" \
--header "Authorization: Bearer <token>" \
--data '{
"241_positive_prompt": "a woman is talking and waving hands",
"284_image": "Runcomfy_example_1278_1.png",
"125_audio": "Runcomfy_example_1278_1.mp3"
}'Текущее состояние по 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": [
"241_positive_prompt",
"284_image",
"125_audio"
],
"properties": {
"284_image": {
"title": "Image",
"description": "",
"type": "string",
"default": "Runcomfy_example_1278_1.png"
},
"125_audio": {
"title": "Audio",
"description": "",
"type": "string",
"default": "Runcomfy_example_1278_1.mp3"
},
"241_positive_prompt": {
"title": "Prompt",
"description": "",
"type": "string",
"default": "a woman is talking and waving hands"
},
"245_valuex246_value": {
"title": "Resolution (W:H)",
"description": "",
"type": "string",
"enum": [
"480x480 (1:1)",
"720x720 (1:1)",
"480x720 (2:3)",
"720x480 (3:2)",
"540x960 (9:16)",
"576x1024 (9:16)",
"720x1280 (9:16)",
"960x540 (16:9)",
"1024x576 (16:9)",
"1280x720 (16:9)"
],
"default": "720x720 (1:1)"
},
"270_value": {
"title": "Number of Frames",
"description": "",
"type": "integer",
"enum": [
125,
250
],
"default": 125
},
"128_seed": {
"title": "Seed",
"description": "",
"type": "integer",
"default": 96860978
},
"128_steps": {
"title": "Steps",
"description": "Number of denoising iterations; more steps refine detail and stability but take longer.",
"type": "integer",
"default": 7,
"minimum": 6,
"maximum": 20
},
"128_cfg": {
"title": "Guidance Scale",
"description": "Controls how strongly the output adheres to the prompt versus allowing creative variation.",
"type": "float",
"default": 1,
"minimum": 0.6,
"maximum": 2
},
"128_shift": {
"title": "Shift",
"description": "Offsets the diffusion sampling schedule, trading stability for stronger motion/style as the value increases.",
"type": "float",
"default": 11,
"minimum": 1,
"maximum": 15
},
"159_end_time": {
"title": "Audio Duration",
"description": "Trim the audio duration, up to 10 seconds.",
"type": "string",
"enum": [
"0:10"
]
}
}
}{
"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 для создания невероятного искусства.