Skip to main content
Glama
wchiway
by wchiway

generate_image

Creates images from text prompts with Qwen Image models. Handles Chinese and English input, auto-suggests resolution, and enhances prompts for better results.

Instructions

文生图(T2I)— 根据文本提示词直接生成图像。

支持中英文提示词,模型会自动根据提示词推荐分辨率。 prompt_extend 默认开启,会对简单提示词进行智能改写以获得更好的效果。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nNo生成图像数量,1-6 张。
seedNo随机数种子(0-2147483647)。固定种子可使生成结果相对稳定。
sizeNo输出图像分辨率,格式为 "宽*高"(如 1024*1024)。不指定则由模型自动推荐。范围: 512*512 至 2048*2048。
modelNo模型名称。qwen-image-3.0-pro 质量更高,qwen-image-3.0 兼顾质量与速度。qwen-image-3.0-pro
promptYes正向提示词,描述期望生成的图像内容、风格和构图。支持中英文。
watermarkNo是否添加水印。
prompt_extendNo是否开启提示词智能改写(建议开启)。
negative_promptNo反向提示词,描述不希望出现在画面中的内容。
prompt_extend_modeNo提示词改写方式: direct=直接增强(默认,推荐), agent=智能体增强(更精细,仅 T2I)。

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

With no annotations, the description carries the full burden. It discloses prompt_extend is enabled by default and that the model auto-recommends resolution, which are useful behavioral traits. However, it doesn't mention costs, permissions, or side effects, leaving gaps.

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?

Two sentences, concise and front-loaded with the core purpose. No fluff.

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 the rich schema with 9 parameters and output schema, the description provides sufficient overview, covering the primary function and key defaults. It doesn't cover all parameters but the schema does. Sibling differentiation could enhance completeness but isn't essential.

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 coverage is 100%, so baseline is 3. The description adds context about prompt language support ('支持中英文提示词') and the auto-recommendation behavior relating to size, but most parameter details are already in 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 clearly states the tool generates images from text prompts ('文生图(T2I)— 根据文本提示词直接生成图像'), using a specific verb and resource. It implicitly distinguishes from the sibling tool edit_image, which handles 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?

No explicit when-to-use or alternatives are mentioned. The description implies usage for generating new images but doesn't exclude editing tasks or point to edit_image. Context about language support and auto-resolution is provided, but no comparative guidance.

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/wchiway/qwen-image-mcp'

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