Skip to content
CheapLLM

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

Live on api.cheapllm.com/v1Start using model
Input tokens−30% off
$0.42per 1M tokens

Official: $0.60

Output tokens−30% off
$2.45per 1M tokens

Official: $3.50

30-day price trend

Quickstart

from openai import OpenAI
import os

client = OpenAI(
    base_url="https://api.cheapllm.com/v1",
    api_key=os.environ["CHEAPLLM_API_KEY"],
)

response = client.chat.completions.create(
    model="moonshotai/kimi-k2.7-code",
    messages=[{"role": "user", "content": "Hello!"}],
)

Specifications

Context window
262.14K
Max output
—
Tool calling
—
Vision / images
Supported
Reasoning
—
Base URL
https://api.cheapllm.com/v1

Kimi K2.7 Code price comparison: CheapLLM vs Official API

Prices verified 2026-11-28
MetricOfficial Moonshot AI APICheapLLM (Pay as you go)Savings
Input tokens (per 1M)$0.60$0.42−30%
Output tokens (per 1M)$3.50$2.45−30%
Context window262.14K262.14K100%
With Pro / Max plan (100× pool)—Up to 70% lower bill−70%