Nodes Browser

ComfyDeploy: How ComfyUI_Gemini_Flash works in ComfyUI?

What is 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.

How to install it in ComfyDeploy?

Head over to the machine page

  1. Click on the "Create a new machine" button
  2. Select the Edit build steps
  3. Add a new step -> Custom Node
  4. Search for ComfyUI_Gemini_Flash and select it
  5. Close the build step dialig and then click on the "Save" button to rebuild the machine

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.

proxy

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

  1. Clone the repository to your ComfyUI custom nodes directory.
  2. Ensure config.json is in the root directory of the node.
  3. Start using the Gemini Flash node in ComfyUI!

Usage

  1. Enter your Gemini API key in the provided input.
  2. Toggle the vision option as needed.
  3. Provide your prompt and optional image input.
  4. 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.

  1. 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).
  2. Fill in the proxy parameter with the proxy credentials: : http(s)://PROXY_USER:PROXY_PASS@PROXY_ADDRESS:PROXY_PORT
  3. 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.