Nodes/NeuralBooru/NeuralBooru LLM
ComfyUI Node

NeuralBooru LLM

A ComfyUI node in NeuralBooru with 11 inputs and 2 outputs.

By ChrisJohnson89·Created 2 months ago·Updated about a month ago· 15
NeuralBooru LLM
    • raw_tags
    • is_fallback
    user_promptdescribe your scene here
    system_promptYou convert a scene description into Danbooru tags for an anime image model. Output ONLY lowercase tags separated by commas. No sentences, no explanations, no numbering, no category words. Write attributes in real Danbooru tag style: 'blue eyes' not 'eye color blue', 'black hair' not 'hair color black'. Use spaces, not underscores. Use 1girl, 1boy, 2girls, etc. for people. Do NOT add quality tags like masterpiece, best quality, absurdres, score_9 - those are added separately. Example input: a cheerful blonde girl in a red dress on a beach at sunset Example output: 1girl, blonde hair, long hair, smile, red dress, beach, sunset, ocean, sky, cloud, standing Example input: a lone samurai in the rain at night Example output: 1boy, solo, samurai, japanese clothes, katana, rain, night, wet, serious, outdoors Now output tags only for the next description. /no_think
    modelqwen/qwen3-1.7b
    enable_thinkingfalse
    temperature0.40
    max_tokens500
    seed0
    lm_studio_urlhttp://localhost:1234
    timeout120
    api_key
    on_errorraise
    CategoryNeuralBooru

    Inputs (11)

    NameTypeDefaultDescription
    user_promptSTRINGdescribe your scene herePlain-English scene description to convert into tags.
    system_promptSTRINGYou convert a scene description into Danbooru tags for an anime image model. Output ONLY lowercase tags separated by commas. No sentences, no explanations, no numbering, no category words. Write attributes in real Danbooru tag style: 'blue eyes' not 'eye color blue', 'black hair' not 'hair color black'. Use spaces, not underscores. Use 1girl, 1boy, 2girls, etc. for people. Do NOT add quality tags like masterpiece, best quality, absurdres, score_9 - those are added separately. Example input: a cheerful blonde girl in a red dress on a beach at sunset Example output: 1girl, blonde hair, long hair, smile, red dress, beach, sunset, ocean, sky, cloud, standing Example input: a lone samurai in the rain at night Example output: 1boy, solo, samurai, japanese clothes, katana, rain, night, wet, serious, outdoors Now output tags only for the next description. /no_thinkInstructions for the LLM. Edit to change tagging behavior.
    modelSTRINGqwen/qwen3-1.7bModel id as the server reports it (see /v1/models).
    enable_thinkingBOOLEANfalseAllow reasoning-mode models to think before answering. Slower; output is cleaned either way.
    temperatureFLOAT0.400–2
    max_tokensINT50050–2000
    seedINT00–4294967295Change to re-roll the LLM call; also sent to the API.
    lm_studio_urlSTRINGhttp://localhost:1234Base URL of any OpenAI-compatible server: LM Studio (:1234), Ollama (:11434), llama.cpp, vLLM.
    timeoutoptINT12010–600Seconds to wait for the LLM response.
    api_keyoptSTRINGOptional Bearer token for servers that require auth (vLLM, remote endpoints). Leave empty for LM Studio/Ollama.
    on_erroroptCOMBOraiseraise: fail the workflow with a visible error. use_input_text: output your raw description so the workflow still produces an image (sets is_fallback=True).

    Outputs (2)

    NameTypeDescription
    raw_tagsSTRINGThe LLM's tag-ish output, think-stripped and reasoning-fallback applied. Feed into NeuralBooruValidator for Danbooru validation and template wrapping.
    is_fallbackBOOLEANTrue when the LLM call failed and raw_tags holds the original user_prompt (on_error=use_input_text). NeuralBooruValidator skips validation in this case.