Nodes/comfyui-lmstudio/LM Studio Generate Text
ComfyUI Node

LM Studio Generate Text

A ComfyUI node in LM Studio with 11 inputs and 1 output.

By Winnougan·Created about a month ago·Updated about a month ago· 3
LM Studio Generate Text
  • connection
  • image
  • generated_text
promptDescribe this image.
max_tokens500
temperature0.70
top_p0.95
seed0
system_prompt
max_image_size1024
image_formatjpeg
batch_separator
CategoryLM Studio

Inputs (11)

NameTypeDefaultDescription
connectionLM_STUDIO_CONNECTION
promptSTRINGDescribe this image.
max_tokensINT5001–8192
temperatureFLOAT0.700–2
top_pFLOAT0.950–1
seedINT00–4294967295
imageoptIMAGE
system_promptoptSTRING
max_image_sizeoptINT1024256–4096Images are downscaled so their longest side is at most this many pixels before sending. Most VLMs resize internally anyway, so larger values mostly cost latency, not quality.
image_formatoptCOMBOjpegjpeg: ~10x faster encode, ~10x smaller payload. png: lossless, better for pixel-exact or text-heavy images.
batch_separatoroptSTRING When `image` is a batch of more than one image, each image gets its own request and the resulting captions are joined with this string.

Outputs (1)

NameTypeDescription
generated_textSTRING