generateImages

Generates images given a GenAI model and a prompt.

Return

a com.google.genai.types.GenerateImagesResponse instance that contains the generated images.

Parameters

model

the name of the GenAI model to use for generating images

prompt

the prompt to generate images

config

a com.google.genai.types.GenerateImagesConfig instance that specifies the optional configurations