GPQA Diamond
Graduate-level scientific reasoning
87.3%
FrontierMath
Expert-level mathematics
56.9%
OTIS Mock AIME
Competition mathematics
95.6%
kimi-k2-7-code Coding-focused Kimi model, stronger on long-horizon repo work with less overthinking
Quick facts
Explore Kimi K2.7 Code pricing per million input, output, and cached tokens, along with its context window and maximum output limits.
Context window
262K tokens
Max output
262K tokens
Input
Output
How Kimi K2.7 Code scores on independent benchmarks tracked by Epoch AI.
Epoch Capabilities Index
151.2
ECI rank
#66 of 258
Benchmark data: Epoch AI, ‘Capabilities & benchmarking’, licensed under CC BY 4.0.
Start using Kimi K2.7 Code
kimi-k2-7-code https://api.nexos.ai/v1 from openai import OpenAI
# Get your API key from the nexos.ai dashboard
client = OpenAI(
base_url="https://api.nexos.ai/v1",
api_key="YOUR_NEXOS_API_KEY",
)
response = client.chat.completions.create(
model="kimi-k2-7-code",
messages=[{"role": "user", "content": "Hello!"}],
)
print(response.choices[0].message.content) import OpenAI from 'openai';
// Get your API key from the nexos.ai dashboard
const client = new OpenAI({
baseURL: 'https://api.nexos.ai/v1',
apiKey: 'YOUR_NEXOS_API_KEY',
});
const response = await client.chat.completions.create({
model: 'kimi-k2-7-code',
messages: [{ role: 'user', content: 'Hello!' }],
});
console.log(response.choices[0].message.content); curl https://api.nexos.ai/v1/chat/completions \
-H "Authorization: Bearer YOUR_NEXOS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "kimi-k2-7-code",
"messages": [{"role": "user", "content": "Hello!"}]
}' Models from Moonshot AI with comparable capabilities and pricing.
Access Kimi K2.7 Code and 200+ other AI models through nexos.ai.
Common questions about Kimi K2.7 Code, its availability and usage.
Kimi K2.7 Code pricing starts at $1.25 per 1 million input tokens and $4.50 per million output tokens. Prices may vary depending on the provider, region, and caching options. See the pricing table above for a full comparison.
Kimi K2.7 Code supports a context window of 262,144 tokens, with a maximum output of 262,144 tokens. The context window determines how much information the model can process in a single request.
Kimi K2.7 Code supports vision, tool calling, prompt caching, reasoning, web search, and structured JSON output. These features can be used individually or together, depending on the model and your application’s requirements.
Kimi K2.7 Code is available through Lyceum, with deployment options in the EU region. Availability may vary by provider. See the provider comparison table above for details.
Zero data retention (ZDR) is available for Kimi K2.7 Code through Lyceum. With ZDR, supported providers do not retain request and response content after processing, subject to their applicable policies.
To use Kimi K2.7 Code through nexos.ai, you’ll need an Enterprise plan. Once your account is set up, create an API key, set your base URL to https://api.nexos.ai/v1, and specify kimi-k2-7-code in your API request. nexos.ai is OpenAI-compatible, so you can use your existing SDK integration by updating the API key, base URL, and model ID.