Nodes/Enviral Design Node Pack/LM Studio Unified (URL + API Key)
ComfyUI Node

LM Studio Unified (URL + API Key)

A ComfyUI node in EnviralDesign/llm with 14 inputs and 1 output.

By EnviralDesign·Created 4 months ago·Updated 26 days ago· 1
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)

NameTypeDefaultDescription
base_urlSTRINGhttp://127.0.0.1:1234/v1LM Studio OpenAI-compatible base URL. Accepts https://host, https://host/v1, or full /v1/chat/completions URL.
api_keySTRINGOptional LM Studio API key. Sent as Authorization: Bearer <key> when provided.
modelSTRINGgemma-4-e4b-uncensored-hauhaucs-aggressiveModel id from LM Studio /v1/models.
promptSTRINGDescribe this image in detail.User prompt. Can be used with an image input or by itself.
system_promptSTRINGYou are a helpful AI assistant.
seedINT-1-1–18446744073709550000
imageoptIMAGE
api_key_env_varoptSTRINGLMSTUDIO_API_KEYOptional environment variable to read the API key from when api_key is blank.
max_tokensoptINT10001–32768
temperatureoptFLOAT0.700–2
timeout_secondsoptINT30010–3600
max_imagesoptINT201–200Maximum number of images from the input IMAGE batch to send as separate image_url parts.
user_agentoptSTRINGMozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36HTTP User-Agent sent to LM Studio. Useful when Cloudflare blocks Python's default urllib signature.
debugoptBOOLEANfalse

Outputs (1)

NameTypeDescription
generated_textSTRING