Используйте API RunComfy для запуска ideogram/ideogram-v2/generate. Допустимые входы и выходы см. в схеме.
curl --request POST \
--url https://model-api.runcomfy.net/v1/models/ideogram/ideogram-v2/generate \
--header "Content-Type: application/json" \
--header "Authorization: Bearer <token>" \
--data '{
"prompt": "A photo of a fashion lookbook spread with a sustainable clothing item. There is a natural cotton dress with a linen tag attached to it. The tag has the text \"Wear the Change You Wish to See\". The background is a sunlit forest. The styling and setting have soft, earthy tones. The text is subtle but stylish, blending into the fabric's texture. The overall look is modern, mindful, and eco-conscious."
}'Задайте для переменной окружения 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/ideogram/ideogram-v2/generate \
--header "Content-Type: application/json" \
--header "Authorization: Bearer <token>" \
--data '{
"prompt": "A photo of a fashion lookbook spread with a sustainable clothing item. There is a natural cotton dress with a linen tag attached to it. The tag has the text \"Wear the Change You Wish to See\". The background is a sunlit forest. The styling and setting have soft, earthy tones. The text is subtle but stylish, blending into the fabric's texture. The overall look is modern, mindful, and eco-conscious."
}'Текущее состояние по 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 photo of a fashion lookbook spread with a sustainable clothing item. There is a natural cotton dress with a linen tag attached to it. The tag has the text \"Wear the Change You Wish to See\". The background is a sunlit forest. The styling and setting have soft, earthy tones. The text is subtle but stylish, blending into the fabric's texture. The overall look is modern, mindful, and eco-conscious."
},
"style": {
"title": "Стиль",
"description": "Выберите «Авто», «Общий», «Реалистичный», «Дизайн», «рендер_3D» или «Аниме»; по умолчанию: авто.",
"type": "string",
"enum": [
"auto",
"general",
"realistic",
"design",
"render_3D",
"anime"
],
"default": "auto"
},
"aspect_ratio": {
"title": "Соотношение сторон (Ш:В)",
"description": "Выберите одно из одиннадцати перечисленных соотношений сторон; по умолчанию: 1:1.",
"type": "string",
"enum": [
"3:1",
"16:9",
"16:10",
"3:2",
"4:3",
"1:1",
"3:4",
"2:3",
"10:16",
"9:16",
"1:3"
],
"default": "1:1"
},
"expand_prompt": {
"title": "Magic Prompt",
"description": "Автоматически дополняет промпт дополнительными деталями; функция включена по умолчанию.",
"type": "boolean",
"default": true
},
"negative_prompt": {
"title": "Негативный промпт",
"description": "Необязательный текст, описывающий элементы, которых следует избегать в сгенерированном изображении.",
"type": "string",
"default": ""
},
"seed": {
"title": "Сид",
"description": "Целочисленный сид от 0 до 2147483647 для воспроизведения или изменения результата; по умолчанию: 166035072.",
"type": "integer",
"default": 166035072,
"maximum": 2147483647,
"minimum": 0
}
}
}{
"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 для создания невероятного искусства.