Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.agno.com/llms.txt

Use this file to discover all available pages before exploring further.

MiniMax serves its text models through an OpenAI-compatible API, so you drive them through Agno like any other OpenAI-compatible provider. The MiniMax class defaults to MiniMax-M2.7 and points at the international endpoint https://api.minimax.io/v1.

Authentication

Create an API key from the MiniMax platform dashboard. Set your MINIMAX_API_KEY environment variable.
export MINIMAX_API_KEY=***

Example

Use MiniMax with your Agent:
from agno.agent import Agent
from agno.models.minimax import MiniMax

agent = Agent(model=MiniMax(id="MiniMax-M2.7"), markdown=True)

# Print the response in the terminal
agent.print_response("Share a 2 sentence horror story.")
View more examples here.

Parameters

ParameterTypeDefaultDescription
idstr"MiniMax-M2.7"The id of the MiniMax model to use
namestr"MiniMax"The name of the model
providerstr"MiniMax"The provider of the model
api_keyOptional[str]NoneThe API key for MiniMax (defaults to MINIMAX_API_KEY env var)
base_urlstr"https://api.minimax.io/v1"The base URL for the MiniMax API
MiniMax extends the OpenAI-compatible interface and supports most parameters from the OpenAI model. Note: MiniMax does not implement OpenAI-style native response_format / strict json_schema, so supports_native_structured_outputs is set to False. Use use_json_mode=True for structured output. To hit a different host (private deployment, regional endpoint), pass base_url:
MiniMax(id="MiniMax-M2.7", base_url="https://your-host.example.com/v1")

Available Models

The OpenAI-compatible endpoint exposes the M2 family. See the models intro for the current catalog.
Model idNotes
MiniMax-M2.7Flagship MoE (230B total / 10B active), 205k context
MiniMax-M2.7-highspeedSame weights as M2.7, ~1.6-1.7x throughput
MiniMax-M2.5Previous flagship
MiniMax-M2.5-highspeedHigher-throughput variant of M2.5
MiniMax-M2.1Earlier release
MiniMax-M2.1-highspeedHigher-throughput variant of M2.1
MiniMax-M2Earlier release