Skip to main content
Glama

generate_image

Create images from text prompts with adjustable aspect ratio, resolution, style, and safety settings. Supports multiple variations and reference images for consistency.

Instructions

Generate an image from a text prompt using Google Gemini.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modelNoModel override. Options: - "gemini-2.5-flash-image" (default): Fast, cheap - "gemini-3-pro-image-preview": Best text, complex edits - "gemini-3.1-flash-image-preview": Panoramic, fast 4K
promptYesText description of the image to generate
qualityNoQuality preset: "fast" (cheapest), "balanced" (good quality), or "quality" (best output). Mutually exclusive with 'model'.
image_sizeNoResolution: "1K" (default), "2K", or "4K"
temperatureNoCreativity level 0.0-2.0
aspect_ratioNoImage dimensions (1:1, 16:9, 9:16, etc.)1:1
output_formatNoFile format: "png", "jpeg", or "webp"png
safety_settingNoSafety filter (preset:strict, preset:relaxed)preset:strict
output_filenameNoCustom filename (optional, auto-generated if not provided)
thinking_budgetNoThinking budget for extended reasoning (0-24576 tokens). Higher = deeper reasoning.
number_of_imagesNoGenerate 1-4 variations (default: 1)
reference_imagesNoPaths to reference images for style/character consistency (up to 14 images)
person_generationNoPeople in images: "allow", "adults_only" (no minors), or "block" (no people). Only enforced with Imagen models. Gemini has built-in person restrictions.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior2/5

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

With no annotations, the description bears full responsibility for behavioral disclosure. It does not mention safety, cost, rate limits, or whether the operation is pure generation. The single sentence is insufficient for a tool with 13 parameters.

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 a single, front-loaded sentence. It is concise but could be expanded with key details without becoming verbose. No extraneous information.

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

Completeness2/5

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

Given the complexity (13 parameters, many sibling tools) and the presence of an output schema, the description is too brief. It omits expected context like output format, variation generation, or reference image support, relying entirely on the schema.

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 baseline is 3. The description adds no parameter-level detail beyond the schema, but the schema itself is well-documented (e.g., model options, quality). The description's silence does not degrade the score below baseline.

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

Purpose4/5

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

The description clearly states the verb 'generate' and resource 'image', specifying the action and input source (text prompt) and model (Google Gemini). It implicitly distinguishes from siblings like edit_image or analyze_image, but does not explicitly differentiate.

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

Usage Guidelines2/5

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

No guidance on when to use this tool versus alternatives (e.g., edit_image, upscale_image). No context on prerequisites or exclusions. The agent must infer usage from the name alone.

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/Tehnolabs/pixelforge-mcp'

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