Skip to main content
Glama

generate_image

Generates one or more images from text descriptions using providers like SiliconFlow or OpenAI. Ideal for illustrations, posters, social media graphics, or concept visualization.

Instructions

根据文字描述生成一张或多张图片。

向图片生成模型发送文字描述(prompt),模型会生成对应的图片并返回图片 URL。 支持多个提供商,默认使用硅基流动(免费额度)。

model 参数不传时使用默认模型。不同提供商默认模型不同:

  • siliconflow: black-forest-labs/FLUX.1-dev(高质量开源模型)

  • openai: dall-e-3

  • custom: 由部署者自定

你也可以传入自己熟悉的任意模型名称(只要在你的提供商平台可用)。

size 参数控制图片尺寸:

  • siliconflow 推荐: 1024x1024(默认)

  • openai DALL-E 3: 1024x1024 / 1792x1024 / 1024x1792

适用于:

  • 根据描述生成插图、海报、概念图

  • 为文章、演示生成配图

  • 创意设计、头脑风暴视觉化

  • 生成社交媒体图片

注意:生成的图片 URL 通常有有效期(数小时到数天),请及时保存。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nNo
sizeNo
modelNo
promptYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

No annotations provided, so description carries full burden. Discloses multi-provider support, default model behavior, size constraints, and URL expiration. Does not mention rate limits or authorization, but covers main behavioral traits.

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?

Well-structured with bullet points and sections. Information is valuable but slightly lengthy; some repetition could be trimmed. Good front-loading of purpose.

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

Completeness4/5

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

Given output schema exists, return values need no explanation. Covers generation behavior, provider options, parameter defaults, and URL expiry. Could explicitly mention sibling tool for model list, but overall very complete.

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?

Despite 0% schema coverage signal, description explains 'model' (defaults per provider, custom) and 'size' (recommended dimensions) in detail. 'n' is implied but not explicitly explained; 'prompt' is clarified as text description. Adds significant meaning beyond 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 clearly states the tool generates images from text descriptions, using verb 'generate' and resource 'image(s)'. It distinguishes itself from the sibling tool 'list_image_models' by being about generation, not listing.

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?

Provides specific use cases (illustrations, posters, etc.), default models per provider, and size recommendations. Lacks explicit 'when not to use' or direct alternatives, but the sibling tool context helps.

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/Doctor-Pan-code/image-gen-mcp'

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