6f20d3837e43c41af2ce3821797d84a15e00a0f2
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:
export GROQ_API_KEY="your_api_key_here"
Or provide it directly in the node 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)
Languages
Python
100%