Kimi K2.7 Code API pricing

    Moonshot model

    Short answer

    Kimi K2.7 Code by Moonshot costs $0.95 per 1M input tokens and $4 per 1M output tokens, with a 256K token context window. It scores 78.2% on SWE-bench Verified. GLM-5.3 Flash scores about as well on SWE-bench Verified (92%) for $0.24 per 1M blended tokens versus $1.71.

    Prices updated Oct 23, 2026 (APIpulse, CC BY 4.0) · Benchmarks: ARC Prize, Vals.ai · all models

    Input$0.95 / 1M
    Output$4 / 1M
    Context256K
    Blended (3:1)$1.71 / 1M

    API cost calculator

    Enter your monthly usage in millions of tokens (1M tokens ≈ 750,000 words).

    Kimi K2.7 Code$17.50 / month$210 / year

    Standard rates; batch processing and prompt caching can lower the bill.

    Benchmarks

    ARC-AGI-2 (reasoning)—
    SWE-bench Verified (coding)78.2%

    Cheaper models with similar scores

    Within 3 points on the same benchmark, at a lower blended price.

    Compare Kimi K2.7 Code

    Other Moonshot models

    ModelInput / 1MOutput / 1M
    Kimi K3$3$15
    Kimi K2.6$0.95$4

    Frequently asked questions

    How much does the Kimi K2.7 Code API cost?

    Kimi K2.7 Code costs $0.95 per 1M input tokens and $4 per 1M output tokens. A workload of 10M input and 2M output tokens a month costs $17.50.

    What is the context window of Kimi K2.7 Code?

    Kimi K2.7 Code supports a 256K token context window.

    Is there a cheaper alternative to Kimi K2.7 Code?

    GLM-5.3 Flash scores 92% on SWE-bench Verified, close to Kimi K2.7 Code, at $0.24 per 1M blended tokens versus $1.71.