Nodes/Anima-Prompt-Generator/Anima LM Studio (prompt LLM)
ComfyUI Node

Anima LM Studio (prompt LLM)

Sends your idea to a local LLM server (LM Studio) and returns a structured answer: rating, count, character, tags by group and a short description. Connect it to Anima Prompt Builder.

By GUntilB·Created 2 days ago·Updated a day ago· 12
Anima LM Studio (prompt LLM)
    • llm_text
    • status
    ◄idea►
    ◄system_prompt►
    ◄model▾►
    ◄temperature0.50►
    ◄unload_aftertrue►
    ◄use_cachetrue►
    ◄seed0►
    ◄server_urlhttp://127.0.0.1:1234►
    ◄max_tokens1024►
    ◄context_length8192►
    ◄model_override►
    ◄api_key►
    ◄prompt_profilesfw►
    Categoryanima

    Inputs (13)

    NameTypeDefaultDescription
    ideaSTRINGWhat should be in the picture, in any language.
    system_promptSTRINGYour own instructions for the LLM. Used only when prompt_profile is 'custom'; sfw and nsfw take their text from the prompts folder and ignore this field.
    modelCOMBOModel on the LLM server. The list is read when the node loads; press R to refresh it.
    temperatureFLOAT0.500–2Randomness of the answer. Lower is steadier; 0.5 works well for tag lists.
    unload_afterBOOLEANtrueUnload the model after the answer to free VRAM for image generation.
    use_cacheBOOLEANtrueReuse the previous answer when the request and all settings are unchanged, without calling the LLM.
    seedINT00–2147483647Seed sent to the server. The same seed and settings give the same answer; it is also part of the cache key.
    server_urlSTRINGhttp://127.0.0.1:1234Address of the LM Studio server.
    max_tokensoptINT1024128–16384Answer length limit. Raise it if the status says the answer was cut off.
    context_lengthoptINT81922048–131072Context size used when this node loads the model itself.
    model_overrideoptSTRINGType a model name here to use it instead of the one chosen in the list.
    api_keyoptSTRINGAPI key, only if the server requires one.
    prompt_profileoptCOMBOsfwInstruction set for the LLM: sfw (clothed, no explicit content), nsfw (all ratings), custom (uses the system_prompt field).

    Outputs (2)

    NameTypeDescription
    llm_textSTRING—
    statusSTRING—