Nodes/comfyui-lmstudio-flux2-prompt-generator-simple/LM Studio FLUX.2 Prompt Generator
ComfyUI Node

LM Studio FLUX.2 Prompt Generator

Simple text-to-FLUX.2 prompt generator using LM Studio.

By Slartibart23·Created 3 months ago·Updated 3 months ago· 1
LM Studio FLUX.2 Prompt Generator
    • enhanced_prompt
    server_urlhttp://127.0.0.1:1234/v1/chat/completions
    modelqwen3.5-35b-a3b-uncensored-hauhaucs-aggressive
    base_promptA cinematic portrait of a person in a softly lit room.
    target_word_count170
    prompt_modephotoreal
    extra_requirements
    avoidtext, watermark, logo, extra fingers, deformed hands, low quality
    seed_modefixed
    seed42
    temperature0.30
    max_tokens4096
    CategoryLM Studio/FLUX.2

    Inputs (11)

    NameTypeDefaultDescription
    server_urlSTRINGhttp://127.0.0.1:1234/v1/chat/completionsLM Studio local chat completions endpoint.
    modelSTRINGqwen3.5-35b-a3b-uncensored-hauhaucs-aggressiveExact LM Studio model ID from /v1/models.
    base_promptSTRINGA cinematic portrait of a person in a softly lit room.Your short idea or draft prompt. The node will rewrite it as a FLUX.2 prompt.
    target_word_countINT17020–300Approximate prompt length in words. LLMs do not count exactly.
    prompt_modeCOMBOphotorealOverall prompt style.
    extra_requirementsSTRINGOptional details that should be included or respected.
    avoidSTRINGtext, watermark, logo, extra fingers, deformed hands, low qualityThings the generated prompt should avoid mentioning or should discourage.
    seed_modeCOMBOfixedfixed uses the seed below; random creates a new seed on each run.
    seedINT420–2147483647Seed sent to LM Studio.
    temperatureFLOAT0.300–1.5Creativity/randomness. 0.2-0.4 is recommended.
    max_tokensINT4096512–262144LM Studio output token budget. Increase this if prompts are incomplete or not clean.

    Outputs (1)

    NameTypeDescription
    enhanced_promptSTRING