ComfyUI Extension: Groq Nodes
ComfyUI nodes for Groq API - chat, vision, audio, tool use, and batch processing
Custom Nodes (0)
README
ComfyUI GroqNodes
A comprehensive ComfyUI extension for the Groq API with support for chat, vision, audio transcription, tool use, and batch processing.
Features
- Chat Node: Text generation with conversation history support
- Vision Node: Image analysis with multi-image batch support
- Audio Node: Audio transcription with timing metadata
- Tool Use Node: Structured function calling with JSON schema validation
- Batch Node: Concurrent request processing with progress tracking
Installation
- Clone this repository into your ComfyUI custom_nodes folder:
cd ComfyUI/custom_nodes
git clone https://github.com/yourusername/ComfyUI-GroqNodes.git
- Install dependencies:
cd ComfyUI-GroqNodes
pip install -r requirements.txt
- Set your Groq API key (choose one method): Option A: Using .env file (recommended)
cp .env.example .env
# Edit .env and add your API key
Option B: Using environment variable
export GROQ_API_KEY="your_api_key_here"
Option C: Direct input Provide the API key directly in each node's interface.
Usage
Basic Chat Example
- Add a "Groq Chat" node to your workflow
- Configure the model and parameters
- Connect a text input for your prompt
- Execute to get the response
Vision Example
- Load an image using ComfyUI's image loader
- Add a "Groq Vision" node
- Connect the image and provide a prompt
- Execute to analyze the image
Audio Transcription Example
- Add a "Groq Audio" node
- Provide the path to an audio file
- Execute to get the transcription
Configuration
Model configurations are stored in configs/models.json. You can modify this file to add or update available models.
Requirements
- Python 3.8+
- ComfyUI
- Groq API key (get one at https://console.groq.com)