Skip to main content
Glama

generate_image

Generate AI images from text prompts, edit existing images, and preserve character consistency across outputs using multiple providers.

Instructions

Generate images using AI. Supports multiple providers (Antigravity/Gemini, OpenAI DALL-E, etc.). Use 'model' parameter to specify provider:model format.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
countNoNumber of images to generate (1-4). Default: 1
modelNoModel specification in 'provider:model' format (e.g., 'openai:dall-e-3', 'antigravity:gemini-3-pro-image'). Defaults to DEFAULT_IMAGE_PROVIDER:DEFAULT_IMAGE_MODEL environment variables, or 'antigravity:gemini-3-pro-image'.
promptYesDescription of the image to generate or editing instruction
file_nameNoCustom filename (with or without extension)
session_idNoSession ID for character consistency across generations (Antigravity only)
input_imageNoPath to an existing image for editing
output_pathNoCustom directory for saving images. Default: current working directory
aspect_ratioNoAspect ratio: 1:1 (default), 16:9, 9:16, 3:4, 4:3, etc.
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It fails to mention side effects like file creation or modification (implied by output_path), authentication requirements (despite auth sibling tools), or return values. The brief description provides minimal behavioral context.

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

Conciseness5/5

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

The description is two sentences, immediately states the main purpose, and includes useful provider context without fluff. Every word earns its place.

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?

With 8 parameters, no output schema, and no annotations, the description is too sparse. It does not explain what the tool returns (e.g., saved file paths) or mention editing capability via input_image. For a mutation tool that likely creates files, this is a significant gap.

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 a small hint about using the model parameter in provider:model format, but this is already covered in the schema's model parameter description. No additional semantic value beyond the schema.

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 states 'Generate images using AI' with a specific verb and resource, clearly distinguishing it from sibling auth/quota tools. It also mentions multiple providers and the model parameter format, reinforcing its function.

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 clearly implies usage for image generation, and the sibling tools are all auth/quota related, so there is no ambiguity about when to use this tool. However, it does not explicitly discuss alternatives or exclusions, which keeps it from a 5.

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/jkalasas/artifex-mcp'

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