ComfyUI Node
LM Studio Unified (URL + API Key)
A ComfyUI node in EnviralDesign/llm with 14 inputs and 1 output.
LM Studio Unified (URL + API Key)
- image
- generated_text
◄base_urlhttp://127.0.0.1:1234/v1►
◄api_key►
◄modelgemma-4-e4b-uncensored-hauhaucs-aggressive►
◄promptDescribe this image in detail.►
◄system_promptYou are a helpful AI assistant.►
◄seed-1►
◄api_key_env_varLMSTUDIO_API_KEY►
◄max_tokens1000►
◄temperature0.70►
◄timeout_seconds300►
◄max_images20►
◄user_agentMozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36►
◄debugfalse►
CategoryEnviralDesign/llm
Inputs (14)
| Name | Type | Default | Description |
|---|---|---|---|
| base_url | STRING | http://127.0.0.1:1234/v1 | LM Studio OpenAI-compatible base URL. Accepts https://host, https://host/v1, or full /v1/chat/completions URL. |
| api_key | STRING | Optional LM Studio API key. Sent as Authorization: Bearer <key> when provided. | |
| model | STRING | gemma-4-e4b-uncensored-hauhaucs-aggressive | Model id from LM Studio /v1/models. |
| prompt | STRING | Describe this image in detail. | User prompt. Can be used with an image input or by itself. |
| system_prompt | STRING | You are a helpful AI assistant. | — |
| seed | INT | -1-1–18446744073709550000 | — |
| imageopt | IMAGE | — | |
| api_key_env_varopt | STRING | LMSTUDIO_API_KEY | Optional environment variable to read the API key from when api_key is blank. |
| max_tokensopt | INT | 10001–32768 | — |
| temperatureopt | FLOAT | 0.700–2 | — |
| timeout_secondsopt | INT | 30010–3600 | — |
| max_imagesopt | INT | 201–200 | Maximum number of images from the input IMAGE batch to send as separate image_url parts. |
| user_agentopt | STRING | Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 | HTTP User-Agent sent to LM Studio. Useful when Cloudflare blocks Python's default urllib signature. |
| debugopt | BOOLEAN | false | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| generated_text | STRING | — |