# Kimi K2.7 Code

> Kimi K2.7 Code is a coding-focused model in Moonshot AI's Kimi K2 family, built to complete end-to-end programming tasks reliably over long contexts. It uses a native multimodal mixture-of-experts architecture that accepts text and image input, and it always operates in a thinking mode, preserving full reasoning content across multi-turn conversations. With a 256K-token context window, it targets long-horizon coding, agentic task decomposition, and multi-turn dialogue. The model activates 32B parameters out of roughly 1T total.

**ID**: `moonshotai/kimi-k2.7-code`  
**Creator**: Moonshot AI  
**Category**: multimodal  
**Context**: 262K tokens  
**Pricing**: $0.71 / $3.50 per 1M · billed by your provider (BYOK)  
**Released**: 2026-06-12  
**Web page**: https://anyrouter.dev/model/moonshotai/kimi-k2.7-code

**Input modalities**: text, image  
**Output modalities**: text  

**Tokenizer**: Kimi

**Capabilities**: chat, coding, reasoning, multilingual, agentic, vision, function-calling, structured-output, streaming

**Aliases**: `wafer/moonshot-kimi-k2-7-code`

## Usage

**Endpoint**: `POST https://anyrouter.dev/api/v1/chat/completions`

```bash
curl https://anyrouter.dev/api/v1/chat/completions \
  -H "Authorization: Bearer $ANYROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "moonshotai/kimi-k2.7-code",
  "messages": [
    {
      "role": "user",
      "content": "Say hi in 3 words."
    }
  ]
}'
```

## Providers

| Provider | Input | Output |
| --- | --- | --- |
| fireworks-byok | $0.95/M (list) | $4.00/M (list) |
| moonshotai-byok | $0.95/M (list) | $4.00/M (list) |
| openrouter-byok | $0.71/M (list) | $3.50/M (list) |
| opencode-go-byok | $0.95/M (list) | $4.00/M (list) |
| cline-byok | $0.95/M (list) | $4.00/M (list) |
| commandcode-byok | $0.95/M (list) | $4.00/M (list) |
| router-byok | $1.90/M (list) | $8.00/M (list) |
| vercel-byok | $0.95/M (list) | $4.00/M (list) |

BYOK routes are billed by your own provider key — AnyRouter charges $0. Rates marked (list) are the provider's published list price.

## Benchmarks

- **GPQA Diamond**: 0.9
- **HLE**: 0.3
- **τ²-Bench Telecom**: 0.9
- **SciCode**: 0.5
- **OTIS Mock AIME**: 1.0
- **SimpleQA (verified)**: 0.4

Benchmark data from [Epoch AI](https://epoch.ai/benchmarks) (CC-BY 4.0).

## Source

- Upstream docs: https://developers.cloudflare.com/ai/models/@cf/moonshotai/kimi-k2.7-code/
