generate_image
Turn a text prompt into one or more new images. Saves generated images to disk and appends them to an HTML gallery, returning absolute paths for quick viewing.
Instructions
Generate one or more new images from a text prompt using the Gemini web app.
The prompt should describe the desired image in as much visual detail as helpful
(subject, style, composition, lighting, etc.) - it is sent to Gemini as an image
generation request. Newly generated images are saved to disk and appended to the
cumulative HTML gallery; this tool returns the absolute paths of the new images plus
the gallery path so the result can be viewed.
Parameters
prompt: str
A description of the image to generate.
model: str | None, optional
Model name/alias/id to use (see list_models). Defaults to the server's
configured default model, or the account's own default if unset.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | ||
| prompt | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |