Moonshot: Kimi K2.7 CodeAPI pricing
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.
- 每100万枚代币的价格
- $0.20 / $0.91input / output−73%
- 缓存的输入
- $0.039per 1M tokens
- 上下文
- 262K tokens235K max output
- 服务提供商
- 11
- 最快
- 220 tok/sHugging Face · coreweave
服务提供商
11 providers ·
262K context · 131K max output
支持的参数9
- 抽样
温度top_plogit_bias- 处罚
存在惩罚- 输出
停止response_format结构化输出- 工具
工具工具选择
262K context
支持的参数12
- 抽样
温度top_ptop_k种子logit_bias- 处罚
频率惩罚存在惩罚- 输出
停止response_format结构化输出- 工具
工具工具选择
262K context · 65K max output
支持的参数12
- 抽样
温度top_p种子logit_bias- 处罚
存在惩罚- 输出
停止response_format结构化输出- 工具
工具工具选择- 推理
推理include_reasoning
262K context · 235K max output
支持的参数16
- 抽样
温度top_ptop_k种子- 处罚
重复惩罚频率惩罚存在惩罚- 输出
停止response_format结构化输出logprobstop_logprobs- 工具
工具工具选择- 推理
推理include_reasoning
262K context · 131K max output
支持的参数9
- 抽样
温度top_plogit_bias- 处罚
存在惩罚- 输出
停止response_format结构化输出- 工具
工具工具选择
262K context · 235K max output
支持的参数15
- 抽样
温度top_p种子logit_bias- 处罚
频率惩罚存在惩罚- 输出
停止response_format结构化输出logprobstop_logprobs- 工具
工具工具选择- 推理
推理include_reasoning
262K context · 235K max output
支持的参数8
- 抽样
温度top_ptop_k- 处罚
频率惩罚- 工具
工具工具选择- 推理
推理include_reasoning- 未确认
停止
262K 上下文 · 32K 最大输出
支持的参数11
- 抽样
温度top_ptop_k种子logit_bias- 处罚
存在惩罚- 输出
停止response_format结构化输出- 工具
工具工具选择
262K context · 16K max output
支持的参数12
- 抽样
温度top_p种子- 处罚
存在惩罚- 输出
response_format结构化输出logprobstop_logprobs- 工具
工具工具选择- 推理
推理include_reasoning- 未确认
停止
262K context · 131K max output
支持的参数13
- 抽样
温度top_ptop_kmin_p种子- 处罚
重复惩罚频率惩罚存在惩罚- 输出
停止response_format结构化输出- 工具
工具工具选择
- Route 1262K context · 235K max outputCache $0.20 · 1.55 s · 76 tok/s · 100 %1.55 s · 76 tok/sInput $1.00Cache read $0.20Output $4.20Latency 1.55 sSpeed 76 tok/sUptime 100 %$1.00 in$4.20 out
支持的参数13
- 抽样
温度top_p- 处罚
频率惩罚存在惩罚- 输出
停止response_format结构化输出logprobstop_logprobs- 工具
工具工具选择- 推理
推理include_reasoning
- Route 2262K context · 235K max outputCache $0.40 · 2.28 s · 130 tok/s · 100 %2.28 s · 130 tok/sInput $2.00Cache read $0.40Output $8.40Latency 2.28 sSpeed 130 tok/sUptime 100 %$2.00 in$8.40 out
支持的参数11
- 抽样
温度top_p- 处罚
频率惩罚存在惩罚- 输出
停止response_format结构化输出- 工具
工具工具选择- 推理
推理include_reasoning
价格走势
API
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" }] }'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)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);致电 Kimi K2.7 代码 使用 OpenAI SDK:将其指向 https://api.opencheap.si/v1 并传递模型 ID opencheap/kimi-k2.7-code;其余代码保持不变。
About Kimi K2.7 Code
- 标价
- $0.63 / $3.50in / out per 1M
- 保存与列表
- 74 %on a 1 : 3 input-to-output mix
- 请求示例
- $0.002910,000 in + 1,000 out
- 端点
https://api.opencheap.si/v1- 模型 ID
每个请求都会发送给模型中成本最低且状态正常的提供者,而每个响应都会报告其成本为 使用成本. Every model on OpenCheap is called with one key at the same OpenAI-compatible endpoint, https://api.opencheap.si/v1.
用文字表述价格
Kimi K2.7 Code costs from $0.20 per 1M input tokens and $0.91 per 1M output tokens on OpenCheap, with cached input at $0.039 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 74 % less here. At that price, a request with 10,000 input tokens and 1,000 output tokens costs about $0.0029, and 1,000 such requests about $2.87.
11 providers serve Kimi K2.7 Code on OpenCheap. 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 on OpenCheap.
The public list price is $0.63 per 1M input tokens and $3.50 per 1M output tokens. OpenCheap is from $0.20 and $0.91, as of 2026-12-04 09:18 UTC.
Prices as of 2026-12-04 09:18 UTC.
关于定价的问题
How much does the Kimi K2.7 Code API cost per 1M tokens?
Kimi K2.7 Code costs from $0.20 per 1M input tokens and $0.91 per 1M output tokens on OpenCheap, with cached input at $0.039 per 1M tokens. Prices as of 2026-12-04 09:18 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.0029, and 1,000 such requests about $2.87. 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 74 % 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.
更多来自 Moonshot 的内容
- 基米 K3kimi-k3$1.57 / $0.94 per 1M · 1M context
- Kimi K3.1 Prokimi-k3.1-pro$0.21 / $1.07 per 1M · 1M context
- 基米 K2.6kimi-k2.6$0.39 / $1.80 per 1M · 262K context
- Kimi K2.5kimi-k2.5$0.081 / $0.32 per 1M · 262K context
- 基米 K2 思考kimi-k2-thinking$0.074 / $0.31 per 1M · 256K context
- Kimi K2 教学指南kimi-k2$0.53 / $2.11 per 1M · 131K context
- kimi-k2-0905kimi-k2-0905$0.52 / $2.10 per 1M · 262K context
- Kimi K2 Turbo 预览kimi-k2-turbo-预览每100万·26.2万上下文 $1.20 / $4.80
类似型号
- Qwen3 Coder 480B A35B InstructQwen · 26.2万语境$0.30 / $1.00 per 1M
- Qwen 3 Coder 480B TurboQwen · 256K context$0.42 / $1.80 per 1M
- Codestral 2508Mistral · 256K 上下文$0.30 / $0.90 per 1M
- Mistral Code LatestMistral · 256K 上下文$0.30 / $0.90 per 1M
- Grok Code Fast 1xAI · 256K context$1.00 / $2.00 per 1M
- ByteDance Seed 2.0 CodeByteDance · 262K context$0.42 / $2.52 per 1M