Kimi K2.7 Code vs Step 5 Preview
As of November 23, 2026, Step 5 Preview is cheaper at 3 input tokens per output token, though it costs 5% more per input token than Kimi K2.7 Code ($1.00 vs $0.95 per 1M) and has a 1M-token context window versus 256K.
Kimi K2.7 Code vs Step 5 Preview side by side
| Kimi K2.7 Code | Step 5 Preview | |
|---|---|---|
| Input, per 1M tokens | $0.95 | $1.00 |
| Output, per 1M tokens | $4.00 | $2.70 |
| Cache read, per 1M tokens | $0.19 | $0.10 |
| Cache write, per 1M tokens | – | – |
| Context window | 262,144 tokens | 1,024,000 tokens |
| Max output | 262,144 tokens | 131,072 tokens |
| Image input | Yes | Yes |
| Tool calling | Yes | Yes |
| Structured output (JSON) | Yes | Yes |
| Prompt caching | Yes | Yes |
| Reasoning | Yes | Yes |
| Providers on LiteLLM | 23 | 5 |
| Price shown is from | Moonshot AI | EmpirioLabs AI |
| Added to LiteLLM | June 2026 | October 24, 2026 |
Cheapest provider for each
- Kimi K2.7 Code: CLF AI Gateway at $0.38 input and $1.60 output per 1M tokens (
clf_ai_gateway/kimi-k2.7-code) - Step 5 Preview: EmpirioLabs AI at $1.00 input and $2.70 output per 1M tokens (
empiriolabs/step-5-preview)
When to pick which
Pick Kimi K2.7 Code for
- Costs 5% less per input token: $0.95 vs $1.00 per 1M.
- Returns up to 262,144 tokens per response, vs 131,072.
Pick Step 5 Preview for
- Costs 32% less per output token: $2.70 vs $4.00 per 1M.
- Larger context window: 1,024,000 vs 262,144 tokens.
From differences in the data above only; where the data is equal, no reason is given.
Call Kimi K2.7 Code or Step 5 Preview with LiteLLM
Both use the OpenAI format through LiteLLM, so switching is a model name change. Set each provider's API key in the environment first.
from litellm import completion
messages = [{"role": "user", "content": "Hello!"}]
# Kimi K2.7 Code
response = completion(model="moonshot/kimi-k2.7-code", messages=messages)
# Step 5 Preview
response = completion(model="empiriolabs/step-5-preview", messages=messages)
# Kimi K2.7 Code, falling back to Step 5 Preview if the call fails
response = completion(model="moonshot/kimi-k2.7-code", messages=messages, fallbacks=["empiriolabs/step-5-preview"])FAQ
Which is cheaper, Kimi K2.7 Code or Step 5 Preview?
Step 5 Preview is cheaper at 3 input tokens per output token: $1.425 per 1M tokens blended ($1.00 input, $2.70 output), versus $1.712 ($0.95 and $4.00) for Kimi K2.7 Code, as of November 23, 2026.
Which has the larger context window, Kimi K2.7 Code or Step 5 Preview?
Step 5 Preview has the larger context window: 1,024,000 tokens, versus 262,144 for Kimi K2.7 Code.
Can I switch from Kimi K2.7 Code to Step 5 Preview without changing my code?
Yes. Through LiteLLM both use the OpenAI format, so switching means changing the model name from "moonshot/kimi-k2.7-code" to "empiriolabs/step-5-preview", or pointing a LiteLLM gateway model alias at the other model. You can also use one as a fallback for the other.