gemini / 2.5-flash / editImage:
The CivitaiImageGenGemini25FlashEditImage node is designed to enhance and modify existing images using the Gemini 2.5-Flash editing capabilities. This node allows you to input reference images and apply various transformations and enhancements to achieve the desired artistic effect. It is particularly useful for AI artists looking to refine their creations by adjusting specific elements or adding new features to their images. The node leverages advanced image editing techniques to provide high-quality results, making it an essential tool for those seeking to elevate their digital artwork.
gemini / 2.5-flash / editImage Input Parameters:
prompt
The prompt parameter is a string input that guides the editing process by providing textual instructions or descriptions of the desired changes. This parameter is crucial as it directly influences the outcome of the image editing, allowing you to specify the artistic direction or specific elements to be emphasized. The default value is an empty string, and it supports multiline input for detailed descriptions.
images
The images parameter requires you to provide reference images that will be used as the basis for editing. You can input between 1 to 4 images, which serve as the foundation for the modifications. This parameter is essential for contextualizing the edits and ensuring that the final output aligns with your artistic vision.
output_format
The output_format parameter allows you to choose the format of the edited image. Options include jpeg, png, and webP, with the default being an empty string, which typically defaults to a standard format. This parameter affects the quality and compatibility of the output image with various platforms and applications.
image_metadata
The image_metadata parameter is a string input that lets you attach external metadata to the image. This metadata can include information about the editing process, copyright details, or any other relevant data you wish to store with the image. The default value is an empty string.
negative_prompt
The negative_prompt parameter is a string input that specifies elements or features to avoid during the editing process. By providing a negative prompt, you can ensure that certain unwanted aspects are not included in the final image. The default value is an empty string, and it supports multiline input.
guidance_scale
The guidance_scale parameter is a float value that determines the strength of the guidance provided by the prompt. It ranges from 1.0 to 10.0, with a default value of 3.5. A higher value increases the influence of the prompt on the editing process, resulting in more pronounced changes.
seed
The seed parameter is an integer that controls the randomness of the editing process. By setting a specific seed value, you can achieve consistent results across multiple runs. The default value is 0, with a range from 0 to 4294967295.
quantity
The quantity parameter specifies the number of edited images to generate. You can choose between 1 to 10 images, with the default being 1. This parameter allows you to create multiple variations of the edited image in a single execution.
image_size
The image_size parameter is a string input that defines the dimensions of the output image. The default value is square_hd, which typically refers to a high-definition square format. This parameter ensures that the output image meets your size requirements.
enable_prompt_expansion
The enable_prompt_expansion parameter is a boolean that, when enabled, allows the node to expand the prompt with additional context or details. The default value is False. This feature can enhance the richness of the editing process by incorporating more nuanced interpretations of the prompt.
enable_safety_checker
The enable_safety_checker parameter is a boolean that activates a safety mechanism to prevent the generation of inappropriate or harmful content. The default value is False. Enabling this feature ensures that the output adheres to ethical and community standards.
loras
The loras parameter is a specialized input for incorporating additional layers or adjustments into the editing process. This parameter allows for advanced customization and fine-tuning of the image, providing greater control over the final result.
use_pro
The use_pro parameter is a boolean that, when enabled, utilizes professional-grade features or settings for the editing process. The default value is False. This option is ideal for users seeking the highest quality output and advanced editing capabilities.
api_config
The api_config parameter is a configuration setting for connecting to the Civitai API. It allows for authentication and access to additional resources or features. The default configuration uses the CIVITAI_API_TOKEN or stored OAuth login.
gemini / 2.5-flash / editImage Output Parameters:
edited_images
The edited_images parameter provides the final output of the node, which consists of the edited images based on the input parameters and reference images. This output is crucial as it represents the culmination of the editing process, showcasing the transformations and enhancements applied to the original images.
gemini / 2.5-flash / editImage Usage Tips:
- Experiment with different
promptandnegative_promptcombinations to achieve unique artistic effects. - Utilize the
guidance_scaleto control the intensity of the edits, adjusting it based on the complexity of the prompt. - Use the
seedparameter to replicate successful edits or explore variations by changing the seed value.
gemini / 2.5-flash / editImage Common Errors and Solutions:
Invalid image format
- Explanation: The provided reference images are not in a supported format.
- Solution: Ensure that the images are in a compatible format such as JPEG, PNG, or WebP.
Missing prompt
- Explanation: The
promptparameter is empty, leading to undefined editing instructions. - Solution: Provide a detailed prompt to guide the editing process effectively.
API authentication failed
- Explanation: The node is unable to connect to the Civitai API due to authentication issues.
- Solution: Verify your API token or OAuth login credentials in the
api_configparameter.
