CLI for the MiniMax AI Platform — generate text, images, video, speech, and music from the terminal.
Supports Global (api.minimax.io) and CN (api.minimaxi.com) with automatic region detection.
Binary (recommended) — macOS / Linux / Windows:
curl -fsSL https://raw.githubusercontent.com/MiniMax-AI-Dev/cli/main/install.sh | shnpm / bun:
npm install -g minimax-climinimax auth login --api-key sk-xxxxx
minimax text chat --message "What is MiniMax?"
minimax image "A cat in a spacesuit"
minimax speech synthesize --text "Hello!" --out hello.mp3
minimax search "MiniMax AI latest news"
minimax vision photo.jpg
minimax quotaminimax text chat --message "Write a poem"
minimax text chat --model MiniMax-M2.7-highspeed --message "Hello" --stream
minimax text chat --system "You are a coding assistant" --message "Fizzbuzz in Go"
minimax text chat --message "user:Hi" --message "assistant:Hey!" --message "How are you?"
cat messages.json | minimax text chat --messages-file - --output jsonminimax image "A cat in a spacesuit" # shorthand
minimax image generate --prompt "A cat" --n 3 --aspect-ratio 16:9
minimax image generate --prompt "Logo" --out-dir ./out/minimax video generate --prompt "Ocean waves at sunset" --async
minimax video generate --prompt "A robot painting" --download sunset.mp4
minimax video task get --task-id 123456
minimax video download --file-id 176844028768320 --out video.mp4minimax speech synthesize --text "Hello!" --out hello.mp3
minimax speech synthesize --text "Stream me" --stream | mpv -
minimax speech synthesize --text "Hi" --voice Boyan_new_hailuo --speed 1.2
echo "Breaking news" | minimax speech synthesize --text-file - --out news.mp3
minimax speech voicesminimax music "Upbeat pop" # shorthand
minimax music generate --prompt "Jazz" --lyrics "La la la" --out song.mp3minimax vision photo.jpg # shorthand
minimax vision describe --image https://example.com/img.jpg --prompt "What breed?"
minimax vision describe --file-id file-123minimax search "MiniMax AI" # shorthand
minimax search query --q "latest news" --output jsonminimax quota
minimax config show
minimax config set --key region --value cn
minimax config export-schema | jq .minimax auth login --api-key sk-xxxxx
minimax auth login # OAuth browser flow
minimax auth status
minimax auth refresh
minimax auth logoutminimax update
minimax update latest| Flag | Description |
|---|---|
--api-key <key> |
API key (overrides config) |
--region <global|cn> |
API region |
--output <text|json|yaml> |
Output format |
--quiet |
Data only on stdout, no decorations |
--verbose |
Print HTTP request/response |
--dry-run |
Show request body, no API call |
--async |
Return task ID immediately (video) |
--non-interactive |
Disable prompts (CI/agent mode) |
--timeout <seconds> |
Request timeout (default: 300) |
--no-color |
Disable ANSI colors |
Add --help to any command for full options.
Export all commands as JSON Tool Schema in one shot:
minimax config export-schema | jq .
minimax config export-schema --command "text chat"Compatible with Cursor, Cline, Dify, and any framework that speaks Anthropic/OpenAI tool schemas. See skill/SKILL.md for the full integration guide.
Piping:
minimax text chat --message "Hello" --output json | jq .content
minimax image "A logo" --quiet | xargs curl -O
minimax video generate --prompt "A robot" --async --quietstdout is always clean data. stderr carries all UI (status bar, spinners, progress).
stdout→ data only (text, URLs, JSON, raw audio bytes)stderr→ status bar, progress, warnings, help
MIT