Skip to content

MiniMax

MiniMax M2

For migrating existing code.

minimax/minimax-m2
Input → Output
Text/Text → Text/Text
Maximum input
-
Provider
1
Tool invocation
Yes

Price per million tokens

Input
486 credits
Output
1,944 credits

Provider

Several providers serve the same model. Performance is measured on actual AlpRouter requests over the last seven days, and uptime over the last three.

ProviderInput / 1MOutput / 1MCache readFirst tokenThroughputUptime
Amazon Bedrock486 credits1,944 credits----

Time to first token and throughput are medians (P50). Values are hidden for fewer than 10 requests.

Use the API

from openai import OpenAI

client = OpenAI(
    base_url="https://alprouter.com/api/v1",
    api_key="alp-your-key",
)

answer = client.chat.completions.create(
    model="minimax/minimax-m2",
    messages=[{"role": "user", "content": "Hello"}],
)
print(answer.choices[0].message.content)

Details

Maximum output
32.8K tokens
Tool invocation
Supported
Supported input
Text/Text
Output
Text/Text
Provider
Amazon Bedrock
Supported parameters
max_completion_tokens, max_tokens, response_format, stream, temperature, tool_choice, tools, top_p

Frequently asked questions

What kind of model is MiniMax M2?

A model from MiniMax. For migrating existing code. Model ID on AlpRouter: minimax/minimax-m2

How much does MiniMax M2 cost?

Per million tokens: 486 credits input, 1,944 credits output. One credit equals ₩1. Only usage is deducted from your balance. There is no monthly subscription.

What input and output does MiniMax M2 support?

Send Text/Text to receive Text/Text.

Does MiniMax M2 support tool calling and structured JSON?

Tool calling: Supported. Structured output (response_format): Supports the json_schema format..

Which providers handle MiniMax M2 requests?

Amazon Bedrock handles these requests.

How do I call MiniMax M2 from code?

Just replace the base_url in the OpenAI SDK with https://alprouter.com/api/v1. Also, specify the name of the model in the model field (minimax/minimax-m2). There’s an example of how to do this in the “Using the API” section above.

Other models from MiniMax