Skip to main content
Glama

generate_image

Create images from text descriptions using Google Gemini's AI models. Choose between fast generation for high-volume tasks or advanced models for professional assets with up to 4K resolution.

Instructions

Generate an image from a text prompt using Google Gemini's image generation.

Models available:

  • nano-banana (gemini-2.5-flash-image): Fast, efficient, 1024px resolution. Best for high-volume tasks.

  • nano-banana-pro (gemini-3-pro-image-preview): Advanced, up to 4K resolution, with thinking mode. Best for professional assets.

Tips for better results:

  • Describe the scene narratively, don't just list keywords

  • Be specific about lighting, camera angles, and styles

  • Use photography terms for photorealistic images

  • Specify aspect ratio based on your use case

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
promptYesThe text prompt describing the image to generate. Be descriptive and specific.
modelNoThe model to use. nano-banana is faster, nano-banana-pro is higher quality with up to 4K.nano-banana
aspect_ratioNoThe aspect ratio of the generated image.1:1
image_sizeNoThe resolution of the output (only for nano-banana-pro). Options: 1K, 2K, 4K.1K
filenameNoOptional filename for the output image (without extension). If not provided, a timestamp-based name will be used.
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure. It adds useful context about model capabilities (resolution, speed, thinking mode) and tips for effective prompting, but it does not disclose critical behavioral traits such as rate limits, authentication requirements, cost implications, or what happens on failure (e.g., error handling). The description is informative but incomplete for safe operation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured and appropriately sized, with a clear purpose statement followed by model details and tips. Every sentence earns its place by providing actionable information, though the tips section could be slightly more concise. It is front-loaded with the core functionality.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity (image generation with multiple parameters) and lack of annotations or output schema, the description is moderately complete. It covers purpose, model options, and usage tips, but it lacks details on output format (e.g., file type, return structure), error conditions, and operational constraints like rate limits or costs, which are important for a generative AI tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents all parameters thoroughly. The description adds marginal value by reinforcing prompt specificity and mentioning aspect ratio in the tips, but it does not provide additional semantic meaning beyond what the schema descriptions already cover (e.g., the schema's prompt description says 'Be descriptive and specific,' mirroring the tips). Baseline 3 is appropriate when the schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose: 'Generate an image from a text prompt using Google Gemini's image generation.' This specifies the verb ('generate'), resource ('image'), and technology ('Google Gemini's image generation'), distinguishing it from sibling tools like 'compose_images' and 'edit_image' which imply different operations.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides clear context for when to use this tool (image generation from text prompts) and includes tips for better results, but it does not explicitly state when to use alternatives like 'compose_images' or 'edit_image'. The model descriptions ('Best for high-volume tasks' vs 'Best for professional assets') offer some guidance, but no explicit exclusions or comparisons to siblings are provided.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

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/Pgarciapg/mcp-nano-banana'

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