The MiniMax backend provides access to MiniMax (Hailuo AI) models through their OpenAI-compatible API. MiniMax offers powerful reasoning models and general-purpose language models.
MiniMax (Hailuo AI) is a Chinese AI company known for its advanced reasoning models (like MiniMax-M2) and strong general-purpose models. The proxy supports the minimax backend for accessing these models.
- OpenAI-compatible API
- Strong reasoning capabilities (MiniMax-M2)
- High-quality general-purpose models
- Competitive pricing
- Streaming and non-streaming responses
export MINIMAX_API_KEY="..."# Start proxy with MiniMax as default backend
python -m src.core.cli --default-backend minimax
# With specific model
python -m src.core.cli --default-backend minimax --force-model MiniMax-M2# config.yaml
backends:
minimax:
type: minimax
default_backend: minimax- MiniMax-M2: Advanced reasoning model, excellent for complex tasks
- abab6.5s: General-purpose model
- abab6.5t: Turbo model for faster responses
curl -X POST http://localhost:8000/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_PROXY_KEY" \
-d '{
"model": "MiniMax-M2",
"messages": [
{"role": "user", "content": "Hello!"}
]
}'curl -X POST http://localhost:8000/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_PROXY_KEY" \
-d '{
"model": "MiniMax-M2",
"messages": [
{"role": "user", "content": "Solve this logic puzzle..."}
]
}'curl -X POST http://localhost:8000/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_PROXY_KEY" \
-d '{
"model": "MiniMax-M2",
"messages": [
{"role": "user", "content": "Explain quantum physics"}
],
"stream": true
}'MiniMax-M2 is highly recommended as a reasoning model in the Hybrid Backend configuration:
curl -X POST http://localhost:8000/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{
"model": "hybrid:[minimax:MiniMax-M2,qwen-oauth:qwen3-coder-plus]",
"messages": [{"role": "user", "content": "Complex coding task"}]
}'See Hybrid Backend for details.
MiniMax models excel at:
- Logical reasoning
- Mathematical problem solving
- Complex instruction following
- Strategic planning
- Hybrid Backend - Combine MiniMax with execution models
- Model Name Rewrites - Route models to MiniMax