Skip to main content
View source

MiniMax

View as Markdown

A RocketRide LLM node that connects MiniMax models to a pipeline via the MiniMax cloud API or a self-hosted OpenAI-compatible server.

What it does

Provides MiniMax chat models as an llm invoke connection for agents and other nodes that need an LLM, and can also be used directly via lanes. It works against the MiniMax cloud API or a self-hosted OpenAI-compatible server (vLLM, SGLang, MLX, or Ollama).

The MiniMax API is OpenAI-compatible, so the node uses langchain-openai (ChatOpenAI) pointed at the configured base URL, with temperature: 0 and the profile's output-token limit as max_tokens. Config validation at save time runs a minimal one-token probe through the openai SDK and surfaces provider errors as warnings.

MiniMax M2-series models return chain-of-thought wrapped in <think>...</think> inside the content field; the node strips that block so downstream pipeline nodes only see the final answer.

Lanes

Lane inLane outDescription
questionsanswersSend a question directly, receive a generated answer

Profiles

Default: MiniMax M2 (minimax-m2).

ProfileModelContextOutput
minimax-m2 (default)MiniMax-M2204,80065,536
minimax-m3MiniMax-M31,000,000131,072
minimax-m2-7MiniMax-M2.7204,80065,536
minimax-m2-7-highspeedMiniMax-M2.7-highspeed204,80065,536
minimax-m2-7-localMiniMaxAI/MiniMax-M2.7204,8008,192
View 13 more models
ProfileModelContextOutput
custom(user-specified)200,0008,192
minimax-m2-1MiniMax-M2.1204,80065,536
minimax-m2-1-highspeedMiniMax-M2.1-highspeed204,80065,536
minimax-m2-5MiniMax-M2.5204,80065,536
minimax-m2-5-highspeedMiniMax-M2.5-highspeed204,80065,536
minimax-m2-localMiniMaxAI/MiniMax-M2204,8008,192
minimax-m2-5-localMiniMaxAI/MiniMax-M2.5204,8008,192
minimax-01minimax-011,000,192900,172
minimax-m1minimax-m11,000,00040,000
minimax-m2-herminimax-m2-her65,5362,048
minimax-m2-7-freeminimax-m2.7:free196,608176,947
minimax-m3-batchminimax-m3:batch524,288471,859
minimax-m3-freeminimax-m3:free1,048,576943,718

The -highspeed variants are MiniMax's faster tier of the same generation. MiniMax M3 is multimodal at the API level, though this node exposes only text.

Configuration

Choose a profile to set the model and token limits. Cloud profiles target MiniMax's API; local profiles prefill the Hugging Face model path and a local OpenAI-compatible server, while custom exposes the model, context budget, and server URL for manual configuration.

Server base URL

Use https://api.minimax.io/v1 for the international cloud API or https://api.minimaxi.com/v1 for China. Local profiles default to vLLM or SGLang at http://localhost:8000/v1; change the URL when using MLX, Ollama, or another OpenAI-compatible server.

Authentication

Cloud profiles require a MiniMax API key in apikey. The key requirement is enforced by base-URL match: if serverbase contains api.minimax (covers both api.minimax.io international and api.minimaxi.com China) and no key is set, the node raises MiniMax API key is required for cloud profiles. at startup.

Local profiles (vLLM / SGLang / MLX / Ollama) have no apikey field; local OpenAI-compatible servers accept any token, so the node passes a dummy key (sk-local-dummy-key).

Notes

Local deployment

MiniMax's open-weight M2-family models are MIT-licensed 230B-parameter MoE models with about 10B parameters active per token. They require substantial memory:

  • Linux + GPU (at least 96 GB total VRAM): Run vLLM or SGLang on port 8000 and use the profile's Hugging Face model path.
  • Apple Silicon Mac Studio (at least 128 GB unified memory): Run MLX on port 8080, set the server URL to http://localhost:8080/v1, and use a quantized build such as mlx-community/MiniMax-M2.7-4bit.
  • Ollama on lower-memory systems: Set the server URL to http://localhost:11434/v1 and use the tag you pulled. Verify that the tag exists before configuring it.

These models do not fit on a typical laptop without aggressive quantization. M2.7 is a reasoning model whose API separates message.content from message.reasoning_content, so allow a generous output budget even for short prompts.

Upstream docs


Schema

FieldTypeDescriptionDefault
minimax.profilestringModel
MiniMax LLM model
"minimax-m2"
minimax.serverbasestringServer base URL
OpenAI-compatible base URL for the MiniMax endpoint (e.g. https://api.minimax.io/v1 for international, https://api.minimaxi.com/v1 for China).
"https://api.minimax.io/v1"
modelstringModel
MiniMax model
modelTotalTokensnumberTokens
Total Tokens

Dependencies

  • openai
  • langchain-openai
  • langchain-core
  • langchain