Back to model shop
Moonshotai
Rendered from D1 model snapshot · D1 read 51msCache check: checking

moonshotai/kimi-k2.7-code

Open weights
Kimi K2.7 Code

Coding-focused Kimi model, stronger on long-horizon repo work with less overthinking

This model's cache

This model page returns the exact headers below. The page and /api/models/moonshotai--kimi-k2.7-code share the model:moonshotai--kimi-k2.7-code tag, so invalidation stays scoped to this model.

Cache key/models/moonshotai--kimi-k2.7-code
Cache-Controlpublic, max-age=300, stale-while-revalidate=3600
Cache-Tagcatalogmodel:moonshotai--kimi-k2.7-code

Workers Cache derives the key from this path/query, plus the Worker entrypoint and current Worker version.

export const Route = createFileRoute('/models/$modelSlug')({
  headers: () => ({
    'Cache-Control': 'public, max-age=300, stale-while-revalidate=3600',
    'Cache-Tag': 'catalog,model:moonshotai--kimi-k2.7-code',
  }),
})

Invalidate this cache tag

await ctx.cache.purge({ tags: ['model:moonshotai--kimi-k2.7-code'] })

Use this when one model changes and you do not want to evict the whole catalog.

Kimi K2ReasoningTool callingStructured outputAttachments
Released
Jun 12, 2026
Last updated
Jun 12, 2026
Context window
262.1K tokens
Max output
262.1K tokens
Open weights
Yes
Family
Kimi K2

Starts at

$0.74

per 1M input tokens

Output

$3.5

Sellers

6

No cart or checkout in this MVP — pick a provider below and open their docs when you're ready to use it.

Capabilities & modalities
Reasoning
Tool calling
Structured output
Attachments
InputText, Image, Video
OutputText
Provider shelf
Where to get Kimi K2.7 Code

Sorted by lowest input price

ProviderInput / 1MOutput / 1MContext

OpenRouter

moonshotai/kimi-k2.7-code

$0.74$3.5262.1KDocs

Ambient

moonshotai/kimi-k2.7-code

$0.75$3.5262.1KDocs

Vercel AI Gateway

moonshotai/kimi-k2.7-code

$0.95$4256KDocs

Moonshot AI

kimi-k2.7-code

$0.95$4262.1KDocs

ZenMux

moonshotai/kimi-k2.7-code

$0.95$4262.1KDocs

Merge Gateway

moonshotai/kimi-k2.7-code

$0.95$4262.1KDocs
More from Moonshotai