Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
NANOBANANA_API_KEYYesAPI key for the image generation service.
NANOBANANA_BASE_URLYesBase URL of the API (e.g., https://openrouter.ai/api).
NANOBANANA_OUTPUT_DIRYesDirectory where generated images will be saved.
NANOBANANA_DEFAULT_MODELNoDefault model for image generation.google/gemini-2.5-flash-image-preview
NANOBANANA_DEFAULT_IMAGE_SIZENoDefault image size (e.g., 1K, 2K, 4K).1K
NANOBANANA_DEFAULT_ASPECT_RATIONoDefault aspect ratio for generated images.1:1

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
generate_imageA

生成 AI 图片(OpenAI 兼容协议)。

参数说明:

  • prompt: 图片描述(必填)

  • aspectRatio: 宽高比,可选值: 1:1, 16:9, 9:16, 4:3, 3:4, 2:3, 3:2, 4:5, 5:4, 21:9。默认: 1:1

  • imageSize: 图片尺寸,可选值: 1K, 2K, 4K。默认: 1K

  • model: 模型名称。默认: google/gemini-2.5-flash-image-preview

edit_imageA

基于参考图片生成新图片(图生图)。

参数说明:

  • prompt: 图片描述(必填)

  • referenceImageUrl: 参考图片的 URL(必填)

  • aspectRatio: 宽高比

  • imageSize: 图片尺寸

  • model: 模型名称

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

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/superboolgithub/nanobanana-mcp'

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