Skip to content Chat

Kimi K2.7 Code vs Grok 4.5: price, context window and capabilities

Kimi K2.7 Code (moonshotai/kimi-k2.7-code) from MoonshotAI and Grok 4.5 (x-ai/grok-4.5) from SpaceXAI are both multimodal language models on the OceanToken API. Kimi K2.7 Code costs less per token than Grok 4.5: $0.95 against $2.00 per 1M input tokens (53% less) and $4.00 against $6.00 per 1M output tokens (33% less). Grok 4.5 has the larger context window: 500K tokens (500,000) against 262K (262,144) for Kimi K2.7 Code. Both support tool calling, reasoning, structured outputs and image input; only Grok 4.5 also lists file input.

Side by side

SpecKimi K2.7 CodeGrok 4.5
ModelKimi K2.7 Codemoonshotai/kimi-k2.7-codeGrok 4.5x-ai/grok-4.5
PublisherMoonshotAISpaceXAI
KindText & visionText & vision
Context window262K tokens262,144500K tokens500,000
Input price$0.95 / 1M tokens$2.00 / 1M tokens
Output price$4.00 / 1M tokens$6.00 / 1M tokens
Cached input price$0.19 / 1M tokens$0.30 / 1M tokens
Web search price–$0.005 / search
Inputstext and imagestext, images and files
Outputstexttext
Tool callingYesYes
ReasoningYesYes
Structured outputsYesYes

About these prices

Which should you choose?

  • Choose Kimi K2.7 Code to spend less per token: 53% less for input and 33% less for output than Grok 4.5.
  • Choose Grok 4.5 for the longest inputs: its context window holds 500K tokens against 262K for Kimi K2.7 Code.
  • Choose Grok 4.5 if you need file input: Kimi K2.7 Code does not list it.
  • Not sure? Call both with the same OceanToken API key and compare them on your own prompts; each request is billed per use from one prepaid balance.

Get API Key  Kimi K2.7 Code  Grok 4.5 

Frequently asked questions

Which is cheaper, Kimi K2.7 Code or Grok 4.5?

Kimi K2.7 Code. Kimi K2.7 Code costs less per token than Grok 4.5: $0.95 against $2.00 per 1M input tokens (53% less) and $4.00 against $6.00 per 1M output tokens (33% less). These are OceanToken starting prices per use; the OceanToken console always shows the current price.

Which has the larger context window, Kimi K2.7 Code or Grok 4.5?

Grok 4.5. Grok 4.5 has the larger context window: 500K tokens (500,000) against 262K (262,144) for Kimi K2.7 Code.

Can I call both Kimi K2.7 Code and Grok 4.5 with one API key?

Yes. Both are on the OceanToken API at https://api.oceantoken.ai/v1: one API key and one prepaid balance call either model. Send the model id moonshotai/kimi-k2.7-code or x-ai/grok-4.5.

Models and publishers

Kimi K2.7 Code · Grok 4.5 · All MoonshotAI models · All SpaceXAI models

Compare any two models

More comparisons

DeepSeek V4.1 Flash vs Grok 4.5 · DeepSeek V4 Pro vs Grok 4.5 · DeepSeek V4 Flash 0731 vs Grok 4.5 · DeepSeek V3.2 vs Grok 4.5 · All comparisons