google / nano-banana-2:
CivitaiImageGenGoogleNanoBanana2 is a powerful node designed to facilitate the generation of images using Google's advanced image generation technology. This node is part of the Civitai suite, which integrates various AI models to enhance creative workflows. The primary purpose of this node is to enable users to create high-quality images based on textual prompts, leveraging Google's Nano Banana 2 model. It offers a range of customization options, allowing you to specify the desired output format, aspect ratio, and resolution, among other parameters. This flexibility makes it an invaluable tool for AI artists looking to produce visually stunning and contextually relevant images. By utilizing this node, you can streamline your creative process, experiment with different styles, and achieve professional-grade results with ease.
google / nano-banana-2 Input Parameters:
prompt
The prompt parameter is a required input that serves as the textual description or idea you want to visualize. It guides the image generation process by providing context and direction to the AI model. The prompt can be a single word, a phrase, or a detailed description, and it supports multiline input for more complex ideas. This parameter is crucial as it directly influences the content and theme of the generated image.
output_format
The output_format parameter allows you to specify the desired file format for the generated image. Options include jpeg, png, and webP, with an empty string as the default, which may use a standard format. Choosing the right format can impact the image's quality and file size, making it important for optimizing storage and compatibility with different platforms.
image_metadata
The image_metadata parameter is an optional string input that lets you attach external metadata to the generated image. This metadata can include information such as the creation date, author, or any other relevant details you wish to store alongside the image. It is useful for cataloging and managing your image assets effectively.
negative_prompt
The negative_prompt parameter is an optional input that allows you to specify elements or themes you want to avoid in the generated image. By providing a negative prompt, you can refine the output and ensure that certain unwanted features are minimized or excluded, enhancing the relevance and quality of the final image.
aspect_ratio
The aspect_ratio parameter lets you define the proportions of the generated image. Available options include 1:1, 16:9, 9:16, 3:4, and 4:3, with 1:1 as the default. Selecting the appropriate aspect ratio is important for ensuring that the image fits the intended display or publication format.
num_images
The num_images parameter determines the number of images to generate in a single execution. It accepts integer values ranging from 1 to 4, with a default of 1. This parameter is useful for generating multiple variations of an image based on the same prompt, allowing for greater creative exploration and selection.
seed
The seed parameter is an optional integer input that controls the randomness of the image generation process. It accepts values from 0 to 4294967295, with a default of 0. By setting a specific seed, you can reproduce the same image output across different sessions, which is useful for consistency and experimentation.
api_config
The api_config parameter is an optional configuration setting that allows you to specify authentication details for connecting to the Civitai API. It defaults to using the CIVITAI_API_TOKEN or stored OAuth login. This parameter is essential for accessing the full capabilities of the Civitai platform and ensuring secure communication with the API.
google / nano-banana-2 Output Parameters:
images
The images output parameter provides the generated image(s) based on the input prompt and other specified parameters. This output is crucial as it represents the final visual product of the node's execution, ready for use in various creative projects or further processing.
google / nano-banana-2 Usage Tips:
- Experiment with different prompts and negative prompts to fine-tune the image output and achieve the desired artistic effect.
- Utilize the
aspect_ratioandresolutionparameters to ensure that the generated images meet the specific requirements of your project or platform. - Use the
seedparameter to reproduce specific image outputs, which can be helpful for iterative design processes or when collaborating with others.
google / nano-banana-2 Common Errors and Solutions:
Invalid API Token
- Explanation: This error occurs when the API token provided in the
api_configparameter is invalid or missing. - Solution: Ensure that you have a valid
CIVITAI_API_TOKENset in your environment or provide the correct OAuth login details in theapi_config.
Unsupported Output Format
- Explanation: This error arises when an unsupported value is specified for the
output_formatparameter. - Solution: Verify that the
output_formatis set to one of the supported options:jpeg,png, orwebP.
Exceeded Image Limit
- Explanation: This error occurs when the
num_imagesparameter is set to a value outside the allowed range of 1 to 4. - Solution: Adjust the
num_imagesparameter to a value within the specified range to comply with the node's limitations.
