Textby Moonshot AI

Kimi K2.7 Code

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...

  • By price it is in the pricier half of the 348 text models GenMagic runs (227th cheapest).
  • It scores 26.3 on the Artificial Analysis Intelligence Index, 53rd of the 121 text models with a score.
  • It has scores on 34 public benchmarks, listed below with their sources.
  • It was listed on Jun 12, 2026.

Data last changed Nov 12, 2026 · tracked since Oct 29, 2026 · Every model change

Try Kimi K2.7 Code

Generate with Kimi K2.7 Code right here. Verify your email to start with free credits.

~$0.006
Try

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.

21

source date 2026-11-11
Source: openrouter

60.8

source date 2026-11-11
Source: openrouter

26.3

source date 2026-09-18
Source: openrouter
AIMEMathematics

95.6%± 3.1

source date 2026-08-07
Source: epoch
APEX-AgentsAgentic & Tool Use

37.6%

Source: epoch
Chess PuzzlesReasoning & Knowledge

14%± 3.5

source date 2026-10-13
Source: epoch
Design Arena: 3DDesign & Generation

1225 Elo

Source: designarena
Design Arena: CodeDesign & Generation

1246 Elo

Source: designarena
Design Arena: SVGDesign & Generation

1167 Elo

Source: designarena
DeepSWECoding

30.5%

Harness: mini-swe-agent
Source: epoch

30.1

Reasoning effort: none; Harness: mini-swe-agent
Source: epoch

12.2%± 5.2

source date 2026-06-13
Source: epoch

54%± 3.0

source date 2026-06-13
Source: epoch
GPQA DiamondReasoning & Knowledge

86.7%± 1.7

source date 2026-10-31
Source: openrouter
SimpleBenchReasoning & Knowledge

57.9%

Source: epoch
SimpleQA VerifiedReasoning & Knowledge

36.5%± 1.5

source date 2026-08-27
Source: epoch
tau-bench (Airline)Agentic & Tool Use

73.8%± 2.6

source date 2026-10-31
Source: openrouter
WebDev ArenaAgentic & Tool Use

1473 Elo

Source: epoch
WeirdMLCoding

54.1%± 0.0

Source: epoch

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
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." }]
  }'
Python (openai SDK)
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

  1. In n8n, open the nodes panel, search for GenMagic and install it (a verified community node), then add it to your workflow.
  2. Set Resource to Text and Operation to Generate.
  3. In Model Name or ID, pick MoonshotAI: Kimi K2.7 Code, or enter moonshotai/kimi-k2.7-code as an expression.
  4. 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.

ModelProviderPriceContext
MoonshotAI: Kimi K2.7 Code (this model)Moonshot AI$0.90 in / $5.25 out per 1M tokens262K
Qwen: Qwen3.5 397B A17BQwen$0.90 in / $5.40 out per 1M tokens262K
Z.ai: GLM 5Z.AI$1.50 in / $4.80 out per 1M tokens205K
Pareto 26.10Unbiased$1.20 in / $4.80 out per 1M tokens1M
Relace: Relace SearchRelace$1.50 in / $4.50 out per 1M tokens256K
Nous: Hermes 4 405BNous Research$1.50 in / $4.50 out per 1M tokens131K

Compare Kimi K2.7 Code

More from Moonshot AI

All 9 Moonshot AI models

Price 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.

DateChangeBeforeAfter
Nov 6, 2026Price down 0%$0.90 in / $5.25 out per 1M tokens$0.90 in / $5.25 out per 1M tokens
Nov 1, 2026Price up 36%$0.66 in / $3.85 out per 1M tokens$0.90 in / $5.25 out per 1M tokens
Oct 31, 2026Price 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.