Nodes/Arctenoxs-Essentials_ComfyUI/Prompt Generator (Arctenox's Essentials)
ComfyUI Node

Prompt Generator (Arctenox's Essentials)

Generates semi-random prompts by walking the tag co-occurrence graph. Give it seed tags and it finds naturally related ones. Use filter_tags to exclude anything you don't want in the output. Connect the prompt output directly to a CLIP Text Encode node.

By Arctenox·Created 8 months ago·Updated about a month ago· 1
Prompt Generator (Arctenox's Essentials)
    • prompt
    • debug_info
    seed_tags
    filter_tags
    tag_count20
    sourceall
    ratingsafe
    variability0.50
    min_post_count500
    add_quality_tagstrue
    quality_tag_count3
    seed0
    exclude_artist_tagstrue
    exclude_copyright_tagstrue
    prepend_text
    append_text
    CategoryArctenox Essentials/Prompting

    Inputs (14)

    NameTypeDefaultDescription
    seed_tagsSTRINGComma-separated or one-per-line starting tags. The generator will find tags that naturally co-occur with these. Leave blank for a fully random starting point.
    filter_tagsSTRINGTags to EXCLUDE from generated output. Enter one per line or comma-separate them. Spaces and underscores are treated the same. Lines starting with # are treated as comments and ignored. Example: male_focus solo monochrome
    tag_countINT201–80How many tags to generate (excluding prepend/append/quality).
    sourceCOMBOallWhich tag database to pull from.
    ratingCOMBOsafesafe = exclude explicit/questionable tags nsfw = exclude safe-only tags all = no rating filter
    variabilityFLOAT0.500–10.0 = always pick the most co-occurring (predictable) 1.0 = heavily randomised selection (surprising)
    min_post_countINT5001–100000Ignore tags with fewer posts than this. Higher = more common tags only.
    add_quality_tagsBOOLEANtruePrepend quality tags like 'masterpiece, best_quality'.
    quality_tag_countINT31–8
    seedINT0-1–18446744073709550000-1 = random every run. 0+ = reproducible.
    exclude_artist_tagsBOOLEANtrueStrip artist tags (category 1) from the generated output. Useful when seed_tags come from Raffle unfiltered data which may include artist credits you don't want in the prompt.
    exclude_copyright_tagsBOOLEANtrueStrip copyright/series tags (category 3) from the generated output. e.g. 'arknights', 'genshin_impact', 'fate/grand_order'.
    prepend_textoptSTRINGText placed at the very start of the prompt (before quality tags).
    append_textoptSTRINGText placed at the very end of the prompt.

    Outputs (2)

    NameTypeDescription
    promptSTRING
    debug_infoSTRING