Skip to main content
Glama

generate_image

Generate images using Google Gemini AI models. Choose between fast generation with Gemini 2.0 Flash or high-quality results with Imagen 3.0. Control aspect ratios, exclude unwanted elements, and save images locally.

Instructions

Generate images using Google Gemini models. Supports 'flash' (fast, gemini-2.0-flash-exp) and 'pro' (high quality, imagen-3.0) models.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
promptYesImage description prompt (1-8192 characters)
modelNoModel to use: 'flash' (fast, gemini-2.0-flash-exp) or 'pro' (high quality, imagen-3.0)flash
aspect_ratioNoImage aspect ratio1:1
negative_promptNoElements to exclude from the image
output_dirNoOutput directory path (default: ./nanobanana-images)
countNoNumber of images to generate (1-4)
Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/saroby/nanobanana-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server