Skip to content
laminarity

MiniMax · MiniMax M2

MiniMax M2.7 API

MiniMax M2.7 with a 180K-token context window. Call it with any OpenAI SDK at $0.15 per million tokens.

  • Useful as a fallback model when you want a different family for a second opinion.
  • Same key, same balance as every other model.
Model id
MiniMaxAI/MiniMax-M2.7
Vendor
MiniMax
Context window
180,000 tokens
Input price
$0.15 per 1M tokens
Output price
$0.15 per 1M tokens
Dedicated endpoint
/v1/minimax-m2.7/chat/completions
Compatibility
OpenAI Chat Completions, streaming

Call MiniMax M2.7

Pass the model id to the shared endpoint. Agents paying with x402 can also call the dedicated endpoint /v1/minimax-m2.7/chat/completions, where the model is fixed by the URL.

from openai import OpenAI

client = OpenAI(base_url="https://api.laminarity.uk/v1", api_key="sk-or-...")
reply = client.chat.completions.create(
    model="MiniMaxAI/MiniMax-M2.7",
    messages=[{"role": "user", "content": "Hello!"}],
)
print(reply.choices[0].message.content)

Other models