
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
استخدم سير العمل هذا من الكود
كل سير عمل في Comfy هو رسم بياني بصيغة JSON. الحمولة أدناه هي هذا سير العمل بالضبط كما يشغله ComfyUI — يمكنك جلبه من الرابط، حفظه في نظام التحكم بالإصدارات، أو تحميله في ComfyUI وتشغيله عقدة تلو الأخرى.
شغّله من TypeScript أو Python باستخدام Comfy SDK. نفس الكود يعمل على Comfy Cloud أو ComfyUI الذي تستضيفه بنفسك — فقط عنوان URL الأساسي يتغير.
// 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");يأخذ SDK سير العمل بصيغة API: افتح هذا سير العمل في ComfyUI واستخدم ملف → تصدير سير العمل (API).
يتطلب الوصول إلى Comfy Cloud API خطة تتضمن مفتاح API.















