Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| NANOBANANA_MODEL | No | Default model to use (gemini-3.1-flash-image-preview or gemini-3-pro-image-preview). | |
| GOOGLE_AI_API_KEY | Yes | Google AI API key obtained from Google AI Studio. |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| gemini_chat | Chat with Gemini 3.1 Flash model. Supports multi-turn conversations with up to 10 reference images. |
| gemini_generate_image | Generate images using Gemini's image generation capabilities. Supports session-based image consistency for maintaining style/character across multiple generations. |
| gemini_edit_image | Edit or modify existing images based on prompts. Supports session history references ('last' or 'history:N') and image consistency features. |
| get_image_history | Get the list of generated/edited images in a session for reference |
| clear_conversation | Clear conversation history for a specific conversation ID |
| set_aspect_ratio | Set the aspect ratio for subsequent image generation and editing in this session. Must be called before generating/editing images if a specific ratio is desired. |
| set_model | Set the Gemini model for this session. 'flash' for faster generation (default), 'pro' for higher quality. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |