ComfyUI Node

LM Studio Model

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

By WASasquatch·Created 9 months ago·Updated 5 months ago· 17
LM Studio Model
    • model
    model<no models found>
    manual_model_id
    unload_after_usetrue
    temperature0.15
    max_tokens-1
    seed0
    image_max_size1024
    use_rest_apifalse
    CategoryLM Studio

    Inputs (8)

    NameTypeDefaultDescription
    modelCOMBO<no models found>Model key discovered from the LM Studio SDK. Pick a listed model or use manual_model_id.
    manual_model_idSTRINGOptional manual model identifier if your LM Studio instance is not returning it via /models or runs on a different base URL.
    unload_after_useBOOLEANtrueUnload the model after queries to free up memory. Uses LM Studio SDK for proper model management.
    temperatureFLOAT0.150–2Sampling temperature. Higher is more random; lower is more deterministic.
    max_tokensINT-1-1–32768Maximum new tokens to generate for the assistant reply. Use -1 for unlimited (recommended for thinking models).
    seedINT00–2147483647Optional seed for deterministic sampling if supported by LM Studio. Use 0 to disable.
    image_max_sizeCOMBO1024Maximum edge size for input images (keeps aspect ratio). Images larger than this are downscaled before encoding and sending to LM Studio.
    use_rest_apiBOOLEANfalseUse the OpenAI-compatible REST API instead of the LM Studio SDK for predictions. Required for proper thinking model support (separates reasoning from content).

    Outputs (1)

    NameTypeDescription
    modelLMSTUDIO_MODEL