# minimax-m2.7 — API, Pricing & Context Window | Vivgrid

> Source: https://vivgrid.com/docs/models/minimax-m2.7

minimax-m2.7 on Vivgrid: MiniMax's affordable coding model with a 205K context window, 131K max output, and APAC acceleration.

`minimax-m2.7` is MiniMax's affordable coding model, offering a **205K-token context window** and **131K-token max output** at some of the lowest prices in the catalog. It's well suited to high-volume coding and reasoning on a tight budget.

Vivgrid serves `minimax-m2.7` through its unified, OpenAI-compatible API with **APAC acceleration**, ideal for Asia-Pacific teams.

## Specifications

| Field | Value |
| --- | --- |
| Provider | MiniMax |
| Model ID | `minimax-m2.7` |
| Best for | Coding |
| Available on | Vibe coding |
| Context window | 204,800 tokens |
| Max output | 131,072 tokens |
| Modalities | Text, Image |
| Tool / function calling | Yes |
| Knowledge cutoff | 2026-03 |
| Acceleration | Global (centralized) |

## Pricing

Pricing in USD per 1M tokens.

| Input | Cached input | Output |
| --- | --- | --- |
| $0.30 | $0.06 | $1.20 |

### What one request costs

The rates above applied to a 20K-token prompt with a 2K-token reply — a typical single agent turn, small enough that every request is billed at the base rate.

| Request | Cost |
| --- | --- |
| Cold prompt, nothing cached | $0.00840 |
| Warm prompt, 90% of the input served from cache | $0.00408 |


## API surfaces

The Vivgrid Console catalogs `minimax-m2.7` on one surface, all behind the same API key. The endpoint shown is the one the Console previews for that surface.

| Surface | Primary endpoint | Use it for |
| --- | --- | --- |
| Vibe coding | `/chat/completions` | Coding CLIs and IDE agents that drive the model themselves — point the tool at Vivgrid and keep your own loop. |

## Quick start

Get an API key from the Vivgrid Console (https://console.vivgrid.com), then call `minimax-m2.7` directly.

```bash
curl https://api.vivgrid.com/v1/chat/completions \
  -H "Authorization: Bearer $VIVGRID_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "minimax-m2.7",
    "messages": [
      { "role": "user", "content": "Say hello in English, Chinese and Spanish." }
    ],
    "stream": true
  }'
```


## Ideal use cases

- Budget-focused coding agents
- High-volume code generation and review
- APAC deployments needing low latency
- Cost-efficient steps in larger pipelines

## Related models

- [gpt-6-astra](/docs/models/gpt-6-astra) — OpenAI's frontier gpt-6 coding model
- [minimax-m3](/docs/models/minimax-m3) — the newer MiniMax generation
- [deepseek-v4-flash](/docs/models/deepseek-v4-flash) — ultra-affordable option
