Nodes/Anima Prompt Generator/Anima Prompt Builder
ComfyUI Node

Anima Prompt Builder

Checks the LLM answer against the Danbooru tag dictionary and builds the final Anima prompt: fixed group order, a blank line between groups, the description at the end.

By GUntilB·Created 22 days ago·Updated 5 days ago· 14
Anima Prompt Builder
    • prompt
    • report
    ◄text►
    ◄quality_tagsmasterpiece, best quality, score_7►
    ◄artist_tag►
    ◄default_ratingsafe►
    ◄drop_unknowntrue►
    ◄fuzzy_fixtrue►
    ◄strip_canonical_appearancetrue►
    Categoryanima

    Inputs (7)

    NameTypeDefaultDescription
    textSTRINGAnswer of the LLM in 'key: value' lines. Connect the llm_text output of the LLM node here.
    quality_tagsSTRINGmasterpiece, best quality, score_7Quality tags put at the very start of the prompt. Quality, year and artist tags written by the LLM are always removed.
    artist_tagSTRINGArtist or LoRA trigger tag added after the series block, for example @name. Leave empty to add nothing.
    default_ratingCOMBOsafeRating tag used when the LLM gives no valid rating. 'none' adds no rating.
    drop_unknownBOOLEANtrueRemove tags that are not in the dictionary. Unknown tags in character and series are always kept.
    fuzzy_fixBOOLEANtrueFix near-miss tags when they differ only by a common ending (indoor -> indoors). Character names use a strict similarity check.
    strip_canonical_appearanceBOOLEANtrueWhen a named character is set, remove hair and eye colors written by the LLM: the image model already knows the character and the LLM often gets the colors wrong.

    Outputs (2)

    NameTypeDescription
    promptSTRING—
    reportSTRING—