Use a API RunComfy para executar qwen/qwen-edit-2509/lora/inscene. Para entradas e saídas aceitas, consulte o esquema.
curl --request POST \
--url https://model-api.runcomfy.net/v1/models/qwen/qwen-edit-2509/lora/inscene \
--header "Content-Type: application/json" \
--header "Authorization: Bearer <token>" \
--data '{
"prompt": "Make a shot in the same scene of the bottle being tilted further, zoom in slightly to capture the wine pouring into the glass as the level rises and its color becomes more pronounced, shift focus to the man's facial expression as he concentrates on the pouring, keeping the candle steady in the background",
"image_urls": [
"https://playgrounds-storage-public.runcomfy.net/tools/7207/media-files/1-1-input.jpg"
]
}'Defina a variável de ambiente YOUR_API_TOKEN com sua chave de API (gerenciamento no Perfil) e inclua em cada solicitação um token Bearer no cabeçalho Authorization : Authorization: Bearer $YOUR_API_TOKEN.
Envie um trabalho de geração assíncrono e receba imediatamente um request_id e URLs para status, resultados e cancelamento.
curl --request POST \
--url https://model-api.runcomfy.net/v1/models/qwen/qwen-edit-2509/lora/inscene \
--header "Content-Type: application/json" \
--header "Authorization: Bearer <token>" \
--data '{
"prompt": "Make a shot in the same scene of the bottle being tilted further, zoom in slightly to capture the wine pouring into the glass as the level rises and its color becomes more pronounced, shift focus to the man's facial expression as he concentrates on the pouring, keeping the candle steady in the background",
"image_urls": [
"https://playgrounds-storage-public.runcomfy.net/tools/7207/media-files/1-1-input.jpg"
]
}'Obtém o estado atual de um request_id ("in_queue", "in_progress", "completed" ou "cancelled").
curl --request GET \
--url https://model-api.runcomfy.net/v1/requests/{request_id}/status \
--header "Authorization: Bearer <token>"Obtém as saídas finais e metadados do request_id; se o trabalho não estiver concluído, a resposta retorna o estado atual para continuar o polling.
curl --request GET \
--url https://model-api.runcomfy.net/v1/requests/{request_id}/result \
--header "Authorization: Bearer <token>"Cancela um trabalho na fila por request_id; trabalhos em andamento não podem ser cancelados.
curl --request POST \
--url https://model-api.runcomfy.net/v1/requests/{request_id}/cancel \
--header "Authorization: Bearer <token>"Forneça uma URL HTTPS publicamente acessível. O host deve permitir buscas no servidor (sem login/cookies), sem limite de taxa agressivo ou bloqueio de bots. Recomendado: imagens ≤ 50 MB (~4K), vídeos ≤ 100 MB (~2–5 min em 720p). Para ativos privados, URLs estáveis ou pré-assinadas.
{
"type": "object",
"title": "Esquema de entrada",
"required": [
"prompt",
"image_urls"
],
"properties": {
"prompt": {
"title": "Prompt",
"description": "Descrição da alteração que será aplicada à imagem.",
"type": "string",
"default": "Make a shot in the same scene of the bottle being tilted further, zoom in slightly to capture the wine pouring into the glass as the level rises and its color becomes more pronounced, shift focus to the man's facial expression as he concentrates on the pouring, keeping the candle steady in the background"
},
"image_urls": {
"title": "Imagens",
"description": "Lista contendo exatamente uma URL da imagem que será editada.",
"type": "array",
"items": {
"type": "string",
"format": "image_uri"
},
"maxItems": 1,
"minItems": 1,
"default": [
"https://playgrounds-storage-public.runcomfy.net/tools/7207/media-files/1-1-input.jpg"
]
},
"image_size": {
"title": "Tamanho da imagem",
"description": "Tamanho da imagem gerada.",
"type": "string",
"enum": [
"square_hd",
"square",
"portrait_4_3",
"portrait_16_9",
"landscape_4_3",
"landscape_16_9"
],
"default": "landscape_16_9"
},
"num_inference_steps": {
"title": "Número de etapas de inferência",
"description": "Número de etapas de inferência; valores de 2 a 50.",
"type": "integer",
"minimum": 2,
"maximum": 50,
"default": 28
},
"guidance_scale": {
"title": "Intensidade da orientação",
"description": "Intensidade com que o prompt é seguido; valores de 0 a 20.",
"type": "float",
"minimum": 0,
"maximum": 20,
"default": 4
},
"num_images": {
"title": "Número de imagens",
"description": "Quantidade de imagens a gerar; valores de 1 a 4.",
"type": "integer",
"default": 4,
"minimum": 1,
"maximum": 4
},
"output_format": {
"title": "Formato de saída",
"description": "Formato do arquivo gerado: `jpeg` ou `png`.",
"type": "string",
"enum": [
"jpeg",
"png"
],
"default": "png"
},
"seed": {
"title": "Seed",
"description": "Seed inteiro usado na geração; o valor padrão é 4571632.",
"type": "integer",
"default": 4571632
},
"negative_prompt": {
"title": "Prompt negativo",
"description": "Descrição opcional dos elementos que devem ser evitados.",
"type": "string",
"default": " "
}
}
}{
"output": {
"type": "object",
"properties": {
"image": {
"type": "string",
"format": "uri",
"description": "URL de imagem única"
},
"video": {
"type": "string",
"format": "uri",
"description": "URL de vídeo único"
},
"images": {
"type": "array",
"description": "várias URLs de imagem",
"items": {
"type": "string",
"format": "uri"
}
},
"videos": {
"type": "array",
"description": "várias URLs de vídeo",
"items": {
"type": "string",
"format": "uri"
}
}
}
}
}RunComfy é a principal ComfyUI plataforma, oferecendo ComfyUI online ambiente e serviços, juntamente com fluxos de trabalho do ComfyUI apresentando visuais impressionantes. RunComfy também oferece AI Models, permitindo que artistas utilizem as mais recentes ferramentas de AI para criar arte incrível.