Skip to main content
Glama

generate_image

Generate AI images from text prompts or edit existing images via OpenAI-compatible services. Choose aspect ratio, size, and model to match your needs.

Instructions

生成 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

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modelNo模型名称
promptYes图片描述文本
imageSizeNo图片尺寸
aspectRatioNo宽高比
Behavior3/5

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

No annotations are provided, so the description must carry the behavioral burden. It adds 'OpenAI 兼容协议' and default values for parameters, which is useful context. However, it does not disclose the return format, whether the operation is synchronous, or any side effects beyond generation.

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 concise and front-loaded with the purpose, followed by a clear bulleted parameter list. Every sentence provides actionable information without fluff or repetition.

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?

All parameters are documented with defaults and enums, but the description omits the output format (e.g., image URL, base64) and lacks usage guidance relative to the sibling tool. For a generation tool with no output schema or annotations, this is a notable gap but still usable for parameter selection.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3. The description adds value by explicitly marking 'prompt' as required, listing all enum values for aspectRatio and imageSize, and providing default values for aspectRatio, imageSize, and model, which are not present in the schema descriptions.

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 '生成 AI 图片' (generate AI images) with the OpenAI-compatible protocol, giving a specific verb and resource. It distinguishes from the sibling tool 'edit_image' by explicitly focusing on generation rather than editing.

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

Usage Guidelines3/5

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

Usage is implied from the tool name and description (use for generating images vs editing), but there is no explicit guidance on when to prefer this tool over alternatives. No exclusions or alternative tool references 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/superboolgithub/nanobanana-mcp'

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