MiniMax: MiniMax M2.7
minimaxai/minimax-m2.7MiniMax open-weight text-generation model focused on agentic coding, software engineering workflows, log analysis, troubleshooting, refactoring, and complex productivity tasks
- Modalities
- text -> text
- Network cost
- $0.000307/1M tokens
- Platform fee
- $0.000031/1M tokens
- Total price
- $0.000338/1M tokens
- Context
- 205K
- Released
- Mar 18, 2026
Performance for MiniMax M2.7
Gonka Network throughput, latency, and reliability metrics are coming soon.
Latency
E2E Latency
Tool call error rate
Structured output error rate
Pricing history for MiniMax M2.7
SoonHistorical Gonka Network pricing for this model is coming soon.
Current pricing
Total price
$0.000338
per 1M tokens
History preview
Total price
Sample code and API for MiniMax M2.7
GonkaGate accepts OpenAI-compatible requests and sends them to Gonka Network.
Get your API key
Create an API key from your GonkaGate dashboard and set it as an environment variable:
Create API keyexport GONKAGATE_API_KEY=gp-your-api-keyMake your first request
Use minimaxai/minimax-m2.7.
GonkaGate provides an OpenAI-compatible chat completions API for Gonka Network models. You can call it directly or use common OpenAI SDKs.
Set the base URL to https://api.gonkagate.com/v1 and pass your GonkaGate API key in the Authorization header.
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api.gonkagate.com/v1",
apiKey: process.env.GONKAGATE_API_KEY
});
const response = await client.chat.completions.create({
model: "minimaxai/minimax-m2.7",
messages: [
{ role: "user", content: "What is the meaning of life?" }
]
});
console.log(response.choices[0].message.content);Using third-party SDKs
For SDK and framework setup examples, see SDK documentation and integrations.
Enable streaming
Add "stream": true to your request body to receive responses as server-sent events:
curl -N https://api.gonkagate.com/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $GONKAGATE_API_KEY" \
-d '{
"model": "minimaxai/minimax-m2.7",
"stream": true,
"messages": [
{"role": "user", "content": "Hello"}
]
}'Endpoint
- Authorization
- Bearer $GONKAGATE_API_KEY
- Content-Type
- application/json
- Model
- minimaxai/minimax-m2.7
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
| reasoning | map | — | Controls reasoning behavior for models that support thinking tokens, including reasoning effort and whether reasoning is included in the response. |
| max_tokens | integer | — | Sets the upper limit for the number of tokens the model can generate in response. |
| temperature | float | 1 | Influences the variety of the model's responses. |
| top_p | float | 1 | Limits choices to the smallest set of likely tokens whose probabilities add up to this value. |
| seed | integer | — | Samples deterministically when supported, so repeated requests with the same seed and parameters can return the same result. |
| presence_penalty | float | 0 | Adjusts how often the model repeats specific tokens already used in the input. |
| response_format | map | — | Requests a specific output format when the model supports it. |
| tools | array | — | Tool calling parameter following OpenAI's tool calling request shape. |
| tool_choice | string or object | — | Controls which tool, if any, is called by the model. |
| logprobs | boolean | — | Requests output-token log probabilities when supported. |
| top_logprobs | integer | — | Specifies how many most likely tokens to return at each token position, each with an associated log probability. |