Skip to content

MiniMax setup guide

MiniMax

MiniMax M3 can be used in OMA’s TypeScript multi-agent workflows with a simple provider config.

OMA users get 12% off the MiniMax Token Plan. Valid until 2026-06-30.

RegionLink
Globalplatform.minimax.io
Chinaplatform.minimaxi.com

This is a limited-time community offer, not a paid endorsement.

MiniMax M3 is MiniMax’s latest flagship model. It supports up to a 1M-token context window (512K guaranteed minimum) and accepts image inputs alongside text. M3 is now the recommended default; M2.7 and MiniMax-M2.7-highspeed remain available for callers that pin a model explicitly.

Terminal window
export MINIMAX_API_KEY=your-api-key

The adapter defaults to the global endpoint (https://api.minimax.io/v1). China users should override the base URL:

Terminal window
export MINIMAX_BASE_URL=https://api.minimaxi.com/v1
const agent: AgentConfig = {
name: 'my-agent',
provider: 'minimax',
model: 'MiniMax-M3',
systemPrompt: 'You are a helpful assistant.',
}

Full example:

import { OpenMultiAgent, type AgentConfig } from '@open-multi-agent/core'
const agent: AgentConfig = {
name: 'analyst',
provider: 'minimax',
model: 'MiniMax-M3',
systemPrompt: 'Analyze data and produce concise reports.',
tools: ['bash', 'file_read', 'file_write'],
}
const orchestrator = new OpenMultiAgent()
// Built-in filesystem tools default to a `<cwd>/.agent-workspace` sandbox;
// point the agent at an absolute path inside that root.
const result = await orchestrator.runAgent(
agent,
`Summarize the file ${process.cwd()}/.agent-workspace/report.csv`,
)
console.log(result.output)
  • This is a limited-time community offer valid through 2026-06-30.
  • Listings are not paid endorsements.
  • Some provider offers may include referral credits that help maintain the project.