Skip to main content

LlamaIndex Llms Integration: MiniMax

This is the MiniMax integration for LlamaIndex. Visit MiniMax for information on how to get an API key and which models are supported.

Installation

pip install llama-index-llms-minimax

Usage

from llama_index.llms.minimax import MiniMax

llm = MiniMax(model="MiniMax-M2.7", api_key="your-api-key")

response = llm.complete("Explain the importance of low latency LLMs")
print(response)

Available Models

Model Description
MiniMax-M2.7 Latest flagship model with enhanced reasoning and coding
MiniMax-M2.7-highspeed High-speed version of M2.7 for low-latency scenarios
MiniMax-M2.5 Peak Performance. Ultimate Value. Master the Complex.
MiniMax-M2.5-highspeed Same performance, faster and more agile.

Both models support a 204,800-token context window.

Environment Variables

You can set the MINIMAX_API_KEY environment variable instead of passing api_key directly:

export MINIMAX_API_KEY="your-api-key"
from llama_index.llms.minimax import MiniMax

llm = MiniMax(model="MiniMax-M2.7")

Custom Base URL

For users in mainland China, use the domestic API endpoint:

llm = MiniMax(
    model="MiniMax-M2.7",
    api_base="https://api.minimaxi.com/v1",
)

Download files

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

Source Distribution

llama_index_llms_minimax-0.2.0.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

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

llama_index_llms_minimax-0.2.0-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file llama_index_llms_minimax-0.2.0.tar.gz.

File metadata

  • Download URL: llama_index_llms_minimax-0.2.0.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.7 {"installer":{"name":"uv","version":"0.12.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for llama_index_llms_minimax-0.2.0.tar.gz
Algorithm Hash digest
SHA256 65984be63ea4182a24a28afcab687d9c8e82ca1b86112bba9e603eb27659e46b
MD5 7c5b5d371dc7005c1677464839ab580f
BLAKE2b-256 b79d4ee7468e8a97fec64202d7c787a9d1e2fb43c90023c0e9afe5508720530b

See more details on using hashes here.

File details

Details for the file llama_index_llms_minimax-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: llama_index_llms_minimax-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.7 {"installer":{"name":"uv","version":"0.12.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for llama_index_llms_minimax-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f7f55cd9d206ce864220c9b3946857c8c68ff2652276ae5c6b660c67eb8d31b8
MD5 aee298a1168327dfd47110049ebadb0f
BLAKE2b-256 90115538ba475fa5c1b8cf90b6a52820a707a5c7cd5d36890f805585d1f36589

See more details on using hashes here.

Release history Release notifications | RSS feed

0.2.1

2 files

This release

0.2.0 This release

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page