cli-anything-minimax은(는) 무엇을 하나요?
MiniMax AI를 위한 CLI 도구로, MiniMax API를 통해 채팅 완성과 텍스트 음성 변환을 제공합니다.
설치
pip install git+https://github.com/HKUDS/CLI-Anything.git#subdirectory=minimax/agent-harness
필수 사항:
사용법
기본 명령어
cli-anything-minimax --help
cli-anything-minimax
cli-anything-minimax chat --prompt "AI란 무엇인가요?"
cli-anything-minimax chat --prompt "간단히 답변" --model MiniMax-M2.7
cli-anything-minimax stream --prompt "코드에 관한 시를 써줘"
cli-anything-minimax tts --text "안녕하세요" --output hello.mp3
cli-anything-minimax --json chat --prompt "안녕하세요"
TTS 옵션
--text (필수) / --model / --voice / --output 및 음성/오디오
제어: --speed (0.52.0), --vol (010), --pitch (-12~12),
--sample-rate (8k/16k/22.05k/24k/32k/44.1k), --bitrate (32k/64k/128k/256k),
--format (mp3/pcm/flac), --channel (1/2). 기본값은 tts --help를 참조하세요.
명령어 그룹
Chat
| 명령어 | 설명 |
|---|
chat | MiniMax LLM과 채팅 |
stream | 채팅 완성 스트리밍 |
TTS
| 명령어 | 설명 |
|---|
tts | 텍스트를 음성으로 합성 (SSE를 통한 16진수 디코딩 MP3) |
voices | 사용 가능한 음성 ID 목록 |
Session
| 명령어 | 설명 |
|---|
session status | 세션 상태 표시 |
session clear | 세션 기록 지우기 |
session history | 명령 기록 보기 |
Config
| 명령어 | 설명 |
|---|
config set | 설정 값 지정 |
config get | 설정 값 조회 (또는 전체 표시) |
config delete | 설정 값 삭제 |
config path | 설정 파일 경로 표시 |
유틸리티
| 명령어 | 설명 |
|---|
test | API 연결 테스트 |
models | 채팅 모델 목록 |
models --tts | TTS 모델 목록 |
예제
API 키 설정
export MINIMAX_API_KEY="your-api-key"
cli-anything-minimax config set api_key "your-api-key"
채팅
cli-anything-minimax chat --prompt "양자 컴퓨팅 설명"
cli-anything-minimax stream --prompt "Python 퀵 정렬 작성"
TTS
cli-anything-minimax tts --text "안녕하세요!" --output hello.mp3
cli-anything-minimax tts --text "빠르게" --model speech-2.8-turbo --voice English_Insightful_Speaker --output fast.mp3
채팅 모델
| 모델 ID | 설명 |
|---|
MiniMax-M3 | 차세대 플래그십 모델 (기본값) |
MiniMax-M2.7 | 최고 성능, 최고 가치 |
TTS 모델
| 모델 ID | 설명 |
|---|
speech-2.8-hd | 고음질 TTS (기본값) |
speech-2.8-turbo | 빠른 TTS |
speech-2.6-hd | 고음질 TTS |
speech-2.6-turbo | 빠른 TTS |
speech-02-hd | 고음질 TTS |
speech-02-turbo | 빠른 TTS |
speech-01-hd | 고음질 TTS |
speech-01-turbo | 빠른 TTS |
AI 에이전트를 위한 팁
- 항상
--json 플래그를 사용하여 파싱 가능한 출력을 얻으세요.
- 반환 코드를 확인하세요 — 0은 성공, 0이 아닌 값은 오류입니다.
- 실패 시 stderr에서 오류 메시지를 파싱하세요.
- TTS 출력 파일에는 절대 경로를 사용하세요.
버전
1.0.0