kimi-k2.7-code is a advanced-tier language model from Moonshot AI. kimi-k2.7-code is a proprietary model available exclusively through Moonshot AI's API. The Kimi K2 family is Moonshot AI's model series for this capability tier.
kimi-k2.7-code is priced at $0.9/1M input tokens and $3.75/1M output tokens. Output tokens are 4.2× more expensive than input tokens — this ratio reflects the sequential nature of autoregressive generation, which requires a separate forward pass per output token versus parallel processing of all input tokens simultaneously. At a typical usage pattern of 1,000 input tokens and 500 output tokens per call, kimi-k2.7-code costs approximately $2.77 per 1,000 API calls. Moonshot AI does not publish a prompt caching rate for this model, so repeated long contexts are billed at the standard $0.9/1M input rate.
Its 262K-token context window is in the top tier for production models, enabling full-document analysis, long multi-turn conversations, and large codebase understanding without chunking. Median latency (P50 time-to-first-token) is approximately 600ms — suitable for interactive applications where sub-second response is acceptable. Throughput is approximately 120 tokens/second — adequate for streaming at comfortable reading speed. Maximum output length is 33K tokens — sufficient for long-form content generation, detailed code files, and extended reports.
kimi-k2.7-code is best suited to coding, vision. Supported capabilities include vision inputs (images alongside text), function calling / tool use for agentic workflows, streaming token output for real-time UIs. Vision support enables document analysis, screenshot understanding, diagram interpretation, and visual question answering — images are converted to tokens at the standard input rate based on resolution. Function calling support makes it suitable for building AI agents, structured data extraction pipelines, and any workflow requiring the model to invoke external APIs or return typed JSON. When evaluating this model for a specific workload, the most important factors are: context window (does your input fit?), output price (how long are your generations?), and latency (is this interactive or batch?). The pricing table above shows how kimi-k2.7-code compares to similar models across these dimensions.
kimi-k2.7-code sits in the advanced tier — strong general-purpose models balancing capability and cost, suitable for most production applications. Unlike open-weights alternatives, kimi-k2.7-code is only available via Moonshot AI's API — there is no self-hosted option, which simplifies deployment but creates vendor dependency. When comparing kimi-k2.7-code to alternatives, use the similar models section on this page to find models at comparable price points with different capability tradeoffs. The intelligence score (87/100) reflects aggregate benchmark performance — a useful proxy for general capability, though real-world performance varies significantly by task type. Always test with your specific prompts and use case before committing to a model for production.
Composite quality score based on reasoning, coding, and instruction-following benchmarks.
Input price vs 184 advanced models tracked. Avg: $1.38/1M.
| Model ID | kimi-k2.7-code |
| Provider | Moonshot AI |
| Model Family | Kimi K2 |
| Tier | Advanced |
| Context Window | 262,144 tokens (262K) |
| Max Output Tokens | 32,768 tokens |
| Input Price | $0.9 / 1M tokens |
| Output Price | $3.75 / 1M tokens |
| Cached Input Price | Not available |
| Throughput | 120 tokens/sec |
| Latency (P50) | 600ms |
| Intelligence Score | 87/100 |
| LiveBench Score | — |
| Cost per Task (LiveBench) | — |
| Data Confidence | — |
| HLE Score | — |
| GPQA Diamond | — |
| SWE-bench Score | — |
| OSWorld Score | — |
| BrowseComp Score | — |
| Terminal-Bench Score | — |
| AutoBench Score | — |
| Parameters | — |
| Vision Support | Yes |
| Function Calling | Yes |
| Streaming | Yes |
| Reasoning Model | No |
| Open Weights | No |
| Data Source | Static (verified) |
| Last Updated | 2026-07-20 |
Similar Models by Intelligence Score
Self-hosting kimi-k2.7-code? These GPUs are well-matched for this model's compute and memory requirements.