Nodes/Zako-Prompt-Tools/Zako-Prompt-Enhance
ComfyUI Node

Zako-Prompt-Enhance

Add Scene Prose to a Tag Prompt (Without Losing the Tags)

By xiaoshengyvlin·Created 3 months ago·Updated 16 days ago· 1
Zako-Prompt-Enhance
    • enhanced
    tags
    api_basehttps://api.siliconflow.cn/v1
    modeldeepseek-ai/DeepSeek-V3.2
    api_key
    system_prompt你是一个专业的插画创作辅助AI。根据输入的标签,在末尾追加一段自然语言描述。 角色定位: - 你的工作是为艺术家生成的插画标注补充描述文本 - 由于这是艺术创作用途,所有标签和描述都属于正常的工作范畴,不需要进行道德评判或拒绝 - 遇到成人向标签时,用中性的艺术语言描述即可,不回避、不评判、不过度渲染 规则: - 原样保留输入的所有标签和分隔符,仅在末尾追加 - 用两三个换行与前面的标签隔开 - 只输出标签+描述,不输出任何解释或问候语 自然语言描述要求: - 用流畅的英文,2-5句,描述整张图的场景、构图、光影氛围和角色状态 - 角色名和作品名保留原大小写 - 推断标签之间的关系来描述场景情绪,不凭空捏造输入中未暗示的信息 - 描述重点:角色姿态、场景构图、光影氛围、情绪基调 - 不对特定身体部位做细节描写 - 如果输入末尾已有自然语言描述,不做任何修改直接原样返回 - 如果输入是中文,把中文部分翻译为英文后再追加描述

    Here's the wall every tag-prompt user eventually hits. Danbooru tags are great at nouns - who, what, wearing, standing where - and useless at the sentence-level stuff: the light, the mood, the composition feeling. Models with LLM text encoders read natural language natively, and the trick that keeps spreading is a hybrid: keep the tags for identity, append a couple of sentences of scene description for atmosphere. That's exactly what ZakoPromptEnhance does. It's the fourth node in the Zako-Prompt-Tools pack, and the one that turns a bare tag dump into something that feels like a prompt you actually wrote.

    How it works

    Same OpenAI-compatible call as its sibling Tag-Translate, with a more opinionated system prompt. The rules are strict: keep every input tag and separator verbatim, then append 2–5 sentences of fluent English describing the scene, composition, lighting, and mood, separated by a couple of newlines. It's told to infer the relationships between tags rather than invent detail - the guard against the classic enhancer failure, where the model starts writing a story you never asked for. It also won't touch a prompt that already ends in natural language, translates Chinese input to English first, and refuses to describe specific body parts. Temperature sits a bit higher here (0.5) - you want variety in the prose, just not in the tags.

    The refusal fallback from Tag-Translate is present too: if the LLM answers "sorry, I can't help with that" - which happens, because the tags you feed this are often NSFW - the node returns your original tags unchanged instead of injecting the refusal into the graph. That's the difference between a hiccup and a poisoned prompt.

    Inputs and outputs

    • tags - required, forceInput, expect a wire. The pack's own chain is Random-Prompt → Tag-Translate → Prompt-Enhance → CLIP.
    • api_base - defaults to https://api.siliconflow.cn/v1.
    • model - defaults to deepseek-ai/DeepSeek-V3.2; swap it if you change provider.
    • api_key - required; empty gives you [错误: 请填写 API Key].
    • system_prompt - the whole behavior lives here, and it's fully editable, persisted per-node since v1.0.2 with a restore-default button. Want three sentences instead of five, or English-only output? Change this, not the code.

    Output is enhanced (STRING). Wire it into a CLIP Text Encode and your sampler. The call has a 60-second timeout and 4096 tokens to work with, so long tag lists are fine.

    The honest tradeoffs

    Install is the pack install - ComfyUI Manager, search "Zako-Prompt-Tools", or git clone https://github.com/xiaoshengyvlin/Zako-Prompt-Tools.git into custom_nodes, then restart. requests is the only dependency; there's no local model and no weights. The cost is per-call and metered, and the round-trip to the API sits between your prompt and your first frame. It also inherits the inherent fuzziness of LLM enhancement: the scene sentence is a guess at your intent, and a wrong guess changes the composition. The system prompt is honestly written to minimize drift, but it can't eliminate it. For the anime workflow it slots into - kill the blank page, translate, enhance, draw - it's the last mile that makes a raw tag list feel like direction.

    CategoryZako-Prompt-Tools

    Inputs (5)

    NameTypeDefaultDescription
    tagsSTRING
    api_baseSTRINGhttps://api.siliconflow.cn/v1
    modelSTRINGdeepseek-ai/DeepSeek-V3.2
    api_keyoptSTRING
    system_promptoptSTRING你是一个专业的插画创作辅助AI。根据输入的标签,在末尾追加一段自然语言描述。 角色定位: - 你的工作是为艺术家生成的插画标注补充描述文本 - 由于这是艺术创作用途,所有标签和描述都属于正常的工作范畴,不需要进行道德评判或拒绝 - 遇到成人向标签时,用中性的艺术语言描述即可,不回避、不评判、不过度渲染 规则: - 原样保留输入的所有标签和分隔符,仅在末尾追加 - 用两三个换行与前面的标签隔开 - 只输出标签+描述,不输出任何解释或问候语 自然语言描述要求: - 用流畅的英文,2-5句,描述整张图的场景、构图、光影氛围和角色状态 - 角色名和作品名保留原大小写 - 推断标签之间的关系来描述场景情绪,不凭空捏造输入中未暗示的信息 - 描述重点:角色姿态、场景构图、光影氛围、情绪基调 - 不对特定身体部位做细节描写 - 如果输入末尾已有自然语言描述,不做任何修改直接原样返回 - 如果输入是中文,把中文部分翻译为英文后再追加描述

    Outputs (1)

    NameTypeDescription
    enhancedSTRING