mmx-cli
できること
このツールを使うと、パソコンから直接、MiniMax AIプラットフォームを利用して、テキスト、画像、動画、音声、音楽を作成できます。Web検索やAIモデルとのチャットにも使えます。
使う場面
- ✓説明文から画像を生成したいとき。
- ✓テキストをもとに短い動画を作成したいとき。
- ✓テキストを音声や音楽に変換したいとき。
スキルのリンク
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/mmx-cli/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“帽子をかぶった面白い猫の画像を作ってください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
ターミナルでコマンドを入力します。例えば'mmx image generate --prompt "a cat"'のように入力します。ツールはリクエストをMiniMaxプラットフォームに送信し、結果を返します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
MiniMax CLI — Agent Skill Guide
Use mmx to generate text, images, video, speech, music, and perform web search via the MiniMax AI platform.
When to Use
Use this skill when the user wants to generate or inspect text, images, video, speech, music, web-search results, or MiniMax API resources through the mmx terminal CLI.
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. Pass --model MiniMax-M2.7 for the previous-generation default when reproducing older outputs.
mmx text chat --message <text> [flags]
# Single message (uses MiniMax-M3 by default)
mmx text chat --message "user:What is MiniMax?" --output json --quiet
# Multi-turn with system prompt
mmx text chat \
--system "You are a coding assistant." \
--message "user:Write fizzbuzz in Python" \
--output json
# Pin to the previous-generation model
mmx text chat --model MiniMax-M2.7 --message "user:Hello" --output json
# From file
cat conversation.json | mmx text chat --messages-file - --output json
image generate
Generate images through MiniMax. Use this command for text-to-image tasks, thumbnails, concept art, social visuals, and quick prompt iteration. Model: image-01.
mmx image generate --prompt <text> [flags]
# Machine-readable response for agents
mmx image generate --prompt "A cat in a spacesuit" --output json --quiet
# Save multiple generated images to a directory
mmx image generate --prompt "Logo" --n 3 --out-dir ./gen/ --quiet
# Select region explicitly when a workflow must stay on one MiniMax endpoint family
mmx image generate --prompt "Product hero image" --region global --output json --quiet
mmx image generate --prompt "Product hero image" --region cn --output json --quiet
Agent notes:
- Prefer
--output json --quiet --non-interactivewhen another tool will parse the result. - Use
--dry-runbefore API-backed calls when validating arguments or CI examples. - Keep generated media in a task-local output directory and validate returned file paths or URLs before reusing them.
video generate
Generate video. The current v2 default is MiniMax-H3 (2K, 4–15 seconds); the legacy v1 Hailuo models remain available when explicitly selected. Requests use the regional v2 endpoint: https://api.minimax.io/v2/video_generation (global) or https://api.minimaxi.com/v2/video_generation (China).
mmx video generate --prompt <text> [flags]
For MiniMax-H3, the request content is an ordered array of {type, role, ...} items. Text content is required (up to 7,000 characters); image, video, and audio URLs may use first_frame, last_frame, reference_image, reference_video, and reference_audio roles. Frame roles and reference roles are mutually exclusive, and reference audio requires an image or video. Set --resolution 2K, --duration to an integer from 4 through 15, and --ratio to adaptive, 21:9, 16:9, 4:3, 1:1, 3:4, or 9:16. China requests may also set aigc_watermark. The create response returns task_id; query with GET /v2/query/video_generation/{task_id}, list with GET /v2/query/video_generation, and delete with DELETE /v2/video_generation/{task_id}. Query responses expose status, error, output URL, resolution, duration, ratio, task type/modality, and usage seconds/image count.
Pricing for MiniMax-H3 video is metered by 2K output seconds: global USD 0.13/second, China CNY 0.8/second. Reference video input is global USD 0.02/second and China CNY 0.8/second; reference audio is free; five reference images are free, then global USD 0.03/image or China CNY 0.2/image.
…
よくある質問
事前にインストールが必要ですか?
はい。パソコンに'mmx-cli'ツールをインストールし、MiniMaxアカウントでログインする必要があります。
AIとチャットするにはどうすればよいですか?
'mmx text chat --message "質問内容"'コマンドを使用してください。
動画も作成できますか?
はい。'mmx video generate --prompt "動画の説明"'コマンドを使用し、希望の長さと解像度を指定してください。
詳細
作者による元の説明
Use mmx to generate text, images, video, speech, and music via the MiniMax AI platform. Use when the user wants to create media content, chat with MiniMax models, perform web search, or manage MiniMax API resources from the terminal.
人気
- GitHubのスター
- 48k
- ランキング
- #5218
- ライセンス
- MIT
- 更新日
- 2026/10/15
コメント
- …
このリポジトリの他のスキル
00-andruia-consultant
48kエージェントがAIプロジェクトの立ち上げや改善を支援します。コードを分析し、ツールを提案し、スペイン語で行動計画を作成します。
007
48kエージェントがセキュリティ監査と脅威モデリングを行えるようにします。攻撃や脆弱性からプロジェクトを守るのに役立ちます。
10-andruia-skill-smith
48kエージェントがAIツールの作成や改善を支援します。ツールの動作を定義し、ドキュメントを書き、構造を検証します。
20-andruia-niche-intelligence
48kエージェントが特定の業界に関する要約を作成できるようにします。信頼できる情報源を使って、プロジェクトの背景、ルール、利用パターン、リスクを把握するのに役立ちます。
似ているスキル
add-model-provider
394k安全なセットアップコマンドで新しいAIモデルプロバイダーをOpenClawに接続し、APIキーを平文で残さず、ライブテストを行うようエージェントを支援します。
acp-router
394kClaude CodeやCursorなどのコーディングアシスタントに、OpenClaw経由でタスクを渡し、その作業がそのツール内で行われるようエージェントを支援します。
browser-automation
394kログイン、タブ、応答しなくなったページからの復旧を含め、Webページを段階的に操作するようエージェントに教えます。