Skip to main content
For Token Plan users, no coding is required to call MiniMax text, image, video, speech, vision, and web-search capabilities from agents such as OpenClaw and Claude Code. Availability depends on the current plan and CLI version. If you still prefer direct API integration, see the API Documentation.

Install and configure the CLI

Copy the prompt below to your AI agent (OpenClaw, Claude Code, Cursor, MaxClaw, AutoClaw, KimiClaw, TRAE, OpenCode, etc.). It will guide you through installing the CLI, signing in, and adding the SKILL:

Use the CLI

LanguageUse minimax to write a 4-line poem about AI
VideoGenerate a video: at sunset, a cat sits by the window looking into the distance
SpeechRead in a gentle female voice: Welcome to MiniMax Token Plan. After subscribing, your AI agent can generate video, speech, and images with multimodal capability.
ImageGenerate a cyberpunk city night scene in 16:9When no output option is specified, images are saved to the current working directory. Use --out for a single output path or --out-dir for batch output.

CLI Dashboard

Run mmx in your terminal to open the CLI panel and quickly discover the main commands, flags, and usage info.

MMX-CLI panel overview
  • resources: available resource types
  • flags: supported options for commands
  • usage: remaining quota and usage overview
  • help: entry points for documentation

Capability overview

MMX-CLI provides a single command-line entry point across text, image, video, speech, vision understanding, and web search:

Usage coverage

For Token Plan quota and usage bar behavior, see: Token Plan Pricing

FAQ

Where do I get an API Key?

Still getting 401 after login?

mmx auth login usually auto-detects the service region from the API Key. If you still get 401, region detection likely failed — set it manually:
Then run mmx auth status to confirm the active region matches the platform you purchased from.