🪂全能image提示词生成@炮老师的小课堂
An LLM that writes GPT Image 2-grade prompts, and doesn't draw a pixel
- 🎭 蒙版
- 🖼️ 参考图1
- 🖼️ 参考图2
- 🖼️ 参考图3
- 🖼️ 参考图4
- 🖼️ 参考图5
- 🖼️ 参考图6
- 🖼️ 参考图7
- 🖼️ 参考图8
- 🖼️ 参考图9
- 🪂 最终图像提示词
- 🗂️ 识别分类
- 🧩 使用模板
- 📑 参数与优化分析
- 📄 LLM完整响应
- ℹ️ 处理信息
The display name says "全能image提示词生成" and the node description adds a line that saves you five minutes of confusion: 本节点不出图 - this node does not output images. DapaoAllroundImagePromptNode is a prompt writer. It calls a dapaoAI LLM, applies a structured design template built for GPT Image 2-era models, and hands you back a finished prompt plus the analysis behind it. If you've spent an afternoon fighting a text-rendering image model with a rambling English paragraph, you already know why this exists: these models reward a structured, template-shaped prompt, and this node is the translation layer.
What you feed it
The required side is where the value lives:
- 🔑 API密钥 and 🤖 LLM模型 - dapaoAI key, and the same 11-model menu as the rest of the pack (default
gemini-3.7-flash). - 🎛️ 任务模式 - seven modes: auto-detect, new image prompt, optimize existing prompt, create from reference images, image edit prompt, masked local edit, and diagnose & rewrite. Auto-detect guesses from context.
- 🗂️ 设计分类 (18 categories: UI mockups, product commercial visual, maps & routes, posters & campaigns, character design, split comics, grids…) and 🧩 具体模板 (94 named templates like "学术论文配图|图形摘要" or "图标游戏与素材|复古拟物图标集").
- 🎯 目标图像模型 - so the prompt's shape matches the destination: GPT Image 2 / OpenAI-compatible (default), generic Image, Banana / Gemini Image, Midjourney, FLUX, Stable Diffusion.
- 📝 原始图像需求 - your rough idea in plain words.
- Plus ratio, prompt format (structured JSON / structured natural language / terse), detail density, temperature (0.35 default), max tokens (6144), Top_P, a cache-only seed, and timeout.
The optional side is where it gets clever: 📝 需要优化的现有提示词 for optimize/diagnose jobs, 🔤 画面准确文字与数据 for text that must survive verbatim (titles, prices, labels - the thing GPT Image is best and worst at), 🔒 必须保留 and 🚫 禁止出现 constraint boxes, a 🎭 蒙版 (MASK) for local-edit prompts where white = editable, and up to 🖼️ 参考图1–9 fed to the LLM for analysis.
What comes out
Six outputs, but really you care about two: 🪂 最终图像提示词 (wire this into your actual image node) and 📑 参数与优化分析 (why it made the choices it did - genuinely useful when the result misses). The others - 🗂️ 识别分类, 🧩 使用模板, 📄 LLM完整响应, ℹ️ 处理信息 - are breadcrumbs for debugging and for building the same prompt deterministically later.
The honest take
This is a "prompt enhancer" in the classic LLM-in-the-graph sense that llm-in-comfyui.md covers, and the usual caveats apply: the LLM can add detail you didn't ask for, and it can't see inside the image model's head. The template system is the real differentiator - 94 structured templates is a lot of scaffolding for prompts that would otherwise come out as generic prose. Where people get burned: the seed only controls ComfyUI caching, so re-running with a new seed doesn't change the prompt - change a setting or flip "每次重新生成提示词"-style controls if the node caches. And the 随机种 here explicitly says "仅控制ComfyUI缓存,不发送给接口" - that's not a bug.
Install
ComfyUI Manager → "dapaoAPI", or:
cd ComfyUI/custom_nodes
git clone https://github.com/paolaoshi/ComfyUI-dapaoAPI.git
cd ComfyUI-dapaoAPI
pip install -r requirements.txt
Restart, get a dapaoAI key (register at api.dapaoai.com, buy a redeem code, apply for a key in the default group), paste it in, and pipe the final-prompt output into the image node of your choice. Chinese-only UI, consistent with the pack.
Inputs (32)
| Name | Type | Default | Description |
|---|---|---|---|
| 🔑 API密钥 | STRING | 密钥只用于请求 https://api.dapaoai.com。 | |
| 🤖 LLM模型 | COMBO | gemini-3.7-flash | 11 options: gpt-5.5, gpt-5.6-luna, gpt-5.6-terra, gpt-5.6-sol, claude-fable-5, claude-opus-4-8, +5 |
| 🎛️ 任务模式 | COMBO | 自动识别 | 7 options: 自动识别, 新建图像提示词, 优化现有提示词, 参考图创作提示词, 图像编辑提示词, 蒙版局部编辑提示词, +1 |
| 🗂️ 设计分类 | COMBO | 自动识别 | 18 options: 自动识别, UI界面样机, 产品商业视觉, 地图与路线, 幻灯片与视觉文档, 海报与Campaign, +12 |
| 🧩 具体模板 | COMBO | 自动选择模板 | 94 options: 自动选择模板, 学术论文配图|图形摘要, 学术论文配图|机理示意图, 学术论文配图|方法流程总览图, 学术论文配图|多条件对比图, 学术论文配图|神经网络架构图, +88 |
| 🎯 目标图像模型 | COMBO | GPT Image 2 / OpenAI兼容 | 6 options: GPT Image 2 / OpenAI兼容, 通用Image模型, Banana / Gemini Image, Midjourney, FLUX, Stable Diffusion |
| 🌐 输出中文提示词 | BOOLEAN | false | 关闭时默认输出英文提示词,开启后输出简体中文。 |
| 📝 原始图像需求 | STRING | 设计一张构图清晰、信息层级明确、细节专业的商业视觉图片。 | — |
| 📐 图片比例 | COMBO | 自动 | 9 options: 自动, 1:1, 16:9, 9:16, 4:3, 3:4, +3 |
| 📚 提示词格式 | COMBO | 自动 | 4 options: 自动, 结构化JSON, 结构化自然语言, 精简自然语言 |
| 🧠 细节密度 | COMBO | 标准 | 3 options: 简洁, 标准, 专业高密度 |
| 🌡️ 温度 | FLOAT | 0.350–2 | — |
| 📝 最大输出令牌 | INT | 6144512–65536 | — |
| 🎲 Top_P | FLOAT | 1.000–1 | — |
| 🎲 随机种 | INT | 00–18446744073709550000 | 仅控制ComfyUI缓存,不发送给接口。 |
| ⌛ 请求超时 | INT | 30030–1200 | — |
| 📝 需要优化的现有提示词opt | STRING | 优化、诊断或改写任务使用。 | |
| 🔤 画面准确文字与数据opt | STRING | 填写必须逐字保留的标题、价格、数据、标签或公式。 | |
| 🔒 必须保留opt | STRING | 参考图身份、产品结构、Logo、构图、背景等不可改变内容。 | |
| 🚫 禁止出现opt | STRING | 不希望出现的对象、风格、文字或错误。 | |
| 📎 参考素材用途说明opt | STRING | 说明每张参考图控制身份、产品、风格、构图、姿势或背景中的哪一项。 | |
| 🎭 蒙版opt | MASK | 局部编辑提示词使用;白色区域表示允许修改。 | |
| 🚫 出错时跳过opt | BOOLEAN | false | — |
| 🖼️ 参考图1opt | IMAGE | 给LLM分析的参考图1,最多9张。 | |
| 🖼️ 参考图2opt | IMAGE | 给LLM分析的参考图2,最多9张。 | |
| 🖼️ 参考图3opt | IMAGE | 给LLM分析的参考图3,最多9张。 | |
| 🖼️ 参考图4opt | IMAGE | 给LLM分析的参考图4,最多9张。 | |
| 🖼️ 参考图5opt | IMAGE | 给LLM分析的参考图5,最多9张。 | |
| 🖼️ 参考图6opt | IMAGE | 给LLM分析的参考图6,最多9张。 | |
| 🖼️ 参考图7opt | IMAGE | 给LLM分析的参考图7,最多9张。 | |
| 🖼️ 参考图8opt | IMAGE | 给LLM分析的参考图8,最多9张。 | |
| 🖼️ 参考图9opt | IMAGE | 给LLM分析的参考图9,最多9张。 |
Outputs (6)
| Name | Type | Description |
|---|---|---|
| 🪂 最终图像提示词 | STRING | — |
| 🗂️ 识别分类 | STRING | — |
| 🧩 使用模板 | STRING | — |
| 📑 参数与优化分析 | STRING | — |
| 📄 LLM完整响应 | STRING | — |
| ℹ️ 处理信息 | STRING | — |