Skip to main content
Glama

Generate Image (MiniMax)

minimax_image_generate

Generate images from text prompts with adjustable aspect ratios, batch sizes, seed control, and image-to-image character references.

Instructions

Generate images from text prompts using MiniMax's image-01 model. Supports multiple aspect ratios, batch generation (1-9 images), image-to-image with character references, prompt optimization, and seed-based reproducibility. Images are saved to disk and file paths are returned.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nNoNumber of images to generate (1-9). Using 9 is 8x faster than 9 separate calls.
seedNoSeed for reproducibility. Same seed + same parameters = same image.
promptYesImage description to generate. Max 1500 characters.
output_dirNoDirectory to save images. Must be within the working directory or MINIMAX_OUTPUT_DIR. Default: ./output/
aspect_ratioNoImage aspect ratio. Options: 1:1, 16:9, 4:3, 3:2, 2:3, 3:4, 9:16, 21:91:1
response_formatNoResponse format. 'base64' for persistence (recommended), 'url' expires in 24h.base64
prompt_optimizerNoEnable automatic prompt optimization. May add extra elements.
subject_referenceNoReference images for Image-to-Image. Maintains visual identity of the character.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes
failuresNo
metadataYes
file_pathsYes
image_countYes
saved_countYes
Behavior4/5

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

Beyond annotations (which are not very informative), the description discloses that images are saved to disk and file paths returned, and that prompt optimization may add extra elements. It does not cover rate limits or potential side effects, but adds useful 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.

Conciseness4/5

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

The description is a single paragraph covering all key features. It is fairly concise but could be slightly more structured (e.g., bullet points) for easier scanning. Still, it is efficient and well written.

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

Completeness5/5

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

Given the tool complexity (8 parameters, 100% schema coverage, multiple features), and the presence of an output schema, the description is complete. It mentions file path returns and covers all major capabilities.

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 baseline is 3. The description adds value by explaining the speed benefit of n=9, expiry difference between 'url' and 'base64', and the effect of prompt_optimizer. This goes beyond the schema definitions.

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 it generates images from text prompts using a specific model, and enumerates supported features (aspect ratios, batch generation, etc.). It is specific and distinguishes the tool from any potential alternatives.

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 provides context like recommending n=9 for speed, but does not explicitly state when to use this tool versus alternatives. Since no siblings are listed, it is still clear, but lacks explicit when-not 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/alexlivre/minimax-image-mcp'

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