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

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

The GPT Image 2 prompt engineer that runs on your own card

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

Some image models are picky about prompts, and GPT Image 2 is the pickiest of the lot - it wants structured design intent, not a paragraph of vibes. DapaoLocalAllroundImagePromptNode ("全能image提示词生成") is a local LLM that writes, optimizes, and diagnoses prompts in that GPT Image 2 idiom. The node's own description is refreshingly honest: it calls the LLM, builds from a structured design template, and does not generate an image. It's a prompt-authoring node that lives upstream of whatever model you actually use.

The origin story matters for how you read it. This is one of the seven "大炮API常用工具" (dapaoAPI common tools) ported to local inference: the original node called an OpenAI-compatible API, and the local version swaps that client for a llama.cpp payload running your GGUF. Same inputs, same template library, same structured validation - but the request goes to your GPU instead of a cloud endpoint. No key, no per-call cost, uncensored (the usual local-LLM pitch from the KB).

What it can do

The 🎛️ 任务模式 dropdown is the heart of it - seven modes from auto-detect through 新建图像提示词, 优化现有提示词, 参考图创作提示词, 图像编辑提示词, 蒙版局部编辑提示词, and 提示词诊断与重写. Then 🗂️ 设计分类 (UI界面样机, 产品商业视觉, 地图与路线, 海报与Campaign, 人物与角色设定 …) and a huge 🧩 具体模板 menu - 94 templates covering everything from 学术论文配图 to 图标游戏与素材. And 🎯 目标图像模型 lets you aim the prompt style at GPT Image 2, 通用Image, Banana/Gemini, Midjourney, FLUX, or Stable Diffusion - the prompt changes register, not just the label.

Inputs that matter

  • 📝 原始图像需求 - your idea, multiline. The one creative input you must fill.
  • 📝 需要优化的现有提示词 - for optimize/diagnose tasks.
  • 🔤 画面准确文字与数据 - "必须逐字保留的标题、价格、数据、标签或公式." This is the GPT-Image-2-specific superpower: exact text in the final image, guaranteed by the prompt contract.
  • 🔒 必须保留 and 🚫 禁止出现 - the guardrails.
  • 🎭 蒙版 - MASK input for the local-edit mode (white areas = editable).
  • 🖼️ 参考图1 through 🖼️ 参考图9 - source images for the LLM to analyze.
  • Sampling: 🌡️ 温度 (default 0.35 - deliberately low for structure), 📝 最大输出令牌 (6144 default), Top_P, seed, timeout.

Outputs are the full diagnostic stack: 🪂 最终图像提示词 (the one that matters), 🗂️ 识别分类, 🧩 使用模板, 📑 参数与优化分析, 📄 LLM完整响应, and ℹ️ 处理信息.

Where people get burned

The low temperature is the clue: this node wants determinism, and if you crank the temperature up you'll get the same prompt written five different ways - pointless for an image that needs a specific layout. Keep it in the 0.3–0.5 range. And remember it's a prompt writer, not a generator: people wire the final prompt straight into a GPT Image 2 node and then complain "nothing came out" because they skipped the generator. The description calls this out for a reason.

Installing it

Standard pack install:

cd ComfyUI/custom_nodes
git clone https://github.com/paolaoshi/ComfyUI-llama_Dapao

then requirements + restart. The pack-wide dependency gotcha: llama-cpp-python pinned to the JamePeng fork at 0.3.47+ (stock PyPI 0.3.35 fails on Qwen3.8 GGUFs), NVIDIA users overlay a GPU wheel from the JamePeng releases, models in ComfyUI/models/LLM/. For image analysis you need a vision model plus its mmproj; for pure text-prompt work, a text GGUF suffices.

Category🍭大炮-llama-cpp

Inputs (39)

NameTypeDefaultDescription
🤖本地模型文件COMBO0 options:
🔌本地对话处理器COMBOQwen3.822 options: None, LLaVA-1.5, LLaVA-1.6, Moondream2, nanoLLaVA, llama3-Vision-Alpha, +16
🖼️本地mmproj文件COMBONone1 options: None
📐本地上下文长度INT8192512–131072
💾本地显存限制(GB)FLOAT-1.0-1–999这是LLM可使用的显存预算,不是预留空间。-1=尝试全部放入GPU,最快但可能因显存不足失败;填写数值=只将部分模型层放入GPU,其余使用系统内存。参考起点:8GB显卡填6,12GB填10,16GB填13,24GB填20,32GB填24-28。请为ComfyUI、mmproj和上下文缓存保留约2GB。
🔢图像最小tokenINT2561–4096
🔢图像最大tokenINT13441–8192
🧠本地思考模式BOOLEANfalse
🧠Qwen3.8推理强度COMBO关闭5 options: 关闭, 自动, 低, 中等, 高
🎛️ 任务模式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