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

LM Studio FLUX.2 Prompt Generator from Image

Simple image-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 from Image
  • image
  • enhanced_prompt
server_urlhttp://127.0.0.1:1234/v1/chat/completions
modelqwen3.5-35b-a3b-uncensored-hauhaucs-aggressive
base_prompt
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 (12)

NameTypeDefaultDescription
imageIMAGEInput image from ComfyUI. Sent as JPEG data URI to LM Studio.
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_promptSTRINGOptional creative direction to combine with the visible image.
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