mmx-cli
БесплатноБез исполняемых скриптовНе проверенUse mmx to generate text, images, video, and speech, and to transcribe audio, via the MiniMax AI platform. Use when the user wants to create media content…
от MiniMax-AI★ 2 245 звёзд на GitHubОб этом скилле
MiniMax CLI — Agent Skill Guide
Use mmx to generate text, images, video, speech, transcribe audio, and perform web search via the MiniMax AI platform.
Prerequisites
# Install
npm install -g mmx-cli
# Auth (OAuth persists to ~/.mmx/credentials.json, API key persists to ~/.mmx/config.json)
mmx auth login --api-key sk-xxxxx
# Verify active auth source
mmx auth status
# Or pass per-call
mmx text chat --api-key sk-xxxxx --message "Hello"
Region is auto-detected. Override with --region global or --region cn.
Agent Flags
Always use these flags in non-interactive (agent/CI) contexts:
| Flag | Purpose |
|---|---|
--non-interactive |
Fail fast on missing args instead of prompting |
--quiet |
Suppress spinners/progress; stdout is pure data |
--output json |
Machine-readable JSON output |
--async |
Return task ID immediately (video generation) |
--dry-run |
Preview the API request without executing |
--yes |
Skip confirmation prompts |
Commands
text chat
Chat completion. Default model: MiniMax-M3.1-Flash. An explicit --model or saved default-text-model takes precedence. This model currently requires M Plan or MiniMax Code; with a pay-as-you-go key, use --model MiniMax-M3. Thinking is enabled by default with max effort. See the model guide.
mmx text chat --message <text> [flags]
| Flag | Type | Description |
|---|---|---|
--message <text> |
string, required, repeatable | Message text. Prefix with role: to set role (e.g. "system:You are helpful", "user:Hello") |
--messages-file <path> |
string | JSON file with messages array. Use - for stdin |
--system <text> |
string | System prompt |
--model <model> |
string | Model ID (default: MiniMax-M3.1-Flash) |
--max-tokens <n> |
number | Max tokens (default: 4096) |
--temperature <n> |
number | Sampling temperature (0.0, 1.0] |
--top-p <n> |
number | Nucleus sampling threshold |
--stream |
boolean | Stream tokens (default: on in TTY) |
--tool <json-or-path> |
string, repeatable | Tool definition JSON or file path |
# Single message
mmx text chat --message "user:What is MiniMax?" --output json --quiet
# Multi-turn
mmx text chat \
--system "You are a coding assistant." \
--message "user:Write fizzbuzz in Python" \
--output json
# From file
cat conversation.json | mmx text chat --messages-file - --output json
stdout: response text (text mode) or full response object (json mode).
image generate
Generate images. Default model: image-01. Use --model MiniMax-H3-Image for higher-resolution text-to-image (up to 20 MP) or for image editing with --image.
mmx image generate --prompt <text> [flags]
| Flag | Type | Description |
|---|---|---|
--prompt <text> |
string, required | Image description |
--aspect-ratio <ratio> |
string | e.g. 16:9, 1:1. Ignored if --width and --height are both set |
--n <count> |
number | Number of images (default: 1) |
--seed <n> |
number | Random seed for reproducible generation |
--width <px> |
number | Width in pixels (512–2048, multiple of 8). Requires --height |
--height <px> |
number | Height in pixels (512–2048, multiple of 8). Requires --width |
--prompt-optimizer |
boolean | Optimize prompt before generation |
--aigc-watermark |
boolean | Embed AI-generated content watermark |
--subject-ref <params> |
string | Subject reference: type=character,image=path-or-url |
--response-format <format> |
string | url (default) or base64. Base64 bypasses CDN download |
--out-dir <dir> |
string | Download images to directory |
--out-prefix <prefix> |
string | Filename prefix (default: image) |
--model <model> |
string | image-01 (default), image-01-live, or MiniMax-H3-Image; other values go to the image-01 endpoint unchanged |
MiniMax-H3-Image only (--seed, --prompt-optimizer, --subject-ref are rejected; --width/--height become --size):
| Flag | Type | Description |
|---|---|---|
--image <path-or-url> |
string, repeatable | 1–16 reference images → image editing (/v1/images/edits). Order = Picture 1, 2, … |
--size <WxH> |
string | auto or e.g. 2720x1536; area 655,360–20,000,000 px, ratio 1:3–3:1. Not with --aspect-ratio/--area |
--aspect-ratio <X:Y> |
string | auto (default) or X:Y (integers 1–300) between 1:3 and 3:1 |
--area <level> |
string | 1K, 2K, 4K (default) |
--n <count> |
number | 1–10 |
--output-format <fmt> |
string | jpg (default), png, webp |
--output-compression <q> |
number | 0–100 (default 95), jpg/webp only |
--no-prompt-enhance |
boolean | Text-to-image only; needs --size or a concrete --aspect-ratio |
H3-Image is synchronous and not idempotent — do not re-run a command just because it was slow; each run is billed. Partia
Установить mmx-cli в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл mmx-cli?
Use mmx to generate text, images, video, and speech, and to transcribe audio, via the MiniMax AI platform. Use when the user wants to create media content, chat with MiniMax models, transcribe audio to text, perform web search, or manage MiniMax API resources from the terminal.
Как установить скилл mmx-cli?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл mmx-cli запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic