explainx.ainewsletter3.5k
TrendingNewsPathwaysSkills
Pricing
explainx.ai

Upskill in AI — 16 free pathways, live workshops & bootcamps, and 50+ courses from practitioners. Plus the skills, tools, and MCP servers to practice on.

follow us

custom AI agents

[email protected]

get started

Find your pathTake Free Evaluation

learn

pathways — start freeworkshopsbootcampscoursescertificationsmock testsexplainx universitycorporate traininglearn skills & mcp

discover

skillsmcp serversexplainx mcptoolsagentsllmsdesignsagi trackerranks

company

aboutvisionmissionteaminstructorscommunityhackathonscareers

content

daily AI newsstate of AI — live resultsblogreleasespromptsgeneratorsresource librarydemofor LLMs

solutions

all solutionsdeveloper upskillingmarketing upskillingproduct manager upskillingleadership upskilling

More from us

InfloqInfluencer marketingBgBlurPrivacy-first blurOlly SocialSocial AI copilotCeptoryVideo intelligenceBgRemoverBackground removal

newsletter · weekly

Get AI news, tools, and insights in your inbox.

supportprivacytermsdata rightssubmission guidelines

© 2026 AISOLO Technologies Pvt Ltd

On this page

  • What Moonshot AI shipped — and why the timing mattered
  • Architecture — what 1T MoE actually means here
  • Benchmarks — coding, agentic, and the honesty filter
  • Reasoning efficiency — the 30% token cut
  • Pricing — API, subscriptions, and vs closed frontiers
  • How to access K2.7-Code
  • K2.7-Code vs K2.6 — which Kimi should you use?
  • How K2.7-Code fits the open-weight landscape (June 2026)
  • Community reception — signals, not verdicts
  • Modified MIT license — what to verify
  • The Fable 5 context — Day 18 and counting
  • Production evaluation checklist
  • Bottom line
  • Related reading
← Back to blog

explainx / blog

Kimi K2.7-Code: Moonshot AI's 1T-Parameter Open Coding Powerhouse

Kimi K2.7-Code: 1T MoE, 32B active, 256K context, MCP Mark 81.1% vs Opus 76.4%. Pricing, self-hosting, benchmarks, Fable 5 alternative — full guide June 2026.

Jun 15, 2026·14 min read·Yash Thakker
KimiOpen SourceAI CodingMoE ModelsMoonshot AI
go deep
Kimi K2.7-Code: Moonshot AI's 1T-Parameter Open Coding Powerhouse

Update — July 17, 2026: Kimi K3 tops nextjs.org/evals and Arena Frontend Code — surpassing Fable 5; open weights promised July 27. K2.7 remains the open-weight coding model with weights public today — see also K3 local desktop prep and K3 mobile guide. Main API hub: Kimi K3 guide.

Update — July 16, 2026 (evening): Kimi K3 has launched — 2.8T parameters, open-weight timeline, API live at platform.kimi.ai.

Update — July 3, 2026: Kimi K2.7 Code is generally available in GitHub Copilot — the first open-weight model in Copilot's model picker, hosted on Microsoft Azure. Pro/Pro+/Max rollout first; Business and Enterprise require admin policy enablement. Full setup guide: Kimi K2.7 in GitHub Copilot.

Update — June 30, 2026: Eighteen days into the Fable 5 export ban, Kimi K2.7-Code remains one of the most cited open-weight alternatives in developer threads — especially for long-horizon agent coding and MCP tool use. This guide expands on architecture, benchmarks, pricing, and how to run it in production.


TL;DR: On June 12, 2026 — the same day the US government suspended Claude Fable 5 — Moonshot AI released Kimi K2.7-Code: a 1T-parameter MoE coding model with 32B active parameters, 256K context, and open weights under Modified MIT. Vendor benchmarks show +21.8% on Kimi Code Bench v2 vs K2.6 and ~30% fewer reasoning tokens. Notably, MCP Mark Verified scores 81.1% vs Opus 4.8 at 76.4% on Moonshot's published table. API: $0.95/M input (cache miss), $4/M output.

SpecValue
ReleaseJune 12, 2026 (Moonshot announcement)
ArchitectureMoE — 1T total, 32B active, 384 experts, 8 selected + 1 shared per token
Context256K (262,144 tokens)
LicenseModified MIT (open weights on Hugging Face)
Thinking modeRequired — non-thinking requests fall back to K2.6
API input$0.95/M cache miss · $0.19/M cache hit
API output$4.00/M
Best forLong-horizon agent coding, MCP workflows, self-hosted SWE agents
Not forGeneral chat — use K2.6 instead
Weekly digest3.5k readers

Catch up on AI

Curated AI updates on agents, skills, and MCP — delivered to your inbox. Unsubscribe anytime.


What Moonshot AI shipped — and why the timing mattered

Kimi K2.7-Code is not a bigger model. It is a coding-specialist execution refresh of the K2 MoE backbone Moonshot has iterated since early 2026.

MilestoneDateNotes
K2 seriesEarly 20261T MoE foundation established
Kimi K2.6April 20, 2026General-purpose K2 refresh
Kimi K2.7-CodeJune 12, 2026Coding + agent specialization
Fable 5 global suspensionJune 12, 2026Same day — US export control

Moonshot's pitch: real software engineering is long-horizon — refactors across files, multi-step debugging, agent sessions that run for hours. K2.7-Code retrains the reward model and data pipeline around those workflows rather than single-shot completion.

The model is multimodal via MoonViT — a 400M-parameter vision encoder — supporting text, image, and video input alongside code. For teams piping UI screenshots or architecture diagrams into agent loops, that matters.

Official resource page: kimi.com/resources/kimi-k2-7-code.


Architecture — what 1T MoE actually means here

K2.7-Code shares the K2 MoE stack. The numbers from Moonshot's model card:

ParameterValue
Total parameters1 trillion
Activated per token32 billion
Experts384 (8 selected + 1 shared per token)
Layers61 (1 dense + 60 MoE)
AttentionMulti-head Latent Attention (MLA), 64 heads, hidden dim 7168
MoE expert hidden dim2048 per expert
ActivationSwiGLU
Vocabulary160K tokens
VisionMoonViT (400M params)

Why MoE for coding agents: you get frontier-scale total capacity without activating every parameter on every token — important when agent transcripts balloon with tool outputs, diffs, and stderr logs. The 256K context window (262,144 tokens) is sized for repository-scale traces, not just single-file edits.

Thinking mode is mandatory. K2.7-Code does not support non-thinking inference. On Kimi Code and the Kimi API, requests with thinking disabled are automatically routed to K2.6. Plan token budgets accordingly — "thinking" tokens are part of the cost model, though Moonshot claims ~30% fewer reasoning tokens vs K2.6 on the same tasks.


Benchmarks — coding, agentic, and the honesty filter

Moonshot evaluated K2.7-Code vs K2.6, GPT-5.5 (Codex xhigh), and Claude Opus 4.8 (Claude Code xhigh). Methodology: K2.7/K2.6 via Kimi Code CLI, thinking enabled, temperature 1.0, top-p 0.95, 262K context. Full details on the Hugging Face model card.

Coding benchmarks

BenchmarkK2.6K2.7-CodeGPT-5.5Opus 4.8Δ vs K2.6
Kimi Code Bench v250.962.069.067.4+21.8%
Program Bench48.353.669.163.8+11.0%
MLS Bench Lite26.735.135.542.8+31.5%
  • Kimi Code Bench v2 — Moonshot in-house coding suite (absolute score 62.0 for K2.7).
  • Program Bench — program synthesis evaluation.
  • MLS Bench Lite — multi-language, multi-step coding.

K2.7 trails Opus 4.8 and GPT-5.5 on these three Moonshot-run tables — but closes much of the gap vs K2.6, especially on MLS Bench Lite where it nearly matches GPT-5.5 (35.1 vs 35.5).

Agentic benchmarks — where K2.7 stands out

BenchmarkK2.6K2.7-CodeGPT-5.5Opus 4.8What it measures
Kimi Claw 24/7 Bench42.946.952.850.4Persistent multi-day agent coworking (SWE, ML, recruiting, etc.)
MCP Atlas69.476.079.481.3Broad MCP tool orchestration
MCP Mark Verified72.881.192.976.4Human-verified MCP tasks (Notion, GitHub, FS, Postgres, Playwright)

MCP Mark Verified is the headline for agent builders: K2.7-Code at 81.1% vs Opus 4.8 at 76.4% on Moonshot's table — a benchmark focused on correct tool invocation through Model Context Protocol servers. That aligns with the June 2026 MCP wave (X hosted MCP, Claude Code MCP guide, explainx.ai's /mcp-servers directory).

GPT-5.5 still leads MCP Mark at 92.9% — but K2.7 is the open-weight option in this comparison set.

What is still missing from public leaderboards

As of late June 2026, Moonshot did not ship launch-day scores on cross-vendor suites like SWE-bench Verified, SWE-bench Pro, Terminal-Bench 2.0, LiveCodeBench, or Aider Polyglot. Community reproductions typically land within 1–2 weeks of open-weight drops — check DevThrottle scoreboards and independent evaluators before treating vendor tables as field position.

Rule: vendor benchmarks measure delta and direction. Your eval on your repo is the number that matters.


Reasoning efficiency — the 30% token cut

Reasoning models often overthink — burning thousands of tokens on problems that do not need deep deliberation. Moonshot claims K2.7-Code cuts thinking-token usage ~30% vs K2.6 while scoring higher on the same benchmarks.

For production agent loops, that compounds:

WorkloadEffect of 30% fewer reasoning tokens
Interactive Kimi Code sessionsFaster turn-around, less waiting on chain-of-thought
API agent runsLower bill per completed task (thinking tokens are billed)
Long-horizon tracesMore room inside 256K for actual code and tool output

Pair with automatic context caching on the Kimi API ($0.19/M cache hit vs $0.95/M cache miss) when agent harnesses reuse system prompts and repo context across turns.


Pricing — API, subscriptions, and vs closed frontiers

Kimi API (usage-based)

ModelInput (cache hit)Input (cache miss)OutputContext
kimi-k2.7-code$0.19 / 1M$0.95 / 1M$4.00 / 1M262,144

Source: Moonshot K2.7 resource page. Prices exclude tax; verify platform.kimi.ai for updates.

Rough comparison: Opus-class closed models often run $15–75/M output depending on tier. At $4/M output and sub-dollar input, K2.7-Code is priced for high-volume agent workloads — the same profile OpenRouter Fusion targets for multi-model routing.

Kimi Code subscription plans (terminal + IDE)

For developers using Kimi Code directly (terminal and IDE plugins, K2.7 as default model):

PlanMonthly (annual billing)Best for
Moderato$15Regular coding workflows, weekly refreshed quotas
Allegretto$31Larger weekly limits, higher concurrency
Allegro$79Intensive development, complex projects
Vivace$159Largest weekly quotas, big codebases

Each tier includes weekly refreshed usage limits and rising concurrency caps. K2.7-Code is the default model in Kimi Code with thinking enabled.


How to access K2.7-Code

1. Kimi Code (fastest path)

Kimi Code — Moonshot's coding agent surface. K2.7-Code is the default model. Setup instructions on the page. Good for trying the model before committing to self-host infrastructure.

2. Kimi API

platform.kimi.ai — REST API for agents, IDEs, and custom harnesses. Model id: kimi-k2.7-code. Integrates with the same thinking-only constraint.

3. Hugging Face weights (self-host)

Download open weights from Moonshot's Hugging Face repository (verify exact repo name on release — search moonshotai/Kimi-K2.7-Code). License: Modified MIT — read the README for commercial restrictions before shipping a product.

Inference stacks Moonshot documents:

  • vLLM — production serving, continuous batching
  • SGLang — structured generation, MoE-friendly paths
  • KTransformers — optimized MoE inference

Hardware reality check: 1T MoE with 32B active parameters is not a laptop model. Enterprise guides in our Fable alternatives post cite 2–8× A100/H100 or 4× RTX 4090 as starting points for MoE-class open weights — adjust for quantization (AWQ/GPTQ) and your concurrency target.

4. Third-party routers

K2.7-Code appears on aggregators like OpenRouter and Fireworks (verify availability at publish time). Useful when you already route through OpenRouter Fusion and want one API key for GLM-5.2, Kimi, and Qwen.


K2.7-Code vs K2.6 — which Kimi should you use?

Moonshot's own guidance is clear:

Use caseModel
Software engineering agents, refactors, MCP tool loops, repo-scale contextK2.7-Code
General writing, analysis, conversation, non-coding tasksK2.6

K2.7 is a specialist — not a drop-in replacement for every K2.6 workload. If your harness sends thinking: false, you are already on K2.6 whether you intended to or not.


How K2.7-Code fits the open-weight landscape (June 2026)

With Fable 5 offline Day 18, teams compare open coders on three axes: benchmarks, license, and agent harness fit.

ModelLicenseStrength (vendor/community)Fable-ban relevance
Kimi K2.7-CodeModified MITLong-horizon agents, MCP tool use, 256K contextStrong international API + self-host path
GLM-5.2MITBridgeBench reasoning, Zhipu open-weight cadenceSame week as ban; fully open
DeepSeek V4-ProOpen weightsCost-efficient coding, strong public bench culturePopular API alternative
Sakana Fugu UltraAPIOrchestrates public models — no restricted weights neededSWE-bench Pro 73.7 without Fable in pool
Opus 4.8Closed APIAnthropic's official Fable fallbackAvailable globally; not Fable-class

Many teams run GLM-5.2 for reasoning-heavy tickets and K2.7 for MCP-heavy agent loops — or route both through OpenRouter. See Claude Code vs Codex vs Gemini vs GLM-5.2 for harness-level comparisons.


Community reception — signals, not verdicts

Developer reaction on X after launch was strongly positive. Treat these as pointers for your eval queue, not production decisions:

Jun Song (Qwen ambassador, local LLM ecosystem) — informal agent ranking after hands-on tests:

Fable > Kimi-2.7 > Opus-4.8 = GLM-5.2 > GPT5.5 > Minimax-M3

xjdr (AI infrastructure): "k2.7 has been extremely impressive so far (as was k2.6 before it). Fantastic job Moonshot team."

Noctus: "Some of the things it pulls off in a single shot are absurd."

POM: "GLM 5.2 and Kimi 2.7 are another impressive leap forward—feeling around GPT5.4/Claude 4.6-level."

International Cyber Digest (Fable ban context):

"While the US is restricting and banning its frontier AI models, the Chinese are open-sourcing theirs."

Community rank ≠ SWE-bench Verified. Run 500 real tickets from your backlog before switching production defaults.


Modified MIT license — what to verify

Open weights under Modified MIT are more permissive than CC-BY-NC, but Modified means Moonshot added terms beyond standard MIT. Before commercial deployment:

  1. Read the full license in the Hugging Face repo README
  2. Check attribution requirements
  3. Confirm redistribution rules for fine-tunes and derivatives
  4. Align with your legal/compliance team if you ship customer-facing products

Self-hosting removes per-token API cost but adds hardware, ops, and security ownership — same trade-off as any open MoE at trillion-parameter scale.


The Fable 5 context — Day 18 and counting

K2.7-Code launched on June 12, 2026 — the same evening Anthropic disabled Fable 5 and Mythos 5 globally. As of June 30 (Day 18):

  • Fable 5 remains offline for general users (live status)
  • Mythos 5 partially restored for US Annex A critical-infrastructure orgs only
  • Axios reporting (June 27) suggested a near-term Fable lift — unconfirmed after the weekend
  • International developers in Europe, the UK, and India still have no bilateral restoration path

K2.7-Code does not "replace" Fable for every workload — community tests still rank Fable above K2.7 when Fable was available. It does provide an unrestricted open-weight coding frontier while US policy negotiates the Anthropic models back online.

Same-week agent infrastructure: Cursor for iOS and X hosted MCP — many teams pair Kimi/GLM for model inference with Cursor/MCP for harness and data plane. June 30: Meituan shipped LongCat-2.0 — 1.6T MoE, 48B active, Terminal-Bench 70.8 — another open-weight entry in the same ladder.


Production evaluation checklist

If you are benchmarking K2.7-Code against Opus 4.8 or a pre-ban Fable baseline:

  1. Task distribution — agent loop completion rate, tool-call accuracy, single-shot generation on your repo layout
  2. MCP harness — if you use Notion/GitHub/Postgres tools, run the same suite you would on Claude Code with MCP
  3. Context utilization — does coherence hold at 80K, 120K, 200K tokens on your longest real traces?
  4. Thinking token budget — measure tokens per solved task vs K2.6 and vs Opus; the 30% claim is vendor-reported
  5. Latency — API p95 under your concurrency; self-hosted throughput with your GPU config
  6. License — Modified MIT compliance for your shipping model
  7. Fallback — keep Opus 4.8 or OpenRouter Fusion routing for regression comparison

Bottom line

Kimi K2.7-Code is a credible open-weight frontier coding model — not because Moonshot says so, but because the architecture (1T MoE, 256K, mandatory thinking), agentic benchmark direction (especially MCP Mark vs Opus), pricing, and license form a coherent package for teams building long-horizon software agents.

It launched the same day as the Fable 5 ban — and eighteen days later, that ban is still driving international developers toward open Chinese coders while US negotiations continue.

Do not trust our summary or Moonshot's tables alone. Download the weights or hit the API. Run your eval. The benchmark that matters is the one on your codebase.


Related reading

  • Inkling — Thinking Machines open-weights customization base (Jul 2026)
  • LM Studio Bionic — local open-model agent (Jul 17)
  • Kimi K3 Next.js evals + Arena #1 (Jul 17)
  • Kimi K3 local desktop prep — weights July 27
  • Kimi K3 has launched — API guide (Jul 2026)
  • Is Fable 5 back? Day 18 status
  • GLM-5.2 — Zhipu China's Fable-ban response
  • Fable 5 enterprise open-source alternatives
  • OpenRouter Fusion — Fable routing alternative
  • What is MCP? Architecture guide
  • X hosted MCP servers
  • Browse MCP servers on explainx.ai
  • Sakana Fugu — orchestration without restricted models

Kimi K2.7-Code specs, benchmarks, and pricing accurate as of June 30, 2026 per Moonshot's official resource page. Verify Hugging Face repo, API rates, and license terms before production deployment.

Yash Thakker

Written by

Yash Thakker

Yash is an AI expert with over 300K learners. Join his workshops →

Related posts

Jul 3, 2026

Kimi K2.7 Code in GitHub Copilot: First Open-Weight Model

GitHub Copilot now offers Moonshot AI's Kimi K2.7 Code as a selectable open-weight model — the first in Copilot's model picker. Pro plans first; Business and Enterprise require admin enablement. Here's how to turn it on.

Jun 30, 2026

LongCat-2.0: Meituan's 1.6T MoE Open Model Trained on AI ASIC Superpods

Meituan open-sourced LongCat-2.0 on June 30 — 1.6T parameters, 48B active, LongCat Sparse Attention, and frontier coding scores on Terminal-Bench and SWE-bench Pro. On July 5, weights and inference code went fully live under MIT — no restrictions, GPU and NPU deployment supported.

Jun 10, 2026

Cohere North Mini Code: Open-Source Agentic Coding Model (Apache 2.0)

Launched June 9, 2026, North Mini Code is Cohere's first open-source agentic coding model—a 30B parameter mixture-of-experts model with just 3B active parameters. Available under Apache 2.0, it delivers competitive performance on SWE-Bench and Terminal-Bench 2.0 while offering 2.8x higher output throughput than Devstral Small 2.