Skip to main content
Glama

MiniMax MCP JS

Official
by MiniMax-AI

text_to_image

Transform text prompts into custom images using specified models and aspect ratios. Save results to designated directories for easy access and use.

Instructions

Generate images based on text prompts.

Note: This tool calls MiniMax API and may incur costs. Use only when explicitly requested by the user.

Input Schema

NameRequiredDescriptionDefault
aspectRatioNoImage aspect ratio, values: ["1:1", "16:9","4:3", "3:2", "2:3", "3:4", "9:16", "21:9"]1:1
modelNoModel to useimage-01
nNoNumber of images to generate
outputDirectoryNoThe directory to save the output file. `outputDirectory` is relative to `MINIMAX_MCP_BASE_PATH` (or `basePath` in config). The final save path is `${basePath}/${outputDirectory}`. For example, if `MINIMAX_MCP_BASE_PATH=~/Desktop` and `outputDirectory=workspace`, the output will be saved to `~/Desktop/workspace/`
outputFileNoPath to save the generated image file, automatically generated if not provided
promptYesText prompt for image generation
promptOptimizerNoWhether to optimize the prompt

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "aspectRatio": { "default": "1:1", "description": "Image aspect ratio, values: [\"1:1\", \"16:9\",\"4:3\", \"3:2\", \"2:3\", \"3:4\", \"9:16\", \"21:9\"]", "type": "string" }, "model": { "default": "image-01", "description": "Model to use", "type": "string" }, "n": { "default": 1, "description": "Number of images to generate", "maximum": 9, "minimum": 1, "type": "number" }, "outputDirectory": { "description": "The directory to save the output file. `outputDirectory` is relative to `MINIMAX_MCP_BASE_PATH` (or `basePath` in config). The final save path is `${basePath}/${outputDirectory}`. For example, if `MINIMAX_MCP_BASE_PATH=~/Desktop` and `outputDirectory=workspace`, the output will be saved to `~/Desktop/workspace/`", "type": "string" }, "outputFile": { "description": "Path to save the generated image file, automatically generated if not provided", "type": "string" }, "prompt": { "description": "Text prompt for image generation", "type": "string" }, "promptOptimizer": { "default": true, "description": "Whether to optimize the prompt", "type": "boolean" } }, "required": [ "prompt" ], "type": "object" }

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-JS'

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