Skip to main content
Glama
MiniMax-AI

MiniMax MCP Server

Official
by MiniMax-AI

text_to_image

Generate images from text prompts. Customize aspect ratio, number of images, and use prompt optimization to improve results.

Instructions

Generate a image from a prompt.

COST WARNING: This tool makes an API call to Minimax which may incur costs. Only use when explicitly requested by the user.

 Args:
    model (str, optional): The model to use. Values range ["image-01"], with "image-01" being the default.
    prompt (str): The prompt to generate the image from.
    aspect_ratio (str, optional): The aspect ratio of the image. Values range ["1:1", "16:9","4:3", "3:2", "2:3", "3:4", "9:16", "21:9"], with "1:1" being the default.
    n (int, optional): The number of images to generate. Values range [1, 9], with 1 being the default.
    prompt_optimizer (bool, optional): Whether to optimize the prompt. Values range [True, False], with True being the default.
    output_directory (str, optional): The directory to save the image to.
Returns:
    Text content with the path to the output image file.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nNo
modelNoimage-01
promptNo
aspect_ratioNo1:1
output_directoryNo
prompt_optimizerNo
Behavior3/5

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

With no annotations, the description must carry full behavioral disclosure. It mentions API call to Minimax and cost, but lacks details on side effects, authorization, rate limits, or error handling. Adequate but not comprehensive.

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 well-structured with a clear purpose, cost warning, and parameter details. It is somewhat verbose but remains efficient, with front-loaded key information.

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 complexity (6 parameters, no output schema, no annotations), the description covers all parameters, explains return value, and provides cost context. Missing error handling and edge cases, but reasonably complete for the task.

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?

The description lists all 6 parameters with explanations, including defaults and allowed values (e.g., aspect_ratio options). Since schema description coverage is 0%, this provides essential meaning beyond the schema, though some details like prompt_optimizer effect are minimal.

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 'Generate a image from a prompt', using a specific verb and resource. It distinguishes from sibling tools like generate_video and text_to_audio, leaving no ambiguity about its purpose.

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 includes a cost warning advising to only use when explicitly requested, providing clear context for usage. However, it does not explicitly state when not to use or compare to alternatives, missing full exclusion 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/MiniMax-AI/MiniMax-MCP'

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