Nodes/comfyui-kotodama/Kotodama Prompt Enhancer
ComfyUI Node

Kotodama Prompt Enhancer

Rewrites an input prompt through an OpenAI-compatible chat model using a system prompt picked from the node's system_prompts/ folder. Output wires into a CLIPTextEncode text input.

By ericmey·Created about 14 hours ago·Updated about 13 hours ago· 0
Kotodama Prompt Enhancer
    • prompt
    ◄text►
    ◄system_prompttext-to-image►
    ◄model▾►
    ◄temperature0.80►
    ◄max_tokens1024►
    ◄seed0►
    ◄passthrough_on_emptyfalse►
    Categorykotodama

    Inputs (7)

    NameTypeDefaultDescription
    textSTRINGThe rough prompt to enhance. Wire it in or type it here.
    system_promptCOMBOtext-to-imageA file in the node's system_prompts/ folder.
    modelCOMBOEndpoint unavailable or unconfigured; showing the fallback list.
    temperatureFLOAT0.800–2—
    max_tokensINT102464–32768—
    seedINT00–18446744073709550000Bump to force a re-run with identical other inputs. ComfyUI caches node output on input identity, so without a new seed the same text comes back. Changing system_prompt, model, temperature, or max_tokens already invalidates the cache.
    passthrough_on_emptyBOOLEANfalseEmpty input text returns empty without calling the LLM. Off = an empty input is an error.

    Outputs (1)

    NameTypeDescription
    promptSTRING—