kilo-logo
kilo-logo
kilo-logo

/

/

Kimi K2.7 Code

Kimi K2.7 Code

by MoonshotAI

Kimi K2.7 Code pricing, context window and specs

Kimi K2.7 Code is a MoonshotAI model with a 262,144 token context window. It costs $0.95 per million input tokens and $4.00 per million output tokens, and supports image input, reasoning, tool calling and structured output.

Kimi K2.7 Codekimi-k2.7-code
Updated Nov 20, 2026
Input price$0.95per 1M tokens
Output price$4.00per 1M tokens
Context window262,144tokens, about 197,000 words
Cached input$0.19per 1M tokens
Tool callingStructured outputVisionReasoning

Kimi K2.7 Code specs

Provider

MoonshotAI

Model ID

kimi-k2.7-code

Input price

$0.95 per 1M tokens

Cached input price

$0.19 per 1M tokens

Output price

$4.00 per 1M tokens

Context window

262,144 tokens

Modalities

Text and images in, text out

Tool calling

โœ“ Supported

Structured output

โœ“ Supported

Reasoning

โœ“ Supported

Vision

โœ“ Supported

Prices checked on

When to use Kimi K2.7 Code

Pick Kimi K2.7 Code as an everyday model when you need solid quality without paying top-tier prices.

Drafting and analysis. Writing, summarising and answering questions over your own data.

Problems that need thinking. It can reason through a task before it answers.

Agents that use tools. It supports tool calling and structured output, so it can act and hand back clean JSON.

Large inputs. The 262,144 token context window fits long documents and transcripts in one request.

Reading images. It accepts screenshots, scans and photos alongside text.

If you need more capability, Kimi K2.7 Code (Fast) costs $1.90 per million input tokens.

Cost calculator

What Kimi K2.7 Code costs at your volume

Pick a workload or move the sliders. The estimate uses the prices in the table above.

Start from a workload
Estimated Kimi K2.7 Code cost per month$30.83
Input 42%Output 58%
Per request$0.00205
Per day$1.03
Per 1,000 requests$2.06
Context window used0.7% of 262.1K

Worked out from the provider list price. Fetch Hive charges that price to your AI wallet with no markup per call, and each model call uses one task from your plan.

Templates

Templates you can run with Kimi K2.7 Code

Ready-made workflows and agents. Copy one, pick Kimi K2.7 Code in the AI step and run it.

Build with it

Use Kimi K2.7 Code in Fetch Hive

Fetch Hive is an AI agent builder. Pick this model in any prompt, workflow or agent step, or call it from your own code with one API request.

Call Kimi K2.7 Code through the AI Gateway

1

Create a prompt and pick the model

Write your prompt in Fetch Hive and choose this model from the model library. Add a fallback model if you want a backup.

2

Deploy the prompt

Deploying gives the prompt a deployment name and a variant that your code can call.

3

Send one POST request

Call the invoke endpoint with your API key. Usage is charged to your AI wallet at the provider list price, and each call uses one task.

bash
curl -X POST \
  https://api.fetchhive.com/v1/prompt/invoke \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "deployment": "your-deployment",
    "variant": "default",
    "inputs": { "ticket": "Where is my order?" },
    "streaming": false
  }'

Compare

Compare Kimi K2.7 Code with similar models

List prices per 1M tokens and context window, next to the models people most often weigh it against.

VS

Kimi K2.6

by MoonshotAI
Kimi K2.7 CodeKimi K2.6
Input per 1M tokensSame
$0.95
$0.95
Output per 1M tokensSame
$4.00
$4.00
Context windowSame
262K tokens
262K tokens
See Kimi K2.6 pricing and specs
VS

Kimi K2.5

by MoonshotAI
Kimi K2.7 CodeKimi K2.5
Input per 1M tokens37% cheaper
$0.95
$0.60
Output per 1M tokens25% cheaper
$4.00
$3.00
Context windowSame
262K tokens
262K tokens
See Kimi K2.5 pricing and specs
VS

GLM 5 Fp4

by ZAI
Kimi K2.7 CodeGLM 5 Fp4
Input per 1M tokens5% pricier
$0.95
$1.00
Output per 1M tokens20% cheaper
$4.00
$3.20
Context window23% smaller
262K tokens
203K tokens
See GLM 5 Fp4 pricing and specs

FAQ

Kimi K2.7 Code questions, answered

Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image

Build with Kiimi K2.7 Code

on Fetch Hive today.

Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image

Build with Kiimi K2.7 Code

on Fetch Hive today.

Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image
Agent Image

Build with Kiimi K2.7 Code

on Fetch Hive today.