Image Tools
Image generation and editing tools based on OpenAI gpt-image-1 model:
image_seeimage_genimage_edit
Image generation and editing tools based on Google imagen-3 model:
imagen3_genimagen3_edit
Documentation
image_gen
Generate an image based on a text prompt and save it to a file.
Parameters
prompt
The text prompt describing the image to generate.
quality
The quality of the generated image, with High being a good default.
size
The size of the generated image, with Square1024 being a good default.
extension
The file format of the generated image, with Png being a good default.
background
The background setting for the generated image, with Auto being a good default.
number_of_images
The number of images to generate which must be between 1 and 4, with 1 being a good default.
output_path
The path where the generated image will be saved. If it's a folder, a file with a UUID name will be created in that folder. If it's a file path, the image will be saved with that filename.
image_edit
Edit one or more images based on a text prompt and save the edited version to a file.
Parameters
input_image_paths
Paths to the image files to be edited. Multiple images can be provided to generate a response based on all of them.
prompt
The text prompt describing how to edit the image(s).
output_path
The path where the edited image will be saved. If it's a folder, files with UUID names will be created in that folder. If it's a file path with extension, the image will be saved with that filename.
mask_path
The path to an optional mask image that identifies which areas of the image to edit. Areas of the mask that are white will be edited, while areas that are black will be preserved.
quality
The quality of the edited image, with High being a good default.
size
The size of the edited image, with Square1024 being a good default.
background
The background setting for the edited image, with Auto being a good default.
imagen3_gen
Generate image(s) using Google's Imagen 3 model based on a text prompt and save them to files.
Parameters
prompt
The text prompt describing the image to generate.
number_of_images
The number of images to generate (1-4).
aspect_ratio
The aspect ratio of the generated image.
output_path
The path where the generated image(s) will be saved. If it's a folder, files with UUID names will be created in that folder. If it's a file path, the first image will be saved with that filename.
imagen3_edit
Edit images using Google's Gemini model based on a text prompt and input images, saving the result to a file.
Parameters
input_image_paths
Paths to the image files to be edited. Multiple images can be provided to generate a response based on all of them.
prompt
The text prompt describing how to edit or combine the images.
output_path
The path where the edited image(s) will be saved. If it's a folder, files with UUID names will be created in that folder. If it's a file path with extension, the image will be saved with that filename.