Skip to main content

MiniMax

Project description

minimax-omni

English | 简体中文

minimax-omni is a comprehensive Python package that provides both a powerful Command Line Interface (CLI) and a Model Context Protocol (MCP) server for interacting with MiniMax's diverse multimodal generation models.

Features

  • Text-to-Speech (TTS): Generate high-quality speech with various voices, emotions, and speeds.
  • Voice Clone & Design: Clone existing voices from audio files or design new voices using prompts.
  • Text-to-Image: Generate high-resolution images from text prompts with customizable aspect ratios.
  • Video Generation (Hailuo): Create videos from text, and optionally a first frame image.
  • Music Generation: Create custom music tracks from text prompts and lyrics.
  • MCP Server Support: Seamlessly integrate with any applications supporting the Model Context Protocol (MCP).

Installation

Requires Python >= 3.10.

pip install minimax-omni

Or install with CLI dependencies:

pip install "minimax-omni[cli]"

Configuration

Configuration is resolved in this priority order: CLI flag > environment variable > momni config set file.

Option 1 — momni config set (recommended for local use)

momni config set --api-key YOUR_KEY --api-host https://api.minimax.chat

Settings are saved to ~/.config/minimax/config.json. Run momni config doctor to verify.

Option 2 — .env file

Copy .env.example to .env in your working directory and fill in the values:

MINIMAX_API_KEY=your_key
MINIMAX_API_HOST=https://api.minimax.chat
# MINIMAX_MCP_BASE_PATH=~/Desktop
# MINIMAX_API_RESOURCE_MODE=local

Option 3 — Environment variables

Variable Required Default Description
MINIMAX_API_KEY Your MiniMax API key
MINIMAX_API_HOST https://api.minimax.chat (China) or https://api.minimaxi.chat (Global)
MINIMAX_MCP_BASE_PATH ~/Desktop Output directory when using local mode
MINIMAX_API_RESOURCE_MODE url url returns a link; local saves to disk

CLI Usage

The package provides two CLI commands: minimax-omni and momni as a shortcut.

Voice Generation

# Text-to-Speech
momni tts "Hello world!" --voice-id female-shaonv --model speech-2.6-hd

# List available voices
momni voice list

# Clone a voice
momni voice clone <voice_id> <path_to_audio_file> <text>

# Voice design
momni voice design "An enthusiastic female voice" "This is a preview text"

Image and Video Generation

# Generate Image
momni image "A futuristic city under a starry night" --aspect-ratio 16:9

# Generate Video
momni video "A camera flying through a futuristic city"

# Check Video Status
momni video-status <task_id>

Music Generation

momni music "lo-fi chill beats" "Soft wind blowing through the trees..."

MCP Server Usage

You can use the built-in serve command to start the MCP server, which exposes these generation endpoints as tools via the standard MCP interface:

momni serve

Example configuration for an MCP client:

{
  "mcpServers": {
    "minimax-omni": {
      "command": "momni",
      "args": ["serve"],
      "env": {
        "MINIMAX_API_KEY": "your_api_key",
        "MINIMAX_API_HOST": "https://api.minimax.chat"
      }
    }
  }
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

minimax_omni-0.0.18.tar.gz (23.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

minimax_omni-0.0.18-py3-none-any.whl (28.0 kB view details)

Uploaded Python 3

File details

Details for the file minimax_omni-0.0.18.tar.gz.

File metadata

  • Download URL: minimax_omni-0.0.18.tar.gz
  • Upload date:
  • Size: 23.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.9

File hashes

Hashes for minimax_omni-0.0.18.tar.gz
Algorithm Hash digest
SHA256 348c5313486723598d3655dfc43f64d45f4a9cba31f5a1981112212450ac9896
MD5 5d18d08ed5e5e64a30eeb5f9a3451239
BLAKE2b-256 fa5365e15926124034ea5412e28296df9ee7ee4185e0ed35fa2689d1343e9fd1

See more details on using hashes here.

File details

Details for the file minimax_omni-0.0.18-py3-none-any.whl.

File metadata

  • Download URL: minimax_omni-0.0.18-py3-none-any.whl
  • Upload date:
  • Size: 28.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.9

File hashes

Hashes for minimax_omni-0.0.18-py3-none-any.whl
Algorithm Hash digest
SHA256 5804ed2ead5059c6597aafb112880211a93f5a246cf664eec3423f7d11f9af9a
MD5 8dbcf0bf32410eed7f0a4616de7e887c
BLAKE2b-256 bd391a274c69b729fcd05c214644fb5bfb7e0dbd618a256c3d986ddddf2b1f2f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page