
This workflow generates high-quality images from text prompts using Qwen Image 2.1, an open-weight diffusion model known for strong layout and typography rendering and native 2K (2048×2048) output. At its core is a custom Qwen generator node (UUID: c291ceec-b98f-4751-9d0b-7bc288f27b30) that loads either qwen_image_2.1_bf16.safetensors or the memory-saving qwen_image_2.1_int8_convrot.safetensors. By default, it produces a single 1024×1024 image in about 25 sampling steps, with support for transparent (alpha) backgrounds when saved as PNG. ResolutionSelector sets the canvas size, and SaveImageAdvanced handles file output and metadata.
Technically, the subgraph encapsulates prompt conditioning and a built-in sampler inside the Qwen node, so you don’t need separate sampler nodes. You provide a prompt (and optionally a negative prompt if exposed), choose a resolution, and the node performs the full diffusion pass. The workflow’s MarkdownNote/Note nodes document on-canvas instructions, while SaveImageAdvanced ensures your output is written with correct color and alpha handling. This makes it ideal for fast concept visualizations, posters, and assets that benefit from clean text and layout—without leaving the ComfyUI canvas.
API
Use este workflow a partir do código
Todo workflow Comfy é um grafo JSON. O payload abaixo é este workflow, exatamente como o ComfyUI executa — obtenha-o pela URL, mantenha-o no controle de versão ou carregue-o no ComfyUI e execute nó por nó.
Execute a partir de TypeScript ou Python com o Comfy SDK. O mesmo código serve para o Comfy Cloud ou um ComfyUI hospedado por você — apenas a URL base muda.
// Install (beta)
npm i @comfyorg/sdk
// Run this workflow (TypeScript)
import { Comfy } from "@comfyorg/sdk";
const client = new Comfy({ apiKey: "comfyui-..." });
const wf = await client.workflows.fromFile("workflow_api.json");
const job = await client.run(wf);
await job.getOutputs("<output-node-id>")[0].toFile("output.png");O SDK utiliza um workflow no formato API: abra este workflow no ComfyUI e use Arquivo → Exportar Workflow (API).
O acesso à API do Comfy Cloud requer um plano com chave de API.















