Kimi K2.7 Code vs GPT-5 Codex — LLM API Cost Comparison
Compare Kimi K2.7 Code (Kimi (Moonshot AI)) vs GPT-5 Codex (OpenAI) on cost per million tokens, context window, and monthly spend.
Prices verified 2026-08-03 · Pricing may change — use the calculator for current estimates
- Input
- $0.95/1M tokens
- Output
- $4/1M tokens
- Context
- 262K tokens
- Released
- 2026-07
Coding-focused model; $0.19/1M cached input, 256K context, thinking and multimodal input
- Input
- $1.25/1M tokens
- Output
- $10/1M tokens
- Context
- 400K tokens
- Released
- 2025-09
GPT-5 Codex; 400K context; coding-optimized
Monthly Cost by Usage Tier (70% input / 30% output ratio)
| Usage | Kimi K2.7 Code | GPT-5 Codex | Cheaper by |
|---|---|---|---|
| Light (1M tokens) | $1.86 | $3.88 | Kimi K2.7 Code (52%) |
| Moderate (10M tokens) | $18.65 | $38.75 | Kimi K2.7 Code (52%) |
| Heavy (100M tokens) | $187 | $388 | Kimi K2.7 Code (52%) |
| Very Heavy (1B tokens) | $1,865 | $3,875 | Kimi K2.7 Code (52%) |
Frequently Asked Questions
Which is cheaper — Kimi K2.7 Code or GPT-5 Codex?
For input tokens, Kimi K2.7 Code is cheaper at $0.95/1M tokens — 1.3× less than $1.25/1M. For output tokens, Kimi K2.7 Code wins at $4/1M vs $10/1M. At heavy workloads (100M tokens/month), the cost difference can be significant.
What is the context window difference between Kimi K2.7 Code and GPT-5 Codex?
Kimi K2.7 Code supports 262,144 tokens per request; GPT-5 Codex supports 400,000 tokens. GPT-5 Codex wins on context length, making it better for long documents, large codebases, or extended conversations without chunking.
When should I choose Kimi K2.7 Code over GPT-5 Codex?
Choose Kimi K2.7 Code (Kimi (Moonshot AI)) if you prefer Kimi (Moonshot AI)'s ecosystem, tooling, or reliability track record. Coding-focused model; $0.19/1M cached input, 256K context, thinking and multimodal input. Choose GPT-5 Codex (OpenAI) if GPT-5 Codex; 400K context; coding-optimized. the price/performance fits your workload better. Use this calculator to find the break-even point for your exact token volume.
How much does 1 billion tokens cost on Kimi K2.7 Code vs GPT-5 Codex?
At 700M input + 300M output tokens (1B total): Kimi K2.7 Code costs $1865; GPT-5 Codex costs $3875. The difference is $2010/billion tokens at this 70/30 input/output ratio.