GPT-5.4 vs Kimi K2.7 Code: API Pricing
Input and output token rates, context windows, and real monthly cost for GPT-5.4 (OpenAI) and Kimi K2.7 Code (Moonshot), side by side. Prices are standard on-demand rates as of June 2026.
The short answer
For a typical coding-agent workload (60M in / 12M out per month), Kimi K2.7 Code is the cheaper option at $105/mo versus $330/mo for GPT-5.4 - about 68% less (3.1× cheaper). On the headline sticker of 1M input + 1M output, GPT-5.4 is $17.50 and Kimi K2.7 Code is $4.95.
Rates at a glance
| GPT-5.4 | Kimi K2.7 Code | |
|---|---|---|
| Input ($/1M tokens) | $2.50 | $0.95 |
| Output ($/1M tokens) | $15.00 | $4.00 |
| Blended (1M in + 1M out) | $17.50 | $4.95 |
| Context window | 1,050K | 262K |
| Type | Proprietary | Open-weight |
| Provider | OpenAI | Moonshot |
Monthly cost by workload
Estimated monthly API spend at each workload's token volume. Output usually costs several times input, so the winner can flip with your mix.
| Workload | GPT-5.4 | Kimi K2.7 Code | Cheaper |
|---|---|---|---|
| Chatbot / assistant 10M in / 3M out | $70.00/mo | $21.50/mo | Kimi K2.7 Code |
| Coding agent 60M in / 12M out | $330/mo | $105/mo | Kimi K2.7 Code |
| RAG / summarization 40M in / 4M out | $160/mo | $54.00/mo | Kimi K2.7 Code |
| Batch / classification 20M in / 2M out | $80.00/mo | $27.00/mo | Kimi K2.7 Code |
Want your own in/out split? Use the full interactive comparator to rank every model and provider for your exact workload.
Frequently asked questions
Is GPT-5.4 or Kimi K2.7 Code cheaper?
It depends on your input/output mix, but for a typical coding-agent workload (60M in / 12M out per month) Kimi K2.7 Code costs $105/mo versus $330/mo for GPT-5.4 - about 68% less (3.1x). On the headline sticker (1M input + 1M output), GPT-5.4 is $17.50 and Kimi K2.7 Code is $4.95.
What are the token rates for GPT-5.4 and Kimi K2.7 Code?
GPT-5.4 (OpenAI) is $2.50 per 1M input and $15.00 per 1M output. Kimi K2.7 Code (Moonshot) is $0.95 per 1M input and $4.00 per 1M output. These are standard on-demand rates, not cached or batch.
Is GPT-5.4 or Kimi K2.7 Code open-weight?
GPT-5.4 is proprietary and Kimi K2.7 Code is open-weight. Open-weight models can be self-hosted or run on third-party hosts at different rates, so the first-party price shown here is a starting point, not the only option.
What context window do GPT-5.4 and Kimi K2.7 Code support?
GPT-5.4 supports 1,050K tokens and Kimi K2.7 Code supports 262K tokens. Some models also step up pricing past a size threshold - check the source pricing pages for long-context tiers.
More pricing comparisons
Stay ahead of the AI tools curve
Picks, reviews, and automation tips every weekday. Free, no spam.