MoonshotAI

Kimi K2.7 Code

Chat
Not available
Get started

1T total, 32B active (MoE) specialized for long-horizon software engineering. Multi-turn tool calling with automatic context caching.

Context
256Ktokens
Max output
256Ktokens
Latency
~16ms
Released
2026-06-12

Pricing

$ / 1M tokens
Input
$0.95/M
Output
$4.00/M
Cache Read
$0.19/M
Cache Write
$0.95/M

Capabilities

5 listed
  • Chat
  • Tool Use
  • Reasoning
  • Coding
  • Analysis

Code examples

POST /v1/chat/completions
python
from openai import OpenAI

client = OpenAI(
    api_key="your_api_key",
    base_url="https://api.modelstack.cc/v1",
)

response = client.chat.completions.create(
    model="kimi-k2.7-code",
    messages=[{"role": "user", "content": "Hello!"}],
)
print(response.choices[0].message.content)

Related models

Frequently asked questions

How is Kimi K2.7 Code billed on ModelStack?expand_more
ModelStack bills based on actual request usage. Input, output, cache, and any other applicable rates follow the live pricing table on this page. Final request costs are available in the console.
What are the context window and maximum output for Kimi K2.7 Code?expand_more
Kimi K2.7 Code has a 256K context window and supports up to 256K of output.
How can I call Kimi K2.7 Code through ModelStack?expand_more
Use the model ID `kimi-k2.7-code` with any OpenAI-compatible SDK pointed at the ModelStack API — see the code examples above for Python, Node.js, and cURL.
Which capabilities does Kimi K2.7 Code support?expand_more
Kimi K2.7 Code supports: Chat, Tool Use, Reasoning, Coding, Analysis.