jpskill.com
💬 コミュニケーション コミュニティ 🟢 非エンジニアでもOK 👤 管理職・人事・カスタマー対応

💬 Mmx CLI

mmx-cli

MiniMax AIプラットフォームを利用して、文章や画像、

⏱ Slack絵文字GIF制作 1時間 → 5分

📺 まず動画で見る(YouTube)

▶ 【最新版】Claude(クロード)完全解説!20以上の便利機能をこの動画1本で全て解説 ↗

※ jpskill.com 編集部が参考用に選んだ動画です。動画の内容と Skill の挙動は厳密には一致しないことがあります。

📜 元の英語説明(参考)

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.

🇯🇵 日本人クリエイター向け解説

一言でいうと

MiniMax AIプラットフォームを利用して、文章や画像、

※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。

⚡ おすすめ: コマンド1行でインストール(60秒)

下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。

🍎 Mac / 🐧 Linux
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o mmx-cli.zip https://jpskill.com/download/3167.zip && unzip -o mmx-cli.zip && rm mmx-cli.zip
🪟 Windows (PowerShell)
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/3167.zip -OutFile "$d\mmx-cli.zip"; Expand-Archive "$d\mmx-cli.zip" -DestinationPath $d -Force; ri "$d\mmx-cli.zip"

完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。

💾 手動でダウンロードしたい(コマンドが難しい人向け)
  1. 1. 下の青いボタンを押して mmx-cli.zip をダウンロード
  2. 2. ZIPファイルをダブルクリックで解凍 → mmx-cli フォルダができる
  3. 3. そのフォルダを C:\Users\あなたの名前\.claude\skills\(Win)または ~/.claude/skills/(Mac)へ移動
  4. 4. Claude Code を再起動

⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。

🎯 このSkillでできること

下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。

📦 インストール方法 (3ステップ)

  1. 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
  2. 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
  3. 3. 展開してできたフォルダを、ホームフォルダの .claude/skills/ に置く
    • · macOS / Linux: ~/.claude/skills/
    • · Windows: %USERPROFILE%\.claude\skills\

Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。

詳しい使い方ガイドを見る →
最終更新
2026-05-17
取得日時
2026-05-17
同梱ファイル
1

💬 こう話しかけるだけ — サンプルプロンプト

  • Mmx CLI で、お客様への返信文を作って
  • Mmx CLI を使って、社内向けアナウンスを書いて
  • Mmx CLI で、メールテンプレートを整備して

これをClaude Code に貼るだけで、このSkillが自動発動します。

📖 Skill本文(日本語訳)

※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。

MiniMax CLI — エージェントスキルガイド

mmx を使用して、MiniMax AI プラットフォーム経由でテキスト、画像、動画、音声、音楽を生成したり、ウェブ検索を実行したりできます。

使用する場面

ユーザーが mmx ターミナル CLI を通じて、テキスト、画像、動画、音声、音楽、ウェブ検索結果、または MiniMax API リソースを生成または検査したい場合に、このスキルを使用してください。

前提条件

# インストール
npm install -g mmx-cli

# 認証 (OAuth は ~/.mmx/credentials.json に、API キーは ~/.mmx/config.json に永続化されます)
mmx auth login --api-key sk-xxxxx

# アクティブな認証ソースを確認
mmx auth status

# または呼び出しごとに渡す
mmx text chat --api-key sk-xxxxx --message "Hello"

リージョンは自動検出されます。--region global または --region cn で上書きできます。


エージェントフラグ

非対話型(エージェント/CI)コンテキストでは、常にこれらのフラグを使用してください。

フラグ 目的
--non-interactive 引数不足の場合にプロンプトを表示せず、すぐに失敗します
--quiet スピナー/進捗表示を抑制します。標準出力は純粋なデータになります
--output json 機械可読な JSON 出力
--async タスク ID をすぐに返します(動画生成)
--dry-run API リクエストを実行せずにプレビューします
--yes 確認プロンプトをスキップします

コマンド

text chat

チャット補完。デフォルトモデル: MiniMax-M2.7

mmx text chat --message <text> [flags]
# 単一メッセージ
mmx text chat --message "user:What is MiniMax?" --output json --quiet

# システムプロンプト付きの複数ターン
mmx text chat \
  --system "You are a coding assistant." \
  --message "user:Write fizzbuzz in Python" \
  --output json

# ファイルから
cat conversation.json | mmx text chat --messages-file - --output json

image generate

画像を生成します。モデル: image-01

mmx image generate --prompt <text> [flags]
mmx image generate --prompt "A cat in a spacesuit" --output json --quiet
mmx image generate --prompt "Logo" --n 3 --out-dir ./gen/ --quiet

video generate

動画を生成します。デフォルトモデル: MiniMax-Hailuo-2.3。非同期タスク — デフォルトでは完了までポーリングします。

mmx video generate --prompt <text> [flags]
# 非ブロッキング: タスク ID を取得
mmx video generate --prompt "A robot." --async --quiet

# ブロッキング: 待機してファイルを保存
mmx video generate --prompt "Ocean waves." --download ocean.mp4 --quiet

speech synthesize

テキスト読み上げ。デフォルトモデル: speech-2.8-hd。最大 10,000 文字。

mmx speech synthesize --text <text> [flags]
mmx speech synthesize --text "Hello world" --out hello.mp3 --quiet
echo "Breaking news." | mmx speech synthesize --text-file - --out news.mp3

music generate

音楽を生成します。モデル: music-2.6-free

mmx music generate --prompt <text> [--lyrics <text>] [flags]
# インストゥルメンタル
mmx music generate --prompt "Cinematic orchestral, building tension" --instrumental --out bgm.mp3 --quiet

# 自動生成された歌詞付き
mmx music generate --prompt "Upbeat pop about summer" --lyrics-optimizer --out summer.mp3 --quiet

search query

MiniMax 経由のウェブ検索。

mmx search query --q "MiniMax AI" --output json --quiet

vision describe

VLM 経由の画像理解。

mmx vision describe --image photo.jpg --prompt "What breed?" --output json

パイプ処理パターン

# チェーン: 画像を生成 → 説明
URL=$(mmx image generate --prompt "A sunset" --quiet)
mmx vision describe --image "$URL" --quiet

# 非同期動画ワークフロー
TASK=$(mmx video generate --prompt "A robot" --async --quiet | jq -r '.taskId')
mmx video task get --task-id "$TASK" --output json
mmx video download --task-id "$TASK" --out robot.mp4

終了コード

コード 意味
0 成功
1 一般的なエラー
2 使用法のエラー
3 認証エラー
4 クォータ超過
5 タイムアウト
10 コンテンツフィルターがトリガーされました

制限事項

  • API を利用するコマンドが機能するには、設定済みの MiniMax アカウントと有効な認証が必要です。
  • メディア生成タスクは非同期、クォータ制限、またはリージョン制限を受ける可能性があります。エージェントは遅延完了とプロバイダー側の障害を明示的に処理する必要があります。
  • このスキルは CLI の使用法のみを文書化しており、プロバイダーポリシーのレビュー、コンテンツ安全チェック、または下流のファイル検証に代わるものではありません。
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開

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-M2.7.

mmx text chat --message <text> [flags]
# Single message
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

# From file
cat conversation.json | mmx text chat --messages-file - --output json

image generate

Generate images. Model: image-01.

mmx image generate --prompt <text> [flags]
mmx image generate --prompt "A cat in a spacesuit" --output json --quiet
mmx image generate --prompt "Logo" --n 3 --out-dir ./gen/ --quiet

video generate

Generate video. Default model: MiniMax-Hailuo-2.3. Async task — polls until completion by default.

mmx video generate --prompt <text> [flags]
# Non-blocking: get task ID
mmx video generate --prompt "A robot." --async --quiet

# Blocking: wait and save file
mmx video generate --prompt "Ocean waves." --download ocean.mp4 --quiet

speech synthesize

Text-to-speech. Default model: speech-2.8-hd. Max 10k chars.

mmx speech synthesize --text <text> [flags]
mmx speech synthesize --text "Hello world" --out hello.mp3 --quiet
echo "Breaking news." | mmx speech synthesize --text-file - --out news.mp3

music generate

Generate music. Model: music-2.6-free.

mmx music generate --prompt <text> [--lyrics <text>] [flags]
# Instrumental
mmx music generate --prompt "Cinematic orchestral, building tension" --instrumental --out bgm.mp3 --quiet

# With auto-generated lyrics
mmx music generate --prompt "Upbeat pop about summer" --lyrics-optimizer --out summer.mp3 --quiet

search query

Web search via MiniMax.

mmx search query --q "MiniMax AI" --output json --quiet

vision describe

Image understanding via VLM.

mmx vision describe --image photo.jpg --prompt "What breed?" --output json

Piping Patterns

# Chain: generate image → describe it
URL=$(mmx image generate --prompt "A sunset" --quiet)
mmx vision describe --image "$URL" --quiet

# Async video workflow
TASK=$(mmx video generate --prompt "A robot" --async --quiet | jq -r '.taskId')
mmx video task get --task-id "$TASK" --output json
mmx video download --task-id "$TASK" --out robot.mp4

Exit Codes

Code Meaning
0 Success
1 General error
2 Usage error
3 Authentication error
4 Quota exceeded
5 Timeout
10 Content filter triggered

Limitations

  • Requires a configured MiniMax account and valid authentication before any API-backed command will work.
  • Media-generation tasks can be async, quota-limited, or region-constrained; agents should handle delayed completion and provider-side failures explicitly.
  • This skill documents CLI usage only and does not replace provider policy review, content-safety checks, or downstream file validation.