moonshotai logo
moonshotai

MoonshotAI: Kimi K2.7 Code

Source description (English)

MoonshotAI: Kimi K2.7 Code is a coding-focused model in Moonshot AI's Kimi K2 family, built to complete end-to-end programming tasks reliably over long contexts. It uses a native multimodal mixture-of-experts...

Overview

Model specifications

Context
262,144 tokens
Maximum output
235,929 tokens
Architecture
text+image->text
Tokenizer
Other
Knowledge cutoff
Not provided
Moderated
No
OPENROUTER

Complete pricing

Synchronized OpenRouter rates. Token prices are shown per one million tokens.

Input
$0.7062
per 1M tokens
Output
$3.3
per 1M tokens
Cache read
$0.18
per 1M tokens
API

Model configuration

Reasoning

Reasoning required
Yes
Default parameters
Yes
API

Quick start

Set OPENROUTER_API_KEY locally. Python requires requests; JavaScript runs in Node.js. Keep the key on the server.

API documentation

curl --fail-with-body https://openrouter.ai/api/v1/chat/completions \
  -H "Authorization: Bearer $OPENROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"moonshotai/kimi-k2.7-code","messages":[{"role":"user","content":"Hello!"}]}'
Capabilities

InputOutput

Input
textimage
Output
text
Reasoning

Yes

API

Supported API parameters

frequency_penaltyinclude_reasoninglogit_biaslogprobsmax_tokensmin_pparallel_tool_callspresence_penaltyreasoningrepetition_penaltyresponse_formatseedstopstructured_outputstemperaturetool_choicetoolstop_ktop_logprobstop_p
Available providers

15 providers

Checked: September 23, 2026

Live providers on OpenRouter

Provider availability, latency, throughput and routing can change continuously. Open the source page for current operational data.

OpenRouter

DeepInfra

fp4
Context
262K
Maximum output
16K
Input
$0.68
Output
$3.4
Cache read
$0.136
Cache write
Not provided

Inceptron

int4
Context
262K
Maximum output
236K
Input
$0.7062
Output
$3.3
Cache read
$0.18
Cache write
Not provided

CoreWeave

int4
Context
262K
Maximum output
236K
Input
$0.71
Output
$3.5
Cache read
$0.15
Cache write
Not provided

StreamLake

Not provided
Context
256K
Maximum output
32K
Input
$0.7125
Output
$3
Cache read
$0.1425
Cache write
Not provided

Venice

int4
Context
256K
Maximum output
66K
Input
$0.75
Output
$3.5
Cache read
$0.16
Cache write
Not provided

ModelRun

fp4
Context
262K
Maximum output
236K
Input
$0.85
Output
$3.75
Cache read
$0.16
Cache write
Not provided

SiliconFlow

fp8
Context
262K
Maximum output
236K
Input
$0.8592
Output
$3.8
Cache read
$0.1799
Cache write
Not provided

Novita

int4
Context
262K
Maximum output
236K
Input
$0.912
Output
$3.84
Cache read
$0.1824
Cache write
Not provided

Fireworks

Not provided
Context
262K
Maximum output
236K
Input
$0.95
Output
$4
Cache read
$0.19
Cache write
Not provided

BaseTen

fp4
Context
262K
Maximum output
236K
Input
$0.95
Output
$4
Cache read
$0.16
Cache write
Not provided

GMICloud

fp8
Context
262K
Maximum output
236K
Input
$0.95
Output
$4
Cache read
$0.19
Cache write
Not provided

Alibaba

fp8
Context
262K
Maximum output
16K
Input
$0.95
Output
$4
Cache read
$0.19
Cache write
Not provided

Cloudflare

Not provided
Context
262K
Maximum output
236K
Input
$0.95
Output
$4
Cache read
$0.19
Cache write
Not provided

Moonshot AI

int4
Context
262K
Maximum output
236K
Input
$0.95
Output
$4
Cache read
$0.19
Cache write
Not provided

Moonshot AI

int4
Context
262K
Maximum output
236K
Input
$1.9
Output
$8
Cache read
$0.38
Cache write
Not provided
moonshotai

4 models

All models