Save 4 hours! We auto-setup your workflow! Free!

Drop your workflow.json — we handle every dependency, custom node, and model. Just open the link and run.

Auto-Setup Workflow Json (Free) Now!
ComfyUI > Nodes > Sage Utils > LM Studio LLM Prompt (Text)

ComfyUI Node: LM Studio LLM Prompt (Text)

Class Name

Sage_LMStudioLLMPromptText

Category
Sage Utils/LLM/LM Studio
Author
arcum42 (Account age: 6442days)
Extension
Sage Utils
Latest Updated
2026-05-17
Github Stars
0.03K

How to Install Sage Utils

Install this extension via the ComfyUI Manager by searching for Sage Utils
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter Sage Utils in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

LM Studio LLM Prompt (Text) Description

Facilitates text prompt interaction with language models via LM Studio for creative tasks.

LM Studio LLM Prompt (Text):

The Sage_LMStudioLLMPromptText node is designed to facilitate interaction with language models installed via LM Studio. Its primary function is to send a text-based prompt to a language model and receive a generated response. This node is particularly beneficial for users who wish to leverage the capabilities of advanced language models for tasks such as creative writing, content generation, or any application requiring natural language processing. By providing a straightforward interface, it allows you to easily input your text prompts and select from available models, making it accessible even to those without a technical background. The node's design ensures that you can focus on crafting your prompts while it handles the complexities of model interaction, thus enhancing your creative workflow.

LM Studio LLM Prompt (Text) Input Parameters:

prompt

This parameter allows you to input the text prompt that you wish to send to the language model. It supports multiline input, enabling you to craft detailed and complex prompts. The default value is set to a predefined text prompt, but you can customize it to suit your specific needs. The quality and specificity of the prompt can significantly impact the relevance and creativity of the model's response.

model

This parameter lets you select the language model you want to use from a list of available options. The models are sorted alphabetically for easy selection. The choice of model can affect the style and accuracy of the generated response, as different models may have varying strengths in language understanding and generation.

seed

The seed parameter is used to initialize the random number generator that influences the model's output. By setting a specific seed value, you can ensure that the same prompt will produce the same response across different runs, which is useful for reproducibility. The default value is 0, with a range from 0 to 2<sup>32

  • 1, allowing for a vast number of possible variations.

load_for_seconds

This parameter specifies the duration for which the model should be loaded in memory, measured in seconds. The default is 0, meaning the model will be loaded only for the duration of the prompt processing. You can set this value between -1 and 3600 seconds, where -1 keeps the model loaded indefinitely. Adjusting this parameter can optimize performance, especially if you plan to send multiple prompts in quick succession.

LM Studio LLM Prompt (Text) Output Parameters:

response

The response parameter provides the text generated by the language model in response to your prompt. This output is crucial as it represents the model's interpretation and creative output based on the input prompt. The quality and relevance of the response can vary depending on the prompt's clarity and the selected model, making it an essential component for evaluating the effectiveness of your input.

LM Studio LLM Prompt (Text) Usage Tips:

  • Experiment with different models to find the one that best suits your creative needs, as each model may have unique strengths in language generation.
  • Use the seed parameter to ensure consistent results when testing different prompts or when you need to reproduce specific outputs for comparison.
  • Adjust the load_for_seconds parameter to optimize performance if you plan to send multiple prompts in a session, reducing the need to reload the model each time.

LM Studio LLM Prompt (Text) Common Errors and Solutions:

Model not available

  • Explanation: This error occurs when the selected model is not installed or accessible via LM Studio.
  • Solution: Ensure that the model is correctly installed in LM Studio and that it is listed among the available options in the node.

Invalid seed value

  • Explanation: The seed value provided is outside the acceptable range.
  • Solution: Check that the seed value is between 0 and 2<sup>32 - 1 and adjust it accordingly.

Prompt too long

  • Explanation: The input prompt exceeds the maximum length supported by the model.
  • Solution: Shorten the prompt to fit within the model's input constraints, focusing on the most critical information.

LM Studio LLM Prompt (Text) Related Nodes

Go back to the extension to check out more related nodes.
Sage Utils
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.

LM Studio LLM Prompt (Text)