Skip to content

Commit 5ab315c

Browse files
authored
Merge pull request #31 from MiniMax-AI-Dev/docs/readme-polish
docs: polish README with logo, badges, and features overview
2 parents ffbbc7e + b99f037 commit 5ab315c

3 files changed

Lines changed: 116 additions & 80 deletions

File tree

README.md

Lines changed: 57 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,61 @@
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
1634
npm install -g minimax-cli
1735
```
1836

19-
---
37+
> Requires [Node.js](https://nodejs.org) 18+
2038
2139
## Quick Start
2240

2341
```bash
42+
# Authenticate
2443
minimax auth login --api-key sk-xxxxx
2544

45+
# Start creating
2646
minimax text chat --message "What is MiniMax?"
2747
minimax image "A cat in a spacesuit"
2848
minimax speech synthesize --text "Hello!" --out hello.mp3
49+
minimax video generate --prompt "Ocean waves at sunset"
50+
minimax music "Upbeat pop"
2951
minimax search "MiniMax AI latest news"
3052
minimax vision photo.jpg
3153
minimax quota
3254
```
3355

34-
---
35-
3656
## Commands
3757

38-
### Text
58+
### `minimax text`
3959

4060
```bash
4161
minimax text chat --message "Write a poem"
@@ -45,15 +65,15 @@ minimax text chat --message "user:Hi" --message "assistant:Hey!" --message "How
4565
cat 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"
5272
minimax image generate --prompt "A cat" --n 3 --aspect-ratio 16:9
5373
minimax image generate --prompt "Logo" --out-dir ./out/
5474
```
5575

56-
### Video
76+
### `minimax video`
5777

5878
```bash
5979
minimax video generate --prompt "Ocean waves at sunset" --async
@@ -62,7 +82,7 @@ minimax video task get --task-id 123456
6282
minimax video download --file-id 176844028768320 --out video.mp4
6383
```
6484

65-
### Speech
85+
### `minimax speech`
6686

6787
```bash
6888
minimax speech synthesize --text "Hello!" --out hello.mp3
@@ -72,38 +92,29 @@ echo "Breaking news" | minimax speech synthesize --text-file - --out news.mp3
7292
minimax speech voices
7393
```
7494

75-
### Music
95+
### `minimax music`
7696

7797
```bash
78-
minimax music "Upbeat pop" # shorthand
98+
minimax music "Upbeat pop"
7999
minimax 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
86106
minimax vision describe --image https://example.com/img.jpg --prompt "What breed?"
87107
minimax 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"
94114
minimax 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
109120
minimax auth login --api-key sk-xxxxx
@@ -113,15 +124,22 @@ minimax auth refresh
113124
minimax 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
119139
minimax update
120140
minimax update latest
121141
```
122142

123-
---
124-
125143
## License
126144

127-
MIT
145+
[MIT](LICENSE)

README_CN.md

Lines changed: 59 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,61 @@
1-
# minimax-cli
2-
3-
[MiniMax AI 开放平台](https://platform.minimaxi.com) 的命令行工具——在终端生成文字、图像、视频、语音和音乐。
4-
5-
支持**国际版**`api.minimax.io`)和**国内版**`api.minimaxi.com`),自动识别区域。
6-
7-
[English](README.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>MiniMax AI 开放平台官方命令行工具</strong><br>
7+
在终端生成文字、图像、视频、语音和音乐。
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.md">English</a> · <a href="https://platform.minimaxi.com">开放平台</a>
18+
</p>
19+
20+
## 功能特性
21+
22+
- **文本对话** — 多轮对话、流式输出、系统提示词、JSON 格式输出
23+
- **图像生成** — 文生图,支持比例和批量控制
24+
- **视频生成** — 异步生成,进度追踪
25+
- **语音合成** — 30+ 音色、语速调节、流式播放
26+
- **音乐生成** — 文生音乐,支持自定义歌词
27+
- **图像理解** — 图片描述与识别
28+
- **网络搜索** — MiniMax 搜索引擎
29+
- **双区域** — 国际版(`api.minimax.io`)和国内版(`api.minimaxi.com`)自动切换
1030

1131
## 安装
1232

13-
需要 [Node.js](https://nodejs.org) 18+。
14-
1533
```bash
1634
npm install -g minimax-cli
1735
```
1836

19-
---
37+
> 需要 [Node.js](https://nodejs.org) 18+
2038
2139
## 快速开始
2240

2341
```bash
42+
# 认证
2443
minimax auth login --api-key sk-xxxxx
2544

45+
# 开始创作
2646
minimax text chat --message "你好,MiniMax!"
2747
minimax image "一只穿宇航服的猫"
2848
minimax speech synthesize --text "你好!" --out hello.mp3
49+
minimax video generate --prompt "海浪拍打礁石"
50+
minimax music "欢快的流行乐"
2951
minimax search "MiniMax AI 最新动态"
3052
minimax vision photo.jpg
3153
minimax quota
3254
```
3355

34-
---
35-
3656
## 命令参考
3757

38-
### 文本对话
58+
### `minimax text`
3959

4060
```bash
4161
minimax text chat --message "写一首诗"
@@ -45,15 +65,15 @@ minimax text chat --message "user:你好" --message "assistant:嗨!" --message
4565
cat messages.json | minimax text chat --messages-file - --output json
4666
```
4767

48-
### 图像生成
68+
### `minimax image`
4969

5070
```bash
51-
minimax image "一只穿宇航服的猫" # 简写
71+
minimax image "一只穿宇航服的猫"
5272
minimax image generate --prompt "科技感 Logo" --n 3 --aspect-ratio 16:9
5373
minimax image generate --prompt "山水画" --out-dir ./output/
5474
```
5575

56-
### 视频生成
76+
### `minimax video`
5777

5878
```bash
5979
minimax video generate --prompt "海浪拍打礁石" --async
@@ -62,66 +82,64 @@ minimax video task get --task-id 123456
6282
minimax video download --file-id 176844028768320 --out video.mp4
6383
```
6484

65-
### 语音合成
85+
### `minimax speech`
6686

6787
```bash
6888
minimax speech synthesize --text "你好!" --out hello.mp3
6989
minimax speech synthesize --text "流式输出" --stream | mpv -
7090
minimax speech synthesize --text "Hi" --voice Boyan_new_hailuo --speed 1.2
7191
echo "头条新闻" | minimax speech synthesize --text-file - --out news.mp3
72-
minimax speech voices # 列出可用音色
92+
minimax speech voices
7393
```
7494

75-
### 音乐生成
95+
### `minimax music`
7696

7797
```bash
78-
minimax music "欢快的流行乐" # 简写
98+
minimax music "欢快的流行乐"
7999
minimax music generate --prompt "爵士风" --lyrics "啦啦啦" --out song.mp3
80100
```
81101

82-
### 图像理解
102+
### `minimax vision`
83103

84104
```bash
85-
minimax vision photo.jpg # 简写
105+
minimax vision photo.jpg
86106
minimax vision describe --image https://example.com/img.jpg --prompt "这是什么品种的狗?"
87107
minimax vision describe --file-id file-123
88108
```
89109

90-
### 网络搜索
110+
### `minimax search`
91111

92112
```bash
93-
minimax search "MiniMax AI" # 简写
113+
minimax search "MiniMax AI"
94114
minimax search query --q "最新动态" --output json
95115
```
96116

97-
### 配额与配置
117+
### `minimax auth`
98118

99119
```bash
100-
minimax quota # 查看配额用量
101-
minimax config show
102-
minimax config set --key region --value cn
103-
minimax config export-schema | jq .
120+
minimax auth login --api-key sk-xxxxx
121+
minimax auth login # OAuth 浏览器授权
122+
minimax auth status
123+
minimax auth refresh
124+
minimax auth logout
104125
```
105126

106-
### 认证
127+
### `minimax config` · `minimax quota`
107128

108129
```bash
109-
minimax auth login --api-key sk-xxxxx # API Key 登录
110-
minimax auth login # OAuth 浏览器授权
111-
minimax auth status
112-
minimax auth refresh
113-
minimax auth logout
130+
minimax quota
131+
minimax config show
132+
minimax config set --key region --value cn
133+
minimax config export-schema | jq .
114134
```
115135

116-
### 更新
136+
### `minimax update`
117137

118138
```bash
119139
minimax update
120140
minimax update latest
121141
```
122142

123-
---
124-
125143
## 许可证
126144

127-
MIT
145+
[MIT](LICENSE)

assets/logo.png

55.5 KB
Loading

0 commit comments

Comments
 (0)