Skip to main content
Core.Today
|
Moonshot AIFastHigh

Kimi K2.7 Code

Moonshot AI's Kimi K2.7 Code served through the OpenRouter aggregator - a coding-focused member of the Kimi K2 family built to complete end-to-end programming tasks reliably over long contexts, with a native multimodal mixture-of-experts architecture, 256K context, and image input. Billed at OpenRouter's actual usage cost.

1,375/6,503credits
input / output ยท per 1M tokens
256K-token context window with up to 256K output tokens
Coding-focused - end-to-end programming tasks over long contexts
Native multimodal MoE (image input, e.g. screenshots and diagrams)
OpenAI-compatible API (chat completions) via /llm/openrouter/v1
Billed at OpenRouter's actual usage.cost - listed rates are estimates

Run it right now

Test this model instantly in the Console Playground โ€” no code required

Sign in to try

Use with AI Assistant

Copy usage instructions for Claude, ChatGPT, or other AI

Model Specifications

Context Window
262K
tokens
Max Output
262K
tokens
Training Cutoff
Not published
Compatible SDK
OpenAI

Capabilities

Vision
Function Calling
Streaming
JSON Mode
System Prompt

Token Pricing (per 1M tokens)

Token TypeCreditsUSD Equivalent
Input Tokens1,375$0.92
Output Tokens6,503$4.34
Cached Tokens278.7$0.19

* 1,500 credits โ‰ˆ $1 (actual charges may vary based on usage)

Quick Start

curl -X POST "https://api.core.today/llm/openrouter/v1/chat/completions" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer cdt_your_api_key" \
  -d '{
  "model": "moonshotai/kimi-k2.7-code",
  "messages": [
    {
      "role": "user",
      "content": "Summarize the attached report in 5 bullets."
    }
  ],
  "max_tokens": 1024
}'

Parameters

ParameterTypeRequiredDefaultDescription
modelstringYes-Model ID in vendor/model form, e.g. "moonshotai/kimi-k2.7-code".
messagesarrayYes-Chat messages in OpenAI format (system/user/assistant roles).
temperaturenumberNo0.7Sampling temperature (0-2).
max_tokensintegerNo2048Maximum completion tokens.
streambooleanNofalseStream the response as server-sent events.

Examples

Chat completion

OpenAI-compatible chat completion request via OpenRouter

curl -X POST "https://api.core.today/llm/openrouter/v1/chat/completions" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer cdt_your_api_key" \
  -d '{
  "model": "moonshotai/kimi-k2.7-code",
  "messages": [
    {
      "role": "user",
      "content": "Summarize the attached report in 5 bullets."
    }
  ],
  "max_tokens": 1024
}'

Tips & Best Practices

1Works with the OpenAI SDK - set base_url to https://ai.api.core.today/llm/openrouter/v1
2Charged at OpenRouter's usage.cost x 1,858 credits/USD - the listed rates are estimates and may lag OpenRouter price changes
3Tuned for coding - pair it with tools (function calling) for agentic edit/run loops, and prefer the general Kimi K3 for non-coding tasks

Use Cases

Coding agents and autonomous multi-file edits
Large codebase comprehension and refactoring
Debugging from screenshots, logs, and stack traces