generate_image
Generate an image from a prompt and save it to your chosen local directory, returning the image URL or base64 data for immediate use.
Instructions
Generate an image, preserve the original URL or b64_json response, save files to the user-selected directory, and return MCP image content.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | No | ||
| size | No | ||
| model | No | ||
| prompt | Yes | ||
| stream | No | ||
| quality | No | ||
| provider | No | Provider id from list_image_providers. | image2 |
| imageSize | No | ||
| background | No | ||
| moderation | No | ||
| aspectRatio | No | ||
| output_format | No | ||
| partial_images | No | ||
| save_directory | Yes | Required absolute local directory selected by the user before generation. The response JSON and generated images are saved here. | |
| response_format | No | ||
| reference_images | No | Absolute local image paths. Banana supports up to 14; Image2 uses edit_image for references. | |
| custom_parameters | No | Additional JSON fields for this request. Reserved fields cannot be overridden. | |
| output_compression | No |