Используйте API RunComfy для запуска qwen/qwen-image/qwen-image-edit-2511. Допустимые входы и выходы см. в схеме.
curl --request POST \
--url https://model-api.runcomfy.net/v1/models/qwen/qwen-image/qwen-image-edit-2511 \
--header "Content-Type: application/json" \
--header "Authorization: Bearer <token>" \
--data '{
"prompt": "the woman is kissing the face of this monster",
"image_urls": [
"https://playgrounds-storage-public.runcomfy.net/tools/7306/media-files/input-1-1.png",
"https://playgrounds-storage-public.runcomfy.net/tools/7306/media-files/input-1-2.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/qwen/qwen-image/qwen-image-edit-2511 \
--header "Content-Type: application/json" \
--header "Authorization: Bearer <token>" \
--data '{
"prompt": "the woman is kissing the face of this monster",
"image_urls": [
"https://playgrounds-storage-public.runcomfy.net/tools/7306/media-files/input-1-1.png",
"https://playgrounds-storage-public.runcomfy.net/tools/7306/media-files/input-1-2.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",
"image_urls"
],
"properties": {
"prompt": {
"title": "Промпт",
"description": "",
"type": "string",
"default": "the woman is kissing the face of this monster"
},
"negative_prompt": {
"title": "Негативный промпт",
"description": "",
"type": "string",
"default": ""
},
"image_size": {
"title": "Размер изображения",
"description": "",
"type": "string",
"enum": [
"square_hd",
"square",
"portrait_4_3",
"portrait_16_9",
"landscape_4_3",
"landscape_16_9"
],
"default": "square"
},
"image_urls": {
"title": "Изображения",
"description": "",
"type": "array",
"items": {
"type": "string",
"format": "image_uri"
},
"default": [
"https://playgrounds-storage-public.runcomfy.net/tools/7306/media-files/input-1-1.png",
"https://playgrounds-storage-public.runcomfy.net/tools/7306/media-files/input-1-2.png"
],
"maxItems": 10,
"minItems": 1
},
"num_inference_steps": {
"title": "Количество шагов инференса",
"description": "Количество выполняемых шагов инференса.",
"type": "integer",
"minimum": 1,
"maximum": 50,
"default": 28
},
"guidance_scale": {
"title": "Сила следования промпту",
"description": "Определяет, насколько строго генерация следует промпту.",
"type": "float",
"minimum": 1,
"maximum": 20,
"default": 4.5
},
"seed": {
"title": "Сид",
"description": "",
"type": "integer"
},
"output_format": {
"title": "Формат вывода",
"description": "Формат сгенерированного изображения.",
"type": "string",
"enum": [
"jpeg",
"png",
"webp"
],
"default": "png"
}
}
}{
"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 для создания невероятного искусства.