LLM Reference
OpenRouter

Kimi K2.7-Code on OpenRouter

Kimi K2 · Moonshot AI

ServerlessOpen Source

Last refreshed 2026-06-20. Next refresh: weekly.

Why use Kimi K2.7-Code on OpenRouter?

OpenRouter offers Kimi K2.7-Code with pay-as-you-go pricing at $0.61/1M input tokens. OpenRouter is a multi-provider LLM aggregator offering unified API access to 300+ models from all major labs and emerging providers, with automatic failover for reliability.

Compare Kimi K2.7-Code across 2 providers to find the best fit for your use case
Input / 1M
$0.612
Output / 1M
$3.07
Cache
read $0.1296
Batch
Not sourced

Setup recipe

Docs fallback
Install
Use the provider REST API or SDK
Auth
Create a provider API key
Call
model: moonshotai/kimi-k2.7-code
Model ID
moonshotai/kimi-k2.7-code

Request example

Curated snippets for this provider are not sourced yet. Use OpenRouter documentation with model ID moonshotai/kimi-k2.7-code.

Gotchas

  • Use provider model ID "moonshotai/kimi-k2.7-code", not the LLMReference slug "kimi-k2-7-code".

Compare Kimi K2.7-Code Across Providers

ProviderInput (per 1M)Output (per 1M)
Moonshot AI Kimi$0.95$4.00
OpenRouter$0.61$3.07

Pricing

TypePrice (per 1M)
Input tokens$0.61
Output tokens$3.07
Image input$1.00

Capabilities

VisionMultimodalReasoningFunction CallingTool UseStructured OutputsPrompt Caching

About Kimi K2.7-Code

Kimi K2.7-Code is Moonshot AI's coding-focused multimodal model released June 12, 2026, built on Kimi K2.6. Uses the same 1-trillion-parameter MoE architecture (32B active parameters, 384 experts with 8 selected per token, 61 layers) with a 262K context window and MoonViT vision encoder (400M parameters). Reports +21.8% on Moonshot's Kimi Code Bench v2, +11.0% on Program Bench, +31.5% on MLS Bench Lite versus K2.6, with approximately 30% fewer reasoning tokens. Forces thinking mode on by default and preserves reasoning content across multi-turn interactions for agentic use. Available via Kimi platform API and HuggingFace under Modified MIT license.

FAQ

What does Kimi K2.7-Code cost on OpenRouter?

On OpenRouter, Kimi K2.7-Code costs $0.612 per 1M input tokens and $3.069 per 1M output tokens.

What is the context window for Kimi K2.7-Code on OpenRouter?

Kimi K2.7-Code supports a 262k token context window on OpenRouter.

How does OpenRouter compare to other Kimi K2.7-Code providers?

Kimi K2.7-Code is available from 2 providers. The cheapest input pricing is $0.612/1M tokens from OpenRouter.

What API model ID do I use for Kimi K2.7-Code on OpenRouter?

Use the model ID moonshotai/kimi-k2.7-code when calling OpenRouter's API.

Who created Kimi K2.7-Code?

Kimi K2.7-Code was created by Moonshot AI as part of the Kimi K2 model family.

Is Kimi K2.7-Code open source?

Kimi K2.7-Code is open source under MIT according to the seed data.

Get Started

Model Specs

Released2026-06-12
Parameters1T
Context262k
ArchitectureMixture of Experts

Related Models on OpenRouter