Nodes/ComfyUI-dapaoAPI/🪂全能image提示词生成@炮老师的小课堂
ComfyUI Node

🪂全能image提示词生成@炮老师的小课堂

An LLM that writes GPT Image 2-grade prompts, and doesn't draw a pixel

By paolaoshi·Created 10 months ago·Updated a day ago· 217
🪂全能image提示词生成@炮老师的小课堂
  • 🎭 蒙版
  • 🖼️ 参考图1
  • 🖼️ 参考图2
  • 🖼️ 参考图3
  • 🖼️ 参考图4
  • 🖼️ 参考图5
  • 🖼️ 参考图6
  • 🖼️ 参考图7
  • 🖼️ 参考图8
  • 🖼️ 参考图9
  • 🪂 最终图像提示词
  • 🗂️ 识别分类
  • 🧩 使用模板
  • 📑 参数与优化分析
  • 📄 LLM完整响应
  • ℹ️ 处理信息
🔑 API密钥
🤖 LLM模型gemini-3.7-flash
🎛️ 任务模式自动识别
🗂️ 设计分类自动识别
🧩 具体模板自动选择模板
🎯 目标图像模型GPT Image 2 / OpenAI兼容
🌐 输出中文提示词false
📝 原始图像需求设计一张构图清晰、信息层级明确、细节专业的商业视觉图片。
📐 图片比例自动
📚 提示词格式自动
🧠 细节密度标准
🌡️ 温度0.35
📝 最大输出令牌6144
🎲 Top_P1.00
🎲 随机种0
⌛ 请求超时300
📝 需要优化的现有提示词
🔤 画面准确文字与数据
🔒 必须保留
🚫 禁止出现
📎 参考素材用途说明
🚫 出错时跳过false

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.

Category🤖dapaoAPI/🍬大炮API常用工具🍬

Inputs (32)

NameTypeDefaultDescription
🔑 API密钥STRING密钥只用于请求 https://api.dapaoai.com。
🤖 LLM模型COMBOgemini-3.7-flash11 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
🎯 目标图像模型COMBOGPT Image 2 / OpenAI兼容6 options: GPT Image 2 / OpenAI兼容, 通用Image模型, Banana / Gemini Image, Midjourney, FLUX, Stable Diffusion
🌐 输出中文提示词BOOLEANfalse关闭时默认输出英文提示词,开启后输出简体中文。
📝 原始图像需求STRING设计一张构图清晰、信息层级明确、细节专业的商业视觉图片。
📐 图片比例COMBO自动9 options: 自动, 1:1, 16:9, 9:16, 4:3, 3:4, +3
📚 提示词格式COMBO自动4 options: 自动, 结构化JSON, 结构化自然语言, 精简自然语言
🧠 细节密度COMBO标准3 options: 简洁, 标准, 专业高密度
🌡️ 温度FLOAT0.350–2
📝 最大输出令牌INT6144512–65536
🎲 Top_PFLOAT1.000–1
🎲 随机种INT00–18446744073709550000仅控制ComfyUI缓存,不发送给接口。
⌛ 请求超时INT30030–1200
📝 需要优化的现有提示词optSTRING优化、诊断或改写任务使用。
🔤 画面准确文字与数据optSTRING填写必须逐字保留的标题、价格、数据、标签或公式。
🔒 必须保留optSTRING参考图身份、产品结构、Logo、构图、背景等不可改变内容。
🚫 禁止出现optSTRING不希望出现的对象、风格、文字或错误。
📎 参考素材用途说明optSTRING说明每张参考图控制身份、产品、风格、构图、姿势或背景中的哪一项。
🎭 蒙版optMASK局部编辑提示词使用;白色区域表示允许修改。
🚫 出错时跳过optBOOLEANfalse
🖼️ 参考图1optIMAGE给LLM分析的参考图1,最多9张。
🖼️ 参考图2optIMAGE给LLM分析的参考图2,最多9张。
🖼️ 参考图3optIMAGE给LLM分析的参考图3,最多9张。
🖼️ 参考图4optIMAGE给LLM分析的参考图4,最多9张。
🖼️ 参考图5optIMAGE给LLM分析的参考图5,最多9张。
🖼️ 参考图6optIMAGE给LLM分析的参考图6,最多9张。
🖼️ 参考图7optIMAGE给LLM分析的参考图7,最多9张。
🖼️ 参考图8optIMAGE给LLM分析的参考图8,最多9张。
🖼️ 参考图9optIMAGE给LLM分析的参考图9,最多9张。

Outputs (6)

NameTypeDescription
🪂 最终图像提示词STRING
🗂️ 识别分类STRING
🧩 使用模板STRING
📑 参数与优化分析STRING
📄 LLM完整响应STRING
ℹ️ 处理信息STRING