1- # minimax-cli
2-
3- CLI for the [ MiniMax AI Platform] ( https://platform.minimax.io ) — generate text, images, video, speech, and music from the terminal.
4-
5- Supports ** Global** (` api.minimax.io ` ) and ** CN** (` api.minimaxi.com ` ) with automatic region detection.
6-
7- [ 中文文档] ( README_CN.md )
8-
9- ---
1+ <p align =" center " >
2+ <img src =" assets/logo.png " alt =" MiniMax " width =" 320 " />
3+ </p >
4+
5+ <p align =" center " >
6+ <strong >The official CLI for the MiniMax AI Platform</strong ><br >
7+ Generate text, images, video, speech, and music — all from your terminal.
8+ </p >
9+
10+ <p align =" center " >
11+ <a href =" https://www.npmjs.com/package/minimax-cli " ><img src =" https://img.shields.io/npm/v/minimax-cli.svg " alt =" npm version " /></a >
12+ <a href =" https://opensource.org/licenses/MIT " ><img src =" https://img.shields.io/badge/license-MIT-blue.svg " alt =" License: MIT " /></a >
13+ <a href =" https://nodejs.org " ><img src =" https://img.shields.io/badge/node-%3E%3D18-brightgreen.svg " alt =" Node.js >= 18 " /></a >
14+ </p >
15+
16+ <p align =" center " >
17+ <a href =" README_CN.md " >中文文档</a > · <a href =" https://platform.minimax.io " >Platform</a >
18+ </p >
19+
20+ ## Features
21+
22+ - ** Text** — Multi-turn chat, streaming, system prompts, JSON output
23+ - ** Image** — Text-to-image with aspect ratio and batch controls
24+ - ** Video** — Async video generation with progress tracking
25+ - ** Speech** — TTS with 30+ voices, speed control, streaming playback
26+ - ** Music** — Text-to-music with optional lyrics
27+ - ** Vision** — Image understanding and description
28+ - ** Search** — Web search powered by MiniMax
29+ - ** Dual Region** — Seamless Global (` api.minimax.io ` ) and CN (` api.minimaxi.com ` ) support
1030
1131## Install
1232
13- Requires [ Node.js] ( https://nodejs.org ) 18+.
14-
1533``` bash
1634npm install -g minimax-cli
1735```
1836
19- ---
37+ > Requires [ Node.js ] ( https://nodejs.org ) 18+
2038
2139## Quick Start
2240
2341``` bash
42+ # Authenticate
2443minimax auth login --api-key sk-xxxxx
2544
45+ # Start creating
2646minimax text chat --message " What is MiniMax?"
2747minimax image " A cat in a spacesuit"
2848minimax speech synthesize --text " Hello!" --out hello.mp3
49+ minimax video generate --prompt " Ocean waves at sunset"
50+ minimax music " Upbeat pop"
2951minimax search " MiniMax AI latest news"
3052minimax vision photo.jpg
3153minimax quota
3254```
3355
34- ---
35-
3656## Commands
3757
38- ### Text
58+ ### ` minimax text `
3959
4060``` bash
4161minimax text chat --message " Write a poem"
@@ -45,15 +65,15 @@ minimax text chat --message "user:Hi" --message "assistant:Hey!" --message "How
4565cat messages.json | minimax text chat --messages-file - --output json
4666```
4767
48- ### Image
68+ ### ` minimax image `
4969
5070``` bash
51- minimax image " A cat in a spacesuit" # shorthand
71+ minimax image " A cat in a spacesuit"
5272minimax image generate --prompt " A cat" --n 3 --aspect-ratio 16:9
5373minimax image generate --prompt " Logo" --out-dir ./out/
5474```
5575
56- ### Video
76+ ### ` minimax video `
5777
5878``` bash
5979minimax video generate --prompt " Ocean waves at sunset" --async
@@ -62,7 +82,7 @@ minimax video task get --task-id 123456
6282minimax video download --file-id 176844028768320 --out video.mp4
6383```
6484
65- ### Speech
85+ ### ` minimax speech `
6686
6787``` bash
6888minimax speech synthesize --text " Hello!" --out hello.mp3
@@ -72,38 +92,29 @@ echo "Breaking news" | minimax speech synthesize --text-file - --out news.mp3
7292minimax speech voices
7393```
7494
75- ### Music
95+ ### ` minimax music `
7696
7797``` bash
78- minimax music " Upbeat pop" # shorthand
98+ minimax music " Upbeat pop"
7999minimax music generate --prompt " Jazz" --lyrics " La la la" --out song.mp3
80100```
81101
82- ### Vision
102+ ### ` minimax vision `
83103
84104``` bash
85- minimax vision photo.jpg # shorthand
105+ minimax vision photo.jpg
86106minimax vision describe --image https://example.com/img.jpg --prompt " What breed?"
87107minimax vision describe --file-id file-123
88108```
89109
90- ### Search
110+ ### ` minimax search `
91111
92112``` bash
93- minimax search " MiniMax AI" # shorthand
113+ minimax search " MiniMax AI"
94114minimax search query --q " latest news" --output json
95115```
96116
97- ### Quota & Config
98-
99- ``` bash
100- minimax quota
101- minimax config show
102- minimax config set --key region --value cn
103- minimax config export-schema | jq .
104- ```
105-
106- ### Auth
117+ ### ` minimax auth `
107118
108119``` bash
109120minimax auth login --api-key sk-xxxxx
@@ -113,15 +124,22 @@ minimax auth refresh
113124minimax auth logout
114125```
115126
116- ### Update
127+ ### ` minimax config ` · ` minimax quota `
128+
129+ ``` bash
130+ minimax quota
131+ minimax config show
132+ minimax config set --key region --value cn
133+ minimax config export-schema | jq .
134+ ```
135+
136+ ### ` minimax update `
117137
118138``` bash
119139minimax update
120140minimax update latest
121141```
122142
123- ---
124-
125143## License
126144
127- MIT
145+ [ MIT] ( LICENSE )
0 commit comments