Moonshot AI's latest open-source, coding-focused model in the Kimi K2 family, built to complete end-to-end programming tasks reliably over long contexts. A 1-trillion-parameter model that cuts reasoning token usage by roughly 30% versus K2.6 while improving coding and agent performance — +21.8% on Kimi Code Bench v2, +11.0% on Program Bench, and +31.5% on MLS Bench Lite for multi-language support. Released under a Modified MIT License and available via Kimi APIs and Hugging Face.
1.0M tokens
3
可用
价格最低
Hugging Face Inference
$3.00/1M tokens
Hugging Face Inference, Moonshot AI, OpenRouter
按每百万输入与输出 token 的总成本排序。选择一行可查看提供商详情。
| 提供商 | 价格(每百万) | 速率限制 | 区域 | 状态 | 延迟 |
|---|---|---|---|---|---|
输入: $0.60输出: $2.40 | 300 RPM / 500K TPM | us-east-1eu-west-1 | 正常 | 0ms | |
输入: $0.60输出: $2.40 | 200 RPM / 500K TPM | us-east-1 | 正常 | 0ms | |
输入: $1.00输出: $3.00 | 200 RPM / 500K TPM | us-east-1global | 正常 | 0ms |
通过 Hugging Face Inference 使用此模型,兼容 OpenAI SDK。
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api.hugging-face.com/v1",
apiKey: process.env.HUGGING_FACE_API_KEY,
});
const response = await client.chat.completions.create({
model: "moonshotai/Kimi-K2.7-Code",
messages: [
{ role: "user", content: "Hello!" }
],
});
console.log(response.choices[0].message.content);使用 Hugging Face Inference API · 兼容 OpenAI SDK