Enjoy the latest GEMINI V2 API for ComfyUI - generate images, analyze content, and use multimodal capabilities with Google's Gemini models
Enjoy Google Gemini API for ComfyUI generate images, transcribe audio, sumarize videos. Making a separate implemetation of my old IF_AI tools for easy installation
cd ComfyUI/custom_nodes
git clone https://github.com/if-ai/ComfyUI-IF_Gemini
cd ComfyUI-IF_Gemini
pip install -r requirements.txt
The Gemini node appears in the "ImpactFrames💥🎞️/LLM" category in the ComfyUI node browser.
Restart ComfyUI
Add your Gemini API key using one of these methods:
Shell configuration file (recommended for macOS/Linux):
# In ~/.zshrc, ~/.bashrc, or ~/.bash_profile:
export GEMINI_API_KEY=your_api_key_here
Then restart your terminal or run source ~/.zshrc
(or relevant file)
System environment variable:
export GEMINI_API_KEY=your_api_key
Directly in the node: Enter your API key in the "external_api_key" field
In a .env
file in the custom node directory:
GEMINI_API_KEY=your_api_key
Add the "IF LLM Gemini AI" node to your workflow
Verify your API key using the "Verify API Key" button in the node
Configure the node:
Set additional parameters as needed:
MIT
If you find this tool useful, please consider supporting my work by: