Try Kimi K2.7 Code
Generate with Kimi K2.7 Code right here. Verify your email to start with free credits.
Specifications
Context window
262K tokens
Max output
236K tokens
Input price
$0.90 / 1M tokens
Output price
$5.25 / 1M tokens
Cached input
$0.24 / 1M tokens
Benchmarks
How Kimi K2.7 Code scores on public benchmarks. Each card links to the benchmark explainer and to the original source.
Compare against every model in the full benchmark matrix.
Capabilities
Reasoning
Works through multi-step problems before answering, for harder tasks.
Vision input
Accepts images alongside text, so you can prompt with pictures and screenshots.
Tool use
Can call functions and tools, enabling agentic and structured workflows.
Structured output
Returns validated JSON that conforms to a schema you define.
Use Kimi K2.7 Code through the API
The model id is moonshotai/kimi-k2.7-code. Requests bill your GenMagic balance at the price above, and each response reports what it cost.
curl https://genmagic.co/api/v1/chat/completions \
-H "Authorization: Bearer $GENMAGIC_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "moonshotai/kimi-k2.7-code",
"messages": [{ "role": "user", "content": "Explain vector databases in two sentences." }]
}'from openai import OpenAI
client = OpenAI(base_url="https://genmagic.co/api/v1", api_key="YOUR_GENMAGIC_API_KEY")
resp = client.chat.completions.create(
model="moonshotai/kimi-k2.7-code",
messages=[{"role": "user", "content": "Explain vector databases in two sentences."}],
)
print(resp.choices[0].message.content)From an AI agent, call generate_text with "model": "moonshotai/kimi-k2.7-code" on the GenMagic MCP server. Keys, limits and every endpoint are in the API documentation.
Use Kimi K2.7 Code in n8n
- In n8n, open the nodes panel, search for GenMagic and install it (a verified community node), then add it to your workflow.
- Set Resource to Text and Operation to Generate.
- In Model Name or ID, pick MoonshotAI: Kimi K2.7 Code, or enter
moonshotai/kimi-k2.7-codeas an expression. - Connect your GenMagic API key (get one free). Each run is billed at the price above, and the node returns what it cost.
Ready-to-import workflows that already use the node are on GenMagic for n8n.
Similar-priced text models from other providers
Other text models GenMagic runs at a comparable price, on the same balance and API key.
| Model | Provider | Price | Context |
|---|---|---|---|
| MoonshotAI: Kimi K2.7 Code (this model) | Moonshot AI | $0.90 in / $5.25 out per 1M tokens | 262K |
| Qwen: Qwen3.5 397B A17B | Qwen | $0.90 in / $5.40 out per 1M tokens | 262K |
| Z.ai: GLM 5 | Z.AI | $1.50 in / $4.80 out per 1M tokens | 205K |
| Pareto 26.10 | Unbiased | $1.20 in / $4.80 out per 1M tokens | 1M |
| Relace: Relace Search | Relace | $1.50 in / $4.50 out per 1M tokens | 256K |
| Nous: Hermes 4 405B | Nous Research | $1.50 in / $4.50 out per 1M tokens | 131K |
Compare Kimi K2.7 Code
More from Moonshot AI
All 9 Moonshot AI modelsMoonshotAI: Kimi K3.1 Pro
TextKimi K3.1 Pro is Moonshot AI's flagship open-weight multimodal reasoning model and a post-trained successor to Kimi K3, with a 1M-token context window. It is built for long-horizon coding, 3D...
View modelMoonshotAI: Kimi K3
TextKimi K3 is a 2.8T parameter open-weight multimodal reasoning model from Moonshot AI. It is suited for complex coding, knowledge work, and long-horizon agentic workflows, and is particularly strong at...
View modelMoonshotAI: Kimi Latest
TextThis model always redirects to the latest model in the Kimi family.
View modelMoonshotAI: Kimi K2.6
TextKimi K2.6 is Moonshot AI's next-generation multimodal model, designed for long-horizon coding, coding-driven UI/UX generation, and multi-agent orchestration. It handles complex end-to-end coding tasks across Python, Rust, and Go, and...
View modelMoonshotAI: Kimi K2.5
TextKimi K2.5 is Moonshot AI's native multimodal model, delivering state-of-the-art visual coding capability and a self-directed agent swarm paradigm. Built on Kimi K2 with continued pretraining over approximately 15T mixed...
View modelMoonshotAI: Kimi K2 Thinking
TextKimi K2 Thinking is Moonshot AI’s most advanced open reasoning model to date, extending the K2 series into agentic, long-horizon reasoning. Built on the trillion-parameter Mixture-of-Experts (MoE) architecture introduced in...
View modelPrice and listing history
Every change GenMagic has recorded for Kimi K2.7 Code since it began tracking the model on Oct 29, 2026. Prices are GenMagic's, the same the studio and the API charge.
| Date | Change | Before | After |
|---|---|---|---|
| Nov 6, 2026 | Price down 0% | $0.90 in / $5.25 out per 1M tokens | $0.90 in / $5.25 out per 1M tokens |
| Nov 1, 2026 | Price up 36% | $0.66 in / $3.85 out per 1M tokens | $0.90 in / $5.25 out per 1M tokens |
| Oct 31, 2026 | Price up 7% | $0.62 in / $3.41 out per 1M tokens | $0.66 in / $3.85 out per 1M tokens |
Where these figures come from
- Price: GenMagic's own price, what the studio and the API charge, recomputed from the provider's price list every few minutes and recorded daily. How pricing works.
- Specs and description: as Moonshot AI publishes them (model card on Hugging Face), checked daily.
- Benchmarks: 34 scores from Artificial Analysis and OpenRouter, Epoch AI, Design Arena, re-read daily. Each score above links to its source.
- Changes: the data on this page last changed on Nov 12, 2026, tracked since Oct 29, 2026. Every model's new listings, price changes and retirements are in the model changes log, and how every figure on GenMagic is sourced is on our sources page.
Generate with Kimi K2.7 Code today
One GenMagic plan unlocks Kimi K2.7 Code and every other model across text, image, audio, and video.