ComfyUI-Universal-LLM-Suite
A comprehensive, all-in-one suite for seamlessly integrating Large Language Models (LLMs) like Google Gemini and OpenAI (ChatGPT) directly into your ComfyUI workflows.
ComfyUI Universal LLM Suite
A comprehensive, all-in-one suite for seamlessly integrating Large Language Models (LLMs) like Google Gemini and OpenAI (ChatGPT) directly into your ComfyUI workflows.
Designed for both Free and Paid API tiers, this suite provides robust tools for text generation, prompt engineering, image vision analysis, and fully-featured text-to-speech (TTS) voice capabilities.
✨ Key Features
- Multi-Provider Support: Run Google Gemini and OpenAI models side-by-side in your workflow.
- Cost-Effective Presets: Defaults configured to prioritize highly capable but cost-effective models like
gpt-5.4-miniandgemini-2.5-flash-lite. - Multimodal Vision: Pass images from your ComfyUI workflow directly into the LLM API runners.
- Native Voice (TTS):
- Play, save, and manage expressive, character-driven audio generated natively by Gemini 2.5/3.0.
- Generate high-quality voice audio from OpenAI's TTS service natively.
- Smart UI Elements:
- Password-masked API key fields for safety during screen recording.
- Resizable, copy/paste-friendly Text Display node.
- In-browser audio playback widget.
📦 Nodes Included
| Category | Node Name | Description | | :--- | :--- | :--- | | Config | ✨ Gemini Configurator | Masked API key input, model selection, and Gemini voice choice (Puck, Aoede, etc.) | | Config | ✨ OpenAI Configurator | Masked API key input, model selection (gpt-5.4-mini, o1-mini, etc.), and TTS voice choice. | | Runner | 🚀 Gemini API Runner | Executes the prompt and optional image, returning text and audio dict (if applicable). | | Runner | 🚀 OpenAI API Runner | Executes the prompt against OpenAI, returning text and audio dict (if TTS enabled). | | Utility | 📝 LLM Dual Prompt | Convenient UI to structure your System Instruction and User Prompt. | | Output | 📄 LLM Text Display | A resizable, auto-scrolling textarea perfectly suited for reading long LLM outputs. | | Output | 🔊 LLM Audio Save & Play | Saves the generated audio tensor to your output folder and provides an in-browser "Play" button. |
🛠️ Installation
Method 1: ComfyUI Manager (Recommended)
- Open ComfyUI Manager.
- Search for "Universal LLM Suite".
- Click Install and restart ComfyUI.
Method 2: Manual Install
- Open a terminal and navigate to your ComfyUI custom nodes directory:
cd ComfyUI/custom_nodes/ - Clone this repository:
git clone https://github.com/yourusername/ComfyUI-Universal-LLM-Suite.git - The suite will auto-install its python dependencies (
google-genaiandopenai) upon booting ComfyUI. Restart the server once cloned.
📝 Usage Guide
- Add a Configurator: Drop in a Configurator (Gemini or OpenAI) and paste your API Key.
- Setup Prompts: Use the
LLM Dual Promptnode to write your context. - Connect to Runner: Link the Configurator and Prompt fields to the
API Runner. - View Outputs: Connect the
response_textto theLLM Text Display, and theresponse_audioto theLLM Audio Save & Play.
(Tip: Both the Gemini and OpenAI configurators have a "Reload Model" button to quickly apply API Key changes without restarting ComfyUI).
⚠️ Notes on Gemini Voice Capabilities
Currently, the Google explicitly restricts its highly expressive Gen-Audio voices to a set of specific mythological personas (e.g., Puck, Charon, Kore, Fenrir, Aoede) when using native bidirectional/multimodal APIs. These are specifically tuned for dramatic reading and virtual personalities, unlike the robotic voices from typical TTS systems.
📄 License
MIT License