@@ -69,7 +69,32 @@ minimax vision describe --image photo.jpg --prompt "What is this?"
6969
7070## Commands
7171
72- ### text
72+ Run ` minimax <command> --help ` to see the full list of options, defaults, and usage examples for any command.
73+
74+ | Command | Description | Command-specific flags |
75+ | ---| ---| ---|
76+ | ` auth login ` | Authenticate via OAuth or API key | ` --method ` , ` --api-key ` , ` --no-browser ` |
77+ | ` auth status ` | Show current authentication state | — |
78+ | ` auth refresh ` | Manually refresh OAuth token | — |
79+ | ` auth logout ` | Revoke tokens and clear stored credentials | — |
80+ | ` text chat ` | Send a chat completion | ` --model ` , ` --message ` , ` --messages-file ` , ` --system ` , ` --max-tokens ` , ` --temperature ` , ` --top-p ` , ` --stream ` , ` --tool ` |
81+ | ` speech synthesize ` | Synchronous TTS, up to 10k chars | ` --model ` , ` --text ` , ` --text-file ` , ` --voice ` , ` --speed ` , ` --volume ` , ` --pitch ` , ` --format ` , ` --sample-rate ` , ` --bitrate ` , ` --channels ` , ` --language ` , ` --subtitles ` , ` --pronunciation ` , ` --sound-effect ` , ` --out ` , ` --out-format ` , ` --stream ` |
82+ | ` image generate ` | Generate images | ` --prompt ` , ` --aspect-ratio ` , ` --n ` , ` --subject-ref ` , ` --out-dir ` , ` --out-prefix ` |
83+ | ` video generate ` | Create a video generation task | ` --model ` , ` --prompt ` , ` --first-frame ` , ` --callback-url ` , ` --wait ` , ` --poll-interval ` , ` --download ` |
84+ | ` video task get ` | Query video task status | ` --task-id ` |
85+ | ` video download ` | Download a completed video by file ID | ` --file-id ` , ` --out ` |
86+ | ` music generate ` | Generate a song | ` --prompt ` , ` --lyrics ` , ` --lyrics-file ` , ` --auto-lyrics ` , ` --format ` , ` --sample-rate ` , ` --bitrate ` , ` --stream ` , ` --out ` , ` --out-format ` |
87+ | ` search query ` | Search the web via MiniMax | ` --q ` |
88+ | ` vision describe ` | Describe an image using MiniMax VLM | ` --image ` , ` --prompt ` |
89+ | ` quota show ` | Display Token Plan usage and remaining quotas | — |
90+ | ` config show ` | Show current configuration | — |
91+ | ` config set ` | Set a config value | ` --key ` , ` --value ` |
92+
93+ All commands also accept [ global flags] ( #global-flags ) (` --api-key ` , ` --output ` , ` --quiet ` , ` --verbose ` , etc.).
94+
95+ ### Examples
96+
97+ #### text
7398
7499``` bash
75100# Simple chat
@@ -87,7 +112,7 @@ minimax text chat --message "user:Tell me a story" --stream
87112cat conversation.json | minimax text chat --messages-file -
88113```
89114
90- ### speech
115+ #### speech
91116
92117``` bash
93118# Generate speech and save to file
@@ -103,7 +128,7 @@ minimax speech synthesize --text "Stream this" --stream | mpv --no-terminal -
103128minimax speech synthesize --text " Fast narration" --voice English_expressive_narrator --speed 1.5 --out fast.mp3
104129```
105130
106- ### image
131+ #### image
107132
108133``` bash
109134# Generate an image
@@ -116,7 +141,7 @@ minimax image generate --prompt "Logo design" --aspect-ratio 1:1 --n 3 --out-dir
116141minimax image generate --prompt " Portrait in oil painting style" --subject-ref ./photo.jpg
117142```
118143
119- ### video
144+ #### video
120145
121146``` bash
122147# Submit a video generation task
@@ -135,7 +160,7 @@ minimax video task get --task-id 106916112212032
135160minimax video download --file-id 176844028768320 --out video.mp4
136161```
137162
138- ### music
163+ #### music
139164
140165``` bash
141166# Generate with custom lyrics
@@ -148,7 +173,7 @@ minimax music generate --prompt "Upbeat pop" --lyrics-file song.txt --out summer
148173minimax music generate --prompt " Jazz lounge" --auto-lyrics --out jazz.mp3
149174```
150175
151- ### search
176+ #### search
152177
153178``` bash
154179# Web search
@@ -158,7 +183,7 @@ minimax search query --q "MiniMax AI"
158183minimax search query --q " latest news" --output json
159184```
160185
161- ### vision
186+ #### vision
162187
163188``` bash
164189# Describe a local image
@@ -171,7 +196,7 @@ minimax vision describe --image https://example.com/photo.jpg
171196minimax vision describe --image screenshot.png --prompt " Extract the text from this screenshot"
172197```
173198
174- ### quota
199+ #### quota
175200
176201``` bash
177202# Show usage and remaining quotas
@@ -181,7 +206,7 @@ minimax quota show
181206minimax quota show --output json
182207```
183208
184- ### config
209+ #### config
185210
186211``` bash
187212# Show current configuration
@@ -197,7 +222,7 @@ minimax config set --key output --value json
197222minimax config set --key timeout --value 600
198223```
199224
200- ### auth
225+ #### auth
201226
202227``` bash
203228# Login with API key
0 commit comments