Google AI - Nano Banana (NB2/Pro):
The GoogleAI_NanoBananaNode is a powerful and versatile node designed to generate high-quality images using advanced AI models. It serves as a central component in the ComfyUI suite, offering a range of capabilities that cater to various artistic needs. This node supports multiple models, including the latest Nano Banana 2, Pro, and Original versions, each optimized for different image generation tasks. With its ability to handle 14 official aspect ratios and multiple image sizes, the node provides flexibility and precision in creating visually stunning content. The GoogleAI_NanoBananaNode is particularly beneficial for artists seeking to leverage AI technology to produce creative and unique images, as it combines robust model capabilities with user-friendly features.
Google AI - Nano Banana (NB2/Pro) Input Parameters:
system_instruction
This parameter allows you to provide specific instructions or guidelines that the AI model should follow when generating content. It helps in tailoring the output to meet particular artistic or thematic requirements. There are no strict minimum or maximum values, but the clarity and relevance of the instructions can significantly impact the quality of the generated images.
reference_images_b64
This parameter accepts a list of base64-encoded reference images. These images serve as visual cues or inspiration for the AI model, influencing the style, composition, or elements of the generated output. The number of reference images can vary, but providing relevant and high-quality references can enhance the coherence and creativity of the results.
aspect_ratio
The aspect ratio parameter defines the proportional relationship between the width and height of the generated image. It supports 14 official aspect ratios, allowing you to choose the most suitable format for your artistic vision. Common options include "1:1" for square images or "16:9" for widescreen formats. Selecting the right aspect ratio is crucial for ensuring the image fits the intended display or use case.
image_size
This parameter specifies the resolution of the generated image, with options ranging from "512px" to "4K". The choice of image size affects the level of detail and clarity in the output, with larger sizes providing more detail but requiring more computational resources. Selecting an appropriate image size depends on the intended use of the image, such as web display or print.
seed
The seed parameter is a numerical value that initializes the random number generator used by the AI model. It ensures reproducibility of results, allowing you to generate the same image consistently by using the same seed value. While there is no fixed range, varying the seed can lead to different creative outcomes, making it a useful tool for exploring diverse artistic possibilities.
safety_settings
This optional parameter allows you to configure safety thresholds and settings to ensure the generated content adheres to specific ethical or quality standards. It can include various checks and balances to prevent the creation of inappropriate or undesirable content. Proper configuration of safety settings is important for maintaining the integrity and acceptability of the generated images.
timeout
The timeout parameter sets the maximum duration (in seconds) for the image generation process. It ensures that the operation completes within a reasonable timeframe, preventing excessive delays. The default value is typically set to 300 seconds, but it can be adjusted based on the complexity of the task and available computational resources.
Google AI - Nano Banana (NB2/Pro) Output Parameters:
IMAGE
The IMAGE output parameter provides the generated image as a binary data stream. This output is the primary result of the node's operation, representing the visual content created by the AI model based on the provided inputs and parameters. The quality and characteristics of the image depend on the chosen model, aspect ratio, image size, and other input settings.
STRING
The STRING output parameter contains a textual description of the model used for generating the image. This description provides context and information about the specific AI model and configuration applied during the image creation process. It is useful for documentation, analysis, or further refinement of the artistic workflow.
Google AI - Nano Banana (NB2/Pro) Usage Tips:
- Experiment with different aspect ratios and image sizes to find the best combination for your artistic goals.
- Use the seed parameter to explore variations of the same concept, ensuring a diverse range of creative outputs.
- Provide clear and concise system instructions to guide the AI model in generating content that aligns with your vision.
- Utilize reference images to influence the style and composition of the generated output, enhancing its relevance and appeal.
Google AI - Nano Banana (NB2/Pro) Common Errors and Solutions:
"Image generation timeout"
- Explanation: The image generation process exceeded the specified timeout duration.
- Solution: Increase the timeout parameter value to allow more time for complex image generation tasks.
"Invalid aspect ratio"
- Explanation: The provided aspect ratio is not supported by the node.
- Solution: Ensure that the aspect ratio matches one of the 14 official options supported by the node.
"Reference image format error"
- Explanation: One or more reference images are not properly encoded in base64 format.
- Solution: Verify that all reference images are correctly encoded and provided in the expected format.
