Skip to main content
Watch: I Built an AI App Without Leaving Databricks

Model comparison - Similar price, same tier

GPT-5.4 Mini vs Kimi K2.7 Code

GPT-5.4 Mini is from OpenAI and Kimi K2.7 Code is from Moonshot AI. On list price, GPT-5.4 Mini charges 21% less than Kimi K2.7 Code for input ($0.75 vs $0.95 per 1M tokens), and Kimi K2.7 Code charges 11% less than GPT-5.4 Mini for output ($4 vs $4.50 per 1M tokens). GPT-5.4 Mini has a 400,000-token context window and Kimi K2.7 Code 262,144 tokens; GPT-5.4 Mini returns up to 128,000 output tokens per response, and no primary source states a max output for Kimi K2.7 Code. GPT-5.4 Mini was released on March 17, 2026; no primary source states a release date for Kimi K2.7 Code. Kimi K2.7 Code publishes open weights (Modified MIT License (Hugging Face license tag: other)); GPT-5.4 Mini is closed-weights.

Last verified from each provider's pricing page. All sources

OpenAI - Closed

GPT-5.4 Mini
Input / 1M
$0.75
Output / 1M
$4.50
Context
400K

Moonshot AI - Open

Kimi K2.7 Code
Input / 1M
$0.95
Output / 1M
$4
Context
262K

Side-by-side specs

SpecGPT-5.4 MiniKimi K2.7 Code
ProviderOpenAIMoonshot AI
Input / 1M tokens$0.75$0.95
Output / 1M tokens$4.50$4
Cache read / 1M$0.075$0.19
Batch input / 1M$0.375$0.57
Batch output / 1M$2.25$2.40
Context window400,000262,144
Max output128,000-
Release date-
WeightsClosedOpen
License-Modified MIT License (Hugging Face license tag: other)
API model idgpt-5.4-minikimi-k2.7-code
AI Gateway idopenai/gpt-5.4-minimoonshotai/kimi-k2.7-code
Last verified

Prices in USD per 1M tokens at each provider's standard first-party rate. A dash means the provider does not bill that item separately or no primary page states it.

What each costs in practice

The same three workloads every model page uses, worked from each model's standard list rates. Swap in your own token counts with the math on each model's page.

WorkloadGPT-5.4 MiniKimi K2.7 Code
One agent session1M input tokens and 100K output tokens, no caching.$1.20$1.35
A chat app10,000 requests a day at 2K input and 500 output tokens each.$37.50$1,125.00 per 30-day month$39.00$1,170.00 per 30-day month
The same session at a 90% cache hit90% of the input is read from the prompt cache. The one-time cache write premium is not included.$0.5925$0.666
Show the math

GPT-5.4 Mini

  • One agent sessionInput: 1M x $0.75 = $0.75Output: 0.1M x $4.50 = $0.45
  • A chat appInput: 20M x $0.75 = $15.00Output: 5M x $4.50 = $22.50
  • The same session at a 90% cache hitCached input: 0.9M x $0.075 = $0.0675Uncached input: 0.1M x $0.75 = $0.075Output: 0.1M x $4.50 = $0.45

Kimi K2.7 Code

  • One agent sessionInput: 1M x $0.95 = $0.95Output: 0.1M x $4 = $0.40
  • A chat appInput: 20M x $0.95 = $19.00Output: 5M x $4 = $20.00
  • The same session at a 90% cache hitCached input: 0.9M x $0.19 = $0.171Uncached input: 0.1M x $0.95 = $0.095Output: 0.1M x $4 = $0.40

Benchmarks under the same setting

No board in the benchmark directory lists both GPT-5.4 Mini and Kimi K2.7 Code under the same setting, so there is no like-for-like score to show here.

Set them up in your tools

Step-by-step guides whose official docs list GPT-5.4 Mini or Kimi K2.7 Code by model id.

Model pages

FAQ

How do GPT-5.4 Mini and Kimi K2.7 Code compare on price?

On list price, GPT-5.4 Mini charges 21% less than Kimi K2.7 Code for input ($0.75 vs $0.95 per 1M tokens), and Kimi K2.7 Code charges 11% less than GPT-5.4 Mini for output ($4 vs $4.50 per 1M tokens). For one agent session of 1M input and 100K output tokens with no caching, that is $1.20 on GPT-5.4 Mini and $1.35 on Kimi K2.7 Code. Prices are each provider's first-party list rates, verified October 17, 2026 and October 17, 2026.

What are the context windows of GPT-5.4 Mini and Kimi K2.7 Code?

GPT-5.4 Mini has a 400,000-token context window and Kimi K2.7 Code 262,144 tokens; GPT-5.4 Mini returns up to 128,000 output tokens per response, and no primary source states a max output for Kimi K2.7 Code.

Are GPT-5.4 Mini and Kimi K2.7 Code open weights?

GPT-5.4 Mini is closed-weights and is called through OpenAI's API as gpt-5.4-mini. Kimi K2.7 Code's weights are published at huggingface.co under the Modified MIT License (Hugging Face license tag: other).

More comparisons

Sources

GPT-5.4 Mini verified from developers.openai.com; Kimi K2.7 Code verified from platform.kimi.ai. This page is as current as the older of the two: .

Newsletter

Get model price changes as they ship

One email per week. New model releases, price cuts and what they mean for your bill.