Visit ComfyUI Online for ready-to-use ComfyUI environment
Powerful image generation tool for ComfyUI using Google's Gemini API, tailored for AI-generated images with seamless integration.
The Google-Gemini node, specifically designed for the ComfyUI platform, serves as a powerful tool for generating images using Google's Gemini API. This node is tailored to facilitate the creation of AI-generated images by leveraging the capabilities of the Gemini 2.0 image generation model. It integrates seamlessly with the ComfyUI environment, allowing users to harness advanced image generation techniques without needing extensive technical knowledge. The node is designed to handle API interactions, manage logging, and ensure compatibility with necessary software versions, making it a robust solution for AI artists looking to explore creative possibilities with AI-generated imagery.
The API Key is a crucial input parameter that allows the node to authenticate and interact with the Google Gemini API. It is essential for accessing the image generation capabilities provided by the API. Users can input their API key directly, ensuring secure and personalized access to the service. There are no specific minimum or maximum values for this parameter, but it must be a valid key provided by Google.
The Seed parameter is used to initialize the random number generator, which influences the variability and uniqueness of the generated images. By setting a specific seed value, users can reproduce the same image output across different runs. If the seed is set to 0, the node will automatically generate a random seed. The parameter accepts integer values, with no explicit minimum or maximum, but typically ranges within the limits of standard integer values in Python.
The primary output of the Google-Gemini node is the Generated Image, which is a 512x512 pixel image created using the Gemini API. This image represents the visual output based on the input parameters and the underlying AI model's capabilities. It is returned as a PIL Image object, ready for further processing or display within the ComfyUI environment.
In addition to the image, the node outputs a combined text log that includes processing logs and API response details. This text provides insights into the node's operations, any errors encountered, and the API's response, offering users a comprehensive view of the process and results.
<error_message>
pip install -q -U google-genai
to ensure compatibility.pip install -U Pillow>=9.5.0
to ensure optimal performance and compatibility.RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Playground, enabling artists to harness the latest AI tools to create incredible art.