Nodes/LM Studio Image to Text Node for ComfyUI/LM Studio (Structured Output)
ComfyUI Node

LM Studio (Structured Output)

A ComfyUI node in ComfyExpo/LMStudio with 14 inputs and 7 outputs.

By mattjohnpowell·Created 2 years ago·Updated 2 months ago· 57
LM Studio (Structured Output)
  • image
  • json_output
  • value_1
  • value_2
  • value_3
  • value_4
  • value_5
  • value_6
text_inputDescribe this image.
json_schema{ "type": "object", "properties": { "subject": {"type": "string"}, "style": {"type": "string"}, "mood": {"type": "string"}, "tags": {"type": "array", "items": {"type": "string"}} }, "required": ["subject", "style", "mood", "tags"] }
output_keyssubject style mood tags
system_promptYou are a helpful AI assistant. Always respond with valid JSON.
model_keygemma-3-4b-it-qat
auto_unloadTrue
unload_delay0
seed-1
max_tokens1000
temperature0.70
debugfalse
timeout_seconds300
strip_thinkingtrue
CategoryComfyExpo/LMStudio

Inputs (14)

NameTypeDefaultDescription
text_inputSTRINGDescribe this image.The user message / prompt sent to the model.
json_schemaSTRING{ "type": "object", "properties": { "subject": {"type": "string"}, "style": {"type": "string"}, "mood": {"type": "string"}, "tags": {"type": "array", "items": {"type": "string"}} }, "required": ["subject", "style", "mood", "tags"] }A valid JSON Schema object. The model will be constrained to return JSON matching this schema.
output_keysSTRINGsubject style mood tagsNewline-separated list of top-level JSON keys to extract into value_1 … value_6 outputs (in order). Array values are joined with ', '.
system_promptSTRINGYou are a helpful AI assistant. Always respond with valid JSON.
model_keySTRINGgemma-3-4b-it-qat
auto_unloadCOMBOTrue2 options: True, False
unload_delayINT00–3600
seedINT-1-1–18446744073709550000
imageoptIMAGE
max_tokensoptINT10001–4096
temperatureoptFLOAT0.700–2
debugoptBOOLEANfalse
timeout_secondsoptINT30010–3600
strip_thinkingoptBOOLEANtrueStrip <think>...</think> reasoning blocks from the response (for models with thinking mode enabled).

Outputs (7)

NameTypeDescription
json_outputSTRING
value_1STRING
value_2STRING
value_3STRING
value_4STRING
value_5STRING
value_6STRING