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.1.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.1-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: llama_index_llms_minimax-0.2.1.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.1.tar.gz
Algorithm Hash digest
SHA256 42dd602b57a9f9c1be94563e6335fb7a3d2f3f29f2111143f507b67767fdcddf
MD5 8aedf2fb08b353775fe13a871ff17997
BLAKE2b-256 411b76cc61d923d0e676d36b42f80dd504cfa715286533b1bede74f59dc9801d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: llama_index_llms_minimax-0.2.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 eb3c00dc25a60f1150e2cd367ed465a317701dbd1dd1205f722ac72506f9f72c
MD5 4e2a76f814e24edca34f161f59fb1518
BLAKE2b-256 8fee8b549f7d3d93f0f6a9275d4d3d06d07f639a86fed5cb097de0e17627beda

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 files

0.2.0

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