Используйте API RunComfy для запуска ltx/ltx-2/pro/text-to-video. Допустимые входы и выходы см. в схеме.
curl --request POST \
--url https://model-api.runcomfy.net/v1/models/ltx/ltx-2/pro/text-to-video \
--header "Content-Type: application/json" \
--header "Authorization: Bearer <token>" \
--data '{
"prompt": "A photorealistic portrait of a stylish young woman sitting at an outdoor Parisian café with red woven bistro chairs and circular white tables. She has long, smooth, straight, honey-blonde hair, parted neatly in the middle. She is wearing a classic black beret, a crisp white button-up shirt, and a dark blue tie with diagonal gold stripes. Over her shirt, she wears a slightly oversized black leather jacket. She accessorizes with pearl and gold hoop earrings on one ear. Her makeup features sharp, winged eyeliner, defined eyebrows, and a natural nude lip color, giving her a chic, confident look. The scene captures a soft afternoon ambient light, with clear reflections on the glass window behind her. Through the window, vintage-style golden lettering that reads \"ROYH...\" is visible, partially cut off due to her posture. In the background, a Parisian street is subtly mirrored in the glass. The camera angle is eye-level, front-facing and slightly to the right, creating a natural, elegant composition. The color palette is warm and clean with a touch of Parisian café ambience. Extremely detailed, 8k resolution, sharp focus, shallow depth of field, photorealistic style, natural lighting, cinematic atmosphere, high fashion editorial aesthetic, 4K film grain."
}'Задайте для переменной окружения 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/ltx/ltx-2/pro/text-to-video \
--header "Content-Type: application/json" \
--header "Authorization: Bearer <token>" \
--data '{
"prompt": "A photorealistic portrait of a stylish young woman sitting at an outdoor Parisian café with red woven bistro chairs and circular white tables. She has long, smooth, straight, honey-blonde hair, parted neatly in the middle. She is wearing a classic black beret, a crisp white button-up shirt, and a dark blue tie with diagonal gold stripes. Over her shirt, she wears a slightly oversized black leather jacket. She accessorizes with pearl and gold hoop earrings on one ear. Her makeup features sharp, winged eyeliner, defined eyebrows, and a natural nude lip color, giving her a chic, confident look. The scene captures a soft afternoon ambient light, with clear reflections on the glass window behind her. Through the window, vintage-style golden lettering that reads \"ROYH...\" is visible, partially cut off due to her posture. In the background, a Parisian street is subtly mirrored in the glass. The camera angle is eye-level, front-facing and slightly to the right, creating a natural, elegant composition. The color palette is warm and clean with a touch of Parisian café ambience. Extremely detailed, 8k resolution, sharp focus, shallow depth of field, photorealistic style, natural lighting, cinematic atmosphere, high fashion editorial aesthetic, 4K film grain."
}'Текущее состояние по 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"
],
"properties": {
"prompt": {
"title": "Промпт",
"description": "Обязательная инструкция с описанием объекта, действия, окружающей среды, визуального стиля и движения камеры.",
"type": "string",
"default": "A photorealistic portrait of a stylish young woman sitting at an outdoor Parisian café with red woven bistro chairs and circular white tables. She has long, smooth, straight, honey-blonde hair, parted neatly in the middle. She is wearing a classic black beret, a crisp white button-up shirt, and a dark blue tie with diagonal gold stripes. Over her shirt, she wears a slightly oversized black leather jacket. She accessorizes with pearl and gold hoop earrings on one ear. Her makeup features sharp, winged eyeliner, defined eyebrows, and a natural nude lip color, giving her a chic, confident look. The scene captures a soft afternoon ambient light, with clear reflections on the glass window behind her. Through the window, vintage-style golden lettering that reads \"ROYH...\" is visible, partially cut off due to her posture. In the background, a Parisian street is subtly mirrored in the glass. The camera angle is eye-level, front-facing and slightly to the right, creating a natural, elegant composition. The color palette is warm and clean with a touch of Parisian café ambience. Extremely detailed, 8k resolution, sharp focus, shallow depth of field, photorealistic style, natural lighting, cinematic atmosphere, high fashion editorial aesthetic, 4K film grain."
},
"duration": {
"title": "Длительность",
"description": "Продолжительность видео в секундах. Точные значения: 6, 8 и 10.",
"type": "integer",
"enum": [
6,
8,
10
],
"default": 6
},
"resolution": {
"title": "Разрешение",
"description": "Выходное разрешение. Точные значения: `1080p`, `1440p` и `2160p`.",
"type": "string",
"enum": [
"1080p",
"1440p",
"2160p"
],
"default": "1080p"
},
"aspect_ratio": {
"title": "Соотношение сторон (Ш:В)",
"description": "Выходное соотношение сторон. Единственное поддерживаемое значение — `16:9`.",
"type": "string",
"enum": [
"16:9"
],
"default": "16:9"
},
"fps": {
"title": "Кадров в секунду",
"description": "Выходная частота кадров. Точные значения — 25 и 50 FPS.",
"type": "integer",
"enum": [
25,
50
],
"default": 25
},
"generate_audio": {
"title": "Создавать аудио",
"description": "Генерировать ли звук вместе с видео. Это логическое значение по умолчанию равно `true`.",
"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 для создания невероятного искусства.