ComfyUI > Nodes > Comfy Nano Banana > Nano Banana Gemini

ComfyUI Node: Nano Banana Gemini

Class Name

NanoBananaGeminiImageNode

Category
Nano Banana
Author
darkamenosa (Account age: 4324days)
Extension
Comfy Nano Banana
Latest Updated
2025-09-09
Github Stars
0.04K

How to Install Comfy Nano Banana

Install this extension via the ComfyUI Manager by searching for Comfy Nano Banana
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter Comfy Nano Banana in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Nano Banana Gemini Description

Versatile tool for generating images and text using Google Gemini API, beneficial for AI artists and creators.

Nano Banana Gemini:

The NanoBananaGeminiImageNode is a versatile tool designed to generate both images and text using the Google Gemini API. This node is particularly beneficial for AI artists and creators who wish to leverage advanced AI capabilities to produce creative content. By integrating with the Gemini API, the node can interpret prompts and generate corresponding outputs, whether they are visual or textual. This dual functionality allows users to explore a wide range of creative possibilities, making it a valuable asset for projects that require both image and text generation. The node's ability to handle concurrent batch processing further enhances its efficiency, making it suitable for large-scale projects or rapid prototyping.

Nano Banana Gemini Input Parameters:

prompt

The prompt parameter is a crucial input that guides the generation process. It serves as the initial text or idea that the node uses to create images or text. The quality and specificity of the prompt can significantly impact the output, as a well-defined prompt can lead to more accurate and relevant results. There are no strict minimum or maximum values for this parameter, but it should be clear and descriptive to achieve the best outcomes.

model

The model parameter specifies the type of model to be used for generation. It determines whether the node will produce images or text. The model name should include the word "image" if image generation is desired. This parameter is essential for directing the node's functionality and ensuring the correct type of content is generated.

images

The images parameter is used when the input involves image data. It can be a tensor representing one or more images, which the node will process. This parameter is optional and primarily used when the task involves image manipulation or enhancement. The input should be formatted correctly to ensure proper processing.

seed

The seed parameter is used to initialize the random number generator, which can affect the variability and reproducibility of the generated content. By setting a specific seed, users can achieve consistent results across multiple runs. This parameter is optional, and if not provided, the node will use a random seed.

system_prompt

The system_prompt parameter provides additional context or instructions to the model, influencing the style or tone of the generated content. It acts as a secondary prompt that can refine the output further. This parameter is optional but can be useful for achieving specific stylistic goals.

top_p

The top_p parameter is relevant for text generation, controlling the diversity of the output by limiting the cumulative probability of token selection. A lower value results in more focused outputs, while a higher value allows for more creative and diverse results. The default value is typically set to 0.95, but it can be adjusted based on the desired level of creativity.

max_output_tokens

The max_output_tokens parameter sets the maximum number of tokens for the generated text. It helps control the length of the output, ensuring it remains within a manageable size. The default value is 8192 tokens, but it can be adjusted to suit specific requirements.

Nano Banana Gemini Output Parameters:

images

The images output parameter provides the generated images as a result of the node's processing. These images are typically in tensor format and can be used for further manipulation or directly in creative projects. The quality and content of the images depend on the input parameters and the model used.

text

The text output parameter contains the generated text, which is produced based on the input prompts and model configuration. This text can be used for various applications, such as storytelling, content creation, or as input for other nodes. The coherence and relevance of the text are influenced by the prompt and system prompt parameters.

Nano Banana Gemini Usage Tips:

  • To achieve the best results, provide clear and specific prompts that accurately describe the desired output.
  • Experiment with different model configurations and parameters to explore a variety of creative possibilities.
  • Use the seed parameter to ensure reproducibility when generating content for iterative projects.

Nano Banana Gemini Common Errors and Solutions:

Error in batch <index + 1>: <error_str>

  • Explanation: This error occurs when there is an issue during the batch processing of inputs, which could be due to incorrect input formatting or an internal processing error.
  • Solution: Check the input parameters for correctness, especially the format and type of the images and prompt inputs. Ensure that the model name is correctly specified for the desired output type.

Error processing image from response: <exception_message>

  • Explanation: This error indicates a problem while handling the image data returned from the API, possibly due to incorrect data formatting or an unexpected response structure.
  • Solution: Verify that the API response is correctly formatted and that the image data is accessible. If the issue persists, review the API documentation for any changes or updates that might affect the response structure.

Nano Banana Gemini Related Nodes

Go back to the extension to check out more related nodes.
Comfy Nano Banana
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.