# kimi-k2.6 — API, Pricing & Context Window

`kimi-k2.6` is Moonshot AI's capable coding model, notable for a **262K-token context window** paired with an exceptionally large **256K-token max output**. That combination suits agents that both read and generate large volumes of code.

Vivgrid serves `kimi-k2.6` through its unified, OpenAI-compatible API, letting you route Moonshot alongside other providers with a single key and billing surface.

## Specifications

|     |     |
| --- | --- |
| **Provider** | Moonshot AI |
| **Model ID** | `kimi-k2.6` |
| **Best for** | Coding |
| **Context window** | 262,144 tokens |
| **Max output** | 256,000 tokens |
| **Modalities** | Text, Image |
| **Tool / function calling** | Yes |
| **Knowledge cutoff** | 2026-04 |
| **Acceleration** | 🌐 Global (Centralized) |

## Pricing

Pricing in USD per 1M tokens, matching the provider's rates.

| Input | Cached input | Output |
| --- | --- | --- |
| $1.00 | $0.20 | $4.00 |

## Quick start

Call `kimi-k2.6` through Vivgrid's unified, OpenAI-compatible endpoint. Get an API key from the [Vivgrid Console](https://console.vivgrid.com/).

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

## [Ideal use cases](/content/docs/models/kimi-k2.6#ideal-use-cases/index.html)

- Coding agents that produce large outputs
- Long-context engineering and refactoring tasks
- Tool-calling workflows on Chat Completions
- Cost-effective alternative to frontier coding models

## [Related models](/content/docs/models/kimi-k2.6#related-models/index.html)

- [glm-5.1](/content/docs/models/glm-5.1) — another competitive coding model
- [minimax-m3](/content/docs/models/minimax-m3/index.html) — high-context coding option
- [deepseek-v4-pro](/content/docs/models/deepseek-v4-pro/index.html) — flagship low-cost coding model
