ComfyUI Node
LM Studio (Structured Output)
A ComfyUI node in ComfyExpo/LMStudio with 14 inputs and 7 outputs.
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)
| Name | Type | Default | Description |
|---|---|---|---|
| text_input | STRING | Describe this image. | The user message / prompt sent to the model. |
| json_schema | STRING | { "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_keys | STRING | subject style mood tags | Newline-separated list of top-level JSON keys to extract into value_1 … value_6 outputs (in order). Array values are joined with ', '. |
| system_prompt | STRING | You are a helpful AI assistant. Always respond with valid JSON. | — |
| model_key | STRING | gemma-3-4b-it-qat | — |
| auto_unload | COMBO | True | 2 options: True, False |
| unload_delay | INT | 00–3600 | — |
| seed | INT | -1-1–18446744073709550000 | — |
| imageopt | IMAGE | — | |
| max_tokensopt | INT | 10001–4096 | — |
| temperatureopt | FLOAT | 0.700–2 | — |
| debugopt | BOOLEAN | false | — |
| timeout_secondsopt | INT | 30010–3600 | — |
| strip_thinkingopt | BOOLEAN | true | Strip <think>...</think> reasoning blocks from the response (for models with thinking mode enabled). |
Outputs (7)
| Name | Type | Description |
|---|---|---|
| json_output | STRING | — |
| value_1 | STRING | — |
| value_2 | STRING | — |
| value_3 | STRING | — |
| value_4 | STRING | — |
| value_5 | STRING | — |
| value_6 | STRING | — |