API Overview
Learn how to authenticate and call MiniMax-M2 APIs.
MiniMax-M2 API Overview
MiniMax-M2 exposes RESTful endpoints from this deployment so you can run benchmark-grade reasoning and agent workflows without leaving your own stack. The API surface mirrors familiar OpenAI- and Anthropic-style contracts while enforcing this site’s authentication and billing.
- Base URL:
https://minimax-m2.com/api/v1 - Authentication: API key issued from the dashboard (
Authorization: Bearer <key>for OpenAI-style calls,x-api-keyfor Anthropic-style calls) - Models:
MiniMax-M2 - Pricing (launch window): Free tier for hosted chat/API evaluation, then
$0.50 / million input tokens,$1.50 / million output tokens
Supported Endpoint Families
- Chat Completions (
POST /api/v1/chat/completions): OpenAI-compatible chat API. Supports streaming responses via Server-Sent Events. - Messages (
POST /api/v1/messages): Claude-compatible request body/response format. Currently supports non-stream responses.
HTTP Environments
Use HTTPS in production. For local testing, the same routes are available on your development server (e.g., http://localhost:3000/api/v1/...).
Authentication Summary
Create API keys in the dashboard and send them with each request:
or for Claude-compatible endpoints:
Note: API keys inherit your account’s billing privileges. Rotate keys regularly and revoke unused credentials from the dashboard.
Continue with the following guides: