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",
)

Metadata

Release files for llama-index-llms-minimax 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for llama-index-llms-minimax 0.2.1
File Size Uploaded Provenance
llama_index_llms_minimax-0.2.1.tar.gz 4.3 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for llama-index-llms-minimax 0.2.1
File Interpreter ABI Platform
llama_index_llms_minimax-0.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 8.5 kB

Release files / llama_index_llms_minimax-0.2.1.tar.gz

Download URL llama_index_llms_minimax-0.2.1.tar.gz
Size 4.3 kB
Tags Source
SHA-256 checksum
How to use checksums
42dd602b57a9f9c1be94563e6335fb7a3d2f3f29f2111143f507b67767fdcddf
BLAKE2b-256 checksum
How to use checksums
411b76cc61d923d0e676d36b42f80dd504cfa715286533b1bede74f59dc9801d
Upload date
Uploaded using Trusted Publishing?
What is 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}

Release files / llama_index_llms_minimax-0.2.1-py3-none-any.whl

Download URL llama_index_llms_minimax-0.2.1-py3-none-any.whl
Size 4.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
eb3c00dc25a60f1150e2cd367ed465a317701dbd1dd1205f722ac72506f9f72c
BLAKE2b-256 checksum
How to use checksums
8fee8b549f7d3d93f0f6a9275d4d3d06d07f639a86fed5cb097de0e17627beda
Upload date
Uploaded using Trusted Publishing?
What is 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}

Security for llama-index-llms-minimax 0.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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