Saltar al contenido
Skillpedia
Agentes48 mil · #5218

mmx-cli

Qué hace

Esta herramienta te permite crear textos, imágenes, vídeos, audio y música usando la plataforma de IA de MiniMax, directamente desde tu ordenador. También puedes usarla para buscar en la web y chatear con modelos de IA.

Cuándo usarla

  • ✓Cuando quieres generar una imagen a partir de una descripción.
  • ✓Cuando quieres crear un vídeo corto basado en texto.
  • ✓Cuando quieres convertir texto en voz o en música.

Link de la skill

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/mmx-cli/SKILL.md

Cópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.

Cómo usar

La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.

Mensaje listo para pegar

Usa esta skill para ayudarme: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/mmx-cli/SKILL.md Lee el archivo SKILL.md de ese link y sigue sus instrucciones en mi tarea.
¿Quieres que tu IA encuentre skills como esta por sí sola?Instala el MCP gratis de Skillpedia: una línea, y busca entre 15.000+ skills antes de cada tarea.Instalar en 1 minuto →

Ejemplo de qué pedirle a la IA

“Crea una imagen de un gato con un sombrero gracioso.”

5 skills nuevas por semana. 1 minuto de lectura.

Cómo funciona

Escribes comandos en tu terminal, como 'mmx image generate --prompt "a cat"'. La herramienta envía tu petición a la plataforma de MiniMax y devuelve el resultado.

Contenido técnico (SKILL.md original)

Texto original del autor, en inglés, directo de 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-interactive when another tool will parse the result.
  • Use --dry-run before 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.

…

Preguntas frecuentes

¿Tengo que instalar algo antes?

Sí, necesitas instalar la herramienta 'mmx-cli' en tu ordenador e iniciar sesión con tu cuenta de MiniMax.

¿Cómo hago que la IA chatee conmigo?

Usa el comando 'mmx text chat --message "tu pregunta"'.

¿Puedo generar vídeos?

Sí, usa el comando 'mmx video generate --prompt "descripción del vídeo"', indicando la duración y la resolución que quieras.

Detalles

Descripción original del autor

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.

repo: sickn33/agentic-awesome-skills

Popularidad

Estrellas en GitHub
48 mil
Posición en el ranking
#5218
Licencia
MIT
Actualizada
15/10/2026

¿Te sirve esta skill?

0

Entra para votar.

Comentarios

  • …

Más skills de este repositorio

Skills parecidas