edit Image
public CompletableFuture<EditImageResponse> editImage(String model, String prompt, List<ReferenceImage> referenceImages, EditImageConfig config)
Asynchronously edits an image given a GenAI model, a prompt, and a list of reference images.
Return
a com.google.genai.types.EditImageResponse instance that contains the edited image.
Parameters
model
the name of the GenAI model to use for editing capabilities
prompt
the prompt to edit the image
reference Images
a < to send to use for editing. The 5 types of reference images are: , , , , ,
config
a com.google.genai.types.EditImageConfig instance that specifies the optional configurations