Skip to main content
MiniMax-M2.7 is MiniMax’s flagship text model, available through Anyfast via an OpenAI-compatible interface. It features 204K context and interleaved thinking for complex reasoning tasks.

Key capabilities

  • OpenAI-compatible — Works as a drop-in replacement with the OpenAI SDK
  • 204K context — Handles large documents and multi-turn conversations
  • Thinking/Reasoning — Interleaved thinking support for complex reasoning
  • Tool calling — Supports function/tool calls for agentic workflows
  • Text-only — Optimized for text and tool calls (no image/video input)

Quick example

curl https://www.anyfast.ai/v1/chat/completions \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "MiniMax-M2.7",
    "messages": [
      { "role": "user", "content": "Explain quantum entanglement in simple terms." }
    ]
  }'

Parameters

ParameterTypeRequiredDescription
modelstringYesMust be MiniMax-M2.7
messagesarrayYesList of { role, content } objects. Text and tool calls only
max_tokensintegerNoMaximum tokens to generate
temperaturefloatNo02. Controls randomness. Default: 1
streambooleanNoEnable SSE streaming. Default: false
top_pfloatNoNucleus sampling threshold. Default: 0.9
stopstring / arrayNoSequences that stop generation
toolsarrayNoTool/function definitions for agentic workflows
tool_choicestring / objectNoTool selection strategy

API Reference

View the interactive API playground for MiniMax-M2.7.