LiteLLMLiteLLM/ MODELS

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.

Prices from LiteLLM's price fileChecked

Kimi K2.7 Code vs Step 5 Preview side by side

Headline prices in US dollars per 1M tokens: each model's own lab where it sells it, otherwise its cheapest provider. Source: LiteLLM model price file, as of November 23, 2026.
Kimi K2.7 CodeStep 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 window262,144 tokens1,024,000 tokens
Max output262,144 tokens131,072 tokens
Image inputYesYes
Tool callingYesYes
Structured output (JSON)YesYes
Prompt cachingYesYes
ReasoningYesYes
Providers on LiteLLM235
Price shown is fromMoonshot AIEmpirioLabs AI
Added to LiteLLMJune 2026October 24, 2026

Cheapest provider for each

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.

Python SDK
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.