MiniMax class defaults to MiniMax-M3 and points at the international endpoint https://api.minimax.io/v1.
Installation
Authentication
Create an API key from the MiniMax platform dashboard. Set yourMINIMAX_API_KEY environment variable.
Example
UseMiniMax with your Agent:
View more examples here.
Parameters
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: