ComfyUI_Gemini_Flash
ComfyUI_Gemini_Flash is a custom node for ComfyUI, integrating the capabilities of the Gemini 1.5 Flash model. This node supports text and vision-based prompts, allowing users to analyze and adapt images to text prompts for text2image tasks.
Features
- Text and Vision Integration: Toggle between text-only or vision-enabled mode for versatile content generation.
- API Key Management: Securely save and manage your Gemini API key.
- Simple Configuration: Easy setup with automated configuration file creation.
- Proxy Support: Now support for using proxies, where the Gemini Flash model is not freely accessible.
Installation
- Clone the repository to your ComfyUI custom nodes directory.
- Ensure
config.json
is in the root directory of the node. - Start using the Gemini Flash node in ComfyUI!
Usage
- Enter your Gemini API key in the provided input.
- Toggle the
vision
option as needed. - Provide your prompt and optional image input.
- Generate content using the powerful Gemini 1.5 Flash model.
Proxy Support
This node now includes support for using proxies, which is particularly useful in regions where the Gemini Flash model is not freely accessible.
- Setup Squid Proxy: Follow this guide to set up Squid proxy on a VPS in a region where Gemini Flash is free available (e.g., USA, India).
- Fill in the proxy parameter with the proxy credentials: :
http(s)://PROXY_USER:PROXY_PASS@PROXY_ADDRESS:PROXY_PORT
- All requests to Gemini will now route through the specified HTTP proxy.
About Gemini 1.5 Flash
The Gemini 1.5 Flash model by Google is designed to be the fastest and most cost-efficient model for high volume tasks. It addresses developers' needs for lower latency and cost, making it ideal for large-scale applications. With a rate limit increased to 1000 requests per minute and the removal of the request per day limit, Gemini 1.5 Flash provides robust performance for demanding applications. Additionally, tuning support for the model is available, allowing for customization to meet specific performance thresholds without additional per-token costs.
Acknowledgements
This project was made possible thanks to the contributions of the ComfyUI community and the developers of the Gemini model at Google. Special thanks to all the contributors and users for their continuous support and feedback.