Используйте API RunComfy для запуска bytedance/seedream-4-5/text-to-image. Допустимые входы и выходы см. в схеме.
curl --request POST \
--url https://model-api.runcomfy.net/v1/models/bytedance/seedream-4-5/text-to-image \
--header "Content-Type: application/json" \
--header "Authorization: Bearer <token>" \
--data '{
"prompt": "A hyper-realistic street photograph of an old man walking alone on a quiet city street, captured with a Sony Alpha a9 II and Sony FE 200�?00mm f/5.6�?.3 G OSS lens. Shot in natural light, with ultra-detailed cinematic composition and muted, desaturated tones. The atmosphere is melancholic and introspective, evoking solitude and the passage of time. Styled like cinematic 35mm film photography, with soft depth of field, realistic textures, and emotional lighting that feels raw and human."
}'Задайте для переменной окружения 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/seedream-4-5/text-to-image \
--header "Content-Type: application/json" \
--header "Authorization: Bearer <token>" \
--data '{
"prompt": "A hyper-realistic street photograph of an old man walking alone on a quiet city street, captured with a Sony Alpha a9 II and Sony FE 200�?00mm f/5.6�?.3 G OSS lens. Shot in natural light, with ultra-detailed cinematic composition and muted, desaturated tones. The atmosphere is melancholic and introspective, evoking solitude and the passage of time. Styled like cinematic 35mm film photography, with soft depth of field, realistic textures, and emotional lighting that feels raw and human."
}'Текущее состояние по 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": "Рекомендуется не более 600 английских слов. Слишком длинный промпт может рассеять информацию: модель пропустит детали и сосредоточится на главном.",
"type": "string",
"default": "A hyper-realistic street photograph of an old man walking alone on a quiet city street, captured with a Sony Alpha a9 II and Sony FE 200�?00mm f/5.6�?.3 G OSS lens. Shot in natural light, with ultra-detailed cinematic composition and muted, desaturated tones. The atmosphere is melancholic and introspective, evoking solitude and the passage of time. Styled like cinematic 35mm film photography, with soft depth of field, realistic textures, and emotional lighting that feels raw and human."
},
"resolution": {
"title": "Разрешение",
"description": "Для `2K` и `4K` ширину и высоту определяет модель. Опишите в промпте нужные пропорции, форму или назначение. Остальные варианты задают фиксированные размеры.",
"type": "string",
"enum": [
"2K",
"4K",
"2048x2048 (1:1)",
"2304x1728 (4:3)",
"1728x2304 (3:4)",
"2560x1440 (16:9)",
"1440x2560 (9:16)",
"2496x1664 (3:2)",
"1664x2496 (2:3)",
"3024x1296 (21:9)",
"4096x4096 (1:1)"
],
"default": "2048x2048 (1:1)"
}
}
}{
"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 для создания невероятного искусства.