# Moonshot: Kimi K2.7 Code

Kimi K2.7 Code is Moonshot AI's coding model built on K2.6, an open-weight MoE with 32B of 1T parameters active. It always thinks, targets long-horizon software engineering with Kimi Code CLI, reads images, and uses a modified MIT license.

- **Model id:** `opencheap/kimi-k2.7-code`
- **Price per 1M tokens:** $0.25 input / $1.08 output
- **Cached input:** $0.05 per 1M tokens
- **Context:** 262K tokens, 235K max output

## Providers

11 providers. Prices are per 1M tokens. As of 2026-12-04 11:56 UTC.

| Provider | Input price | Cache price | Output price | Latency | Speed | Uptime | Context | Max output |
| --- | --- | --- | --- | --- | --- | --- | --- | --- |
| Surplus · quantization unknown | $0.25 | $0.05 | $1.08 | 0.80 s | 104 tok/s | 100 % (success rate) | 262K | 131K |
| Hugging Face · coreweave · int4 | $0.60 | $0.60* | $3.00 | 0.38 s | 243 tok/s | 100 % (success rate) | 262K | — |
| NanoGPT · quantization unknown | $0.60 | $0.12 | $3.00 | 1.05 s | 112 tok/s | 100 % (success rate) | 262K | 65K |
| CoreWeave · int4 | $0.63 | $0.13 | $3.15 | 0.75 s | 135 tok/s | 100 % | 262K | 235K |
| Qubax · quantization unknown | $0.65 | $0.13 | $2.59 | 1.25 s | 97 tok/s | 100 % (success rate) | 262K | 131K |
| Inceptron · int4 | $0.66 | $0.16 | $3.67 | 0.84 s | 52 tok/s | 100 % | 262K | 235K |
| SiliconFlow · fp8 | $0.90 | $0.19 | $3.99 | 2.54 s | 18 tok/s | 100 % | 262K | 235K |
| AiHubMix · quantization unknown | $0.95 | $0.16 | $4.00 | 0.53 s | 133 tok/s | 100 % (success rate) | 262K | 32K |
| Alibaba · fp8 | $1.00 | $0.20 | $4.20 | 0.81 s | 87 tok/s | 100 % | 262K | 16K |
| EmpirioLabs AI · quantization unknown | $1.00 | $1.00 | $4.20 | 1.20 s | 103 tok/s | 100 % (success rate) | 262K | 131K |
| Moonshot AI · Route 1 | $1.00 | $0.20 | $4.20 | 1.24 s | 85 tok/s | 100 % | 262K | 235K |
| Moonshot AI · Route 2 | $2.00 | $0.40 | $8.40 | 1.92 s | 89 tok/s | 100 % | 262K | 235K |

\* No cache discount from this provider: cached tokens cost the input price.

A request picks by price (`:floor`) or by speed (`provider.sort`, `:nitro`), or sets a floor on tokens per second. [How routing works](https://docs.opencheap.si/speed)

### Supported parameters

The parameters each provider supports on this model, from its published list and our own tests of whether answers show the parameter taking effect. A test is a snapshot, not a guarantee; `provider.require_parameters` sends a request only to providers that support every parameter it sets. [Required parameters](https://docs.opencheap.si/speed#require-parameters)

- **Surplus:** `temperature`, `top_p`, `logit_bias`, `presence_penalty`, `stop`, `response_format`, `structured_outputs`, `tools`, `tool_choice`
- **Hugging Face · coreweave:** `temperature`, `top_p`, `top_k`, `seed`, `logit_bias`, `frequency_penalty`, `presence_penalty`, `stop`, `response_format`, `structured_outputs`, `tools`, `tool_choice`
- **NanoGPT:** `temperature`, `top_p`, `seed`, `logit_bias`, `presence_penalty`, `stop`, `response_format`, `structured_outputs`, `tools`, `tool_choice`, `reasoning`, `include_reasoning`
- **CoreWeave:** `temperature`, `top_p`, `top_k`, `seed`, `repetition_penalty`, `frequency_penalty`, `presence_penalty`, `stop`, `response_format`, `structured_outputs`, `logprobs`, `top_logprobs`, `tools`, `tool_choice`, `reasoning`, `include_reasoning`
- **Qubax:** `temperature`, `top_p`, `logit_bias`, `presence_penalty`, `stop`, `response_format`, `structured_outputs`, `tools`, `tool_choice`
- **Inceptron:** `temperature`, `top_p`, `seed`, `logit_bias`, `frequency_penalty`, `presence_penalty`, `stop`, `response_format`, `structured_outputs`, `logprobs`, `top_logprobs`, `tools`, `tool_choice`, `reasoning`, `include_reasoning`
- **SiliconFlow:** `temperature`, `top_p`, `top_k`, `frequency_penalty`, `tools`, `tool_choice`, `reasoning`, `include_reasoning` (stop not confirmed)
- **AiHubMix:** `temperature`, `top_p`, `top_k`, `seed`, `logit_bias`, `presence_penalty`, `stop`, `response_format`, `structured_outputs`, `tools`, `tool_choice`
- **Alibaba:** `temperature`, `top_p`, `seed`, `presence_penalty`, `response_format`, `structured_outputs`, `logprobs`, `top_logprobs`, `tools`, `tool_choice`, `reasoning`, `include_reasoning` (stop not confirmed)
- **EmpirioLabs AI:** `temperature`, `top_p`, `top_k`, `min_p`, `seed`, `repetition_penalty`, `frequency_penalty`, `presence_penalty`, `stop`, `response_format`, `structured_outputs`, `tools`, `tool_choice`
- **Moonshot AI · Route 1:** `temperature`, `top_p`, `frequency_penalty`, `presence_penalty`, `stop`, `response_format`, `structured_outputs`, `logprobs`, `top_logprobs`, `tools`, `tool_choice`, `reasoning`, `include_reasoning`
- **Moonshot AI · Route 2:** `temperature`, `top_p`, `frequency_penalty`, `presence_penalty`, `stop`, `response_format`, `structured_outputs`, `tools`, `tool_choice`, `reasoning`, `include_reasoning`

## Price history

Each provider's price over the last 24 hours, 7 days and 30 days is charted on [the page](https://opencheap.si/models/kimi-k2.7-code#price-history).

## API

Point the OpenAI SDK at OpenCheap and pass the model id `opencheap/kimi-k2.7-code`; the rest of your code stays the same.

```bash
curl https://api.opencheap.si/v1/chat/completions \
  -H "Authorization: Bearer $OPENCHEAP_API_KEY" -H "Content-Type: application/json" \
  -d '{ "model": "opencheap/kimi-k2.7-code", "messages": [{ "role": "user", "content": "Hi" }] }'
```

```python
import os
from openai import OpenAI
client = OpenAI(base_url="https://api.opencheap.si/v1", api_key=os.environ["OPENCHEAP_API_KEY"])
r = client.chat.completions.create(model="opencheap/kimi-k2.7-code",
    messages=[{"role": "user", "content": "Hi"}])
print(r.choices[0].message.content)
```

```javascript
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.opencheap.si/v1", apiKey: process.env.OPENCHEAP_API_KEY });
const r = await client.chat.completions.create({ model: "opencheap/kimi-k2.7-code",
  messages: [{ role: "user", content: "Hi" }] });
console.log(r.choices[0].message.content);
```

## About Kimi K2.7 Code

Kimi K2.7 Code costs from $0.25 per 1M input tokens and $1.08 per 1M output tokens on OpenCheap, with cached input at $0.05 per 1M tokens. Its list price is $0.63 per 1M input tokens and $3.50 per 1M output tokens, so on a typical 1 : 3 input-to-output mix it costs 69 % less here. At that price, a request with 10,000 input tokens and 1,000 output tokens costs about $0.0036, and 1,000 such requests about $3.57. Prices as of 2026-12-04 11:48 UTC.

11 providers serve Kimi K2.7 Code on OpenCheap. Each request goes to the cheapest healthy provider of the model, and every answer reports what it cost in `usage.cost`. Its context window is 262K tokens (262,144), room for roughly 200,000 words of English in one request.

Kimi K2.7 Code is one of [17 Moonshot models](https://opencheap.si/models/lab/moonshot) on OpenCheap. Every model on OpenCheap is called with one key at the same OpenAI-compatible endpoint, `https://api.opencheap.si/v1`.

## Pricing questions

### How much does the Kimi K2.7 Code API cost per 1M tokens?

Kimi K2.7 Code costs from $0.25 per 1M input tokens and $1.08 per 1M output tokens on OpenCheap, with cached input at $0.05 per 1M tokens. Prices as of 2026-12-04 11:48 UTC.

### What does one Kimi K2.7 Code request cost?

A request with 10,000 input tokens and 1,000 output tokens costs about $0.0036, and 1,000 such requests about $3.57. Every answer reports its own cost in usage.cost.

### Is Kimi K2.7 Code cheaper on OpenCheap than its list price?

Its list price is $0.63 per 1M input tokens and $3.50 per 1M output tokens, so on a typical 1 : 3 input-to-output mix it costs 69 % less here.

### Which providers serve Kimi K2.7 Code?

11 providers serve Kimi K2.7 Code on OpenCheap. Each request goes to the cheapest healthy provider of the model; the table on this page lists every provider with its price, speed and uptime.

### What is the context window of Kimi K2.7 Code?

Its context window is 262K tokens (262,144), room for roughly 200,000 words of English in one request.

### How do I call the Kimi K2.7 Code API?

Point the OpenAI SDK at https://api.opencheap.si/v1 and pass the model id opencheap/kimi-k2.7-code. One OpenCheap key works for every model; the rest of your code stays the same.

## More from Moonshot

- [Kimi K3](https://opencheap.si/models/kimi-k3) (`kimi-k3`): $1.57 / $0.94 per 1M · 1M context
- [Kimi K3.1 Pro](https://opencheap.si/models/kimi-k3.1-pro) (`kimi-k3.1-pro`): $0.21 / $1.07 per 1M · 1M context
- [Kimi K2.6](https://opencheap.si/models/kimi-k2.6) (`kimi-k2.6`): $0.32 / $1.57 per 1M · 262K context
- [Kimi K2.5](https://opencheap.si/models/kimi-k2.5) (`kimi-k2.5`): $0.017 / $0.083 per 1M · 262K context
- [Kimi K2 Thinking](https://opencheap.si/models/kimi-k2-thinking) (`kimi-k2-thinking`): $0.15 / $0.63 per 1M · 256K context
- [Kimi K2 Instruct](https://opencheap.si/models/kimi-k2) (`kimi-k2`): $0.52 / $2.10 per 1M · 131K context
- [kimi-k2-0905](https://opencheap.si/models/kimi-k2-0905) (`kimi-k2-0905`): $0.53 / $2.10 per 1M · 262K context
- [Kimi K2 Turbo Preview](https://opencheap.si/models/kimi-k2-turbo-preview) (`kimi-k2-turbo-preview`): $1.20 / $4.80 per 1M · 262K context

[All 17 Moonshot models](https://opencheap.si/models/lab/moonshot)

## Similar models

- [Qwen3 Coder 480B A35B Instruct](https://opencheap.si/models/qwen3-coder-480b-a35b): Qwen · 262K context · $0.30 / $1.00 per 1M, 5 % cheaper · [Compare with Kimi K2.7 Code](https://opencheap.si/compare/kimi-k2.7-code-vs-qwen3-coder-480b-a35b)
- [Qwen 3 Coder 480B Turbo](https://opencheap.si/models/qwen3-coder-turbo): Qwen · 256K context · $0.42 / $1.80 per 1M · [Compare with Kimi K2.7 Code](https://opencheap.si/compare/kimi-k2.7-code-vs-qwen3-coder-turbo)
- [Grok Code Fast 1](https://opencheap.si/models/grok-code-fast-1): xAI · 256K context · $1.00 / $2.00 per 1M · [Compare with Kimi K2.7 Code](https://opencheap.si/compare/kimi-k2.7-code-vs-grok-code-fast-1)
- [ByteDance Seed 2.0 Code](https://opencheap.si/models/seed-2.0-code): ByteDance · 262K context · $0.42 / $2.52 per 1M · [Compare with Kimi K2.7 Code](https://opencheap.si/compare/kimi-k2.7-code-vs-seed-2.0-code)
- [Codestral 2508](https://opencheap.si/models/codestral-2508): Mistral · 256K context · $0.30 / $0.90 per 1M, 14 % cheaper · [Compare with Kimi K2.7 Code](https://opencheap.si/compare/kimi-k2.7-code-vs-codestral-2508)
- [Mistral Code Latest](https://opencheap.si/models/mistral-code-latest): Mistral · 256K context · $0.30 / $0.90 per 1M, 14 % cheaper · [Compare with Kimi K2.7 Code](https://opencheap.si/compare/kimi-k2.7-code-vs-mistral-code-latest)

### Comparisons

- [Kimi K2.7 Code vs Qwen 3 Coder 480B](https://opencheap.si/compare/kimi-k2.7-code-vs-qwen3-coder)
- [Claude Sonnet 5 vs Kimi K2.7 Code](https://opencheap.si/compare/claude-sonnet-5-vs-kimi-k2.7-code)

[Compare Kimi K2.7 Code with any model](https://opencheap.si/compare)

---

Source: https://opencheap.si/models/kimi-k2.7-code · All models: https://opencheap.si/models · Prices as JSON: https://api.opencheap.si/v1/prices · Index for agents: https://opencheap.si/llms.txt
