Skip to content Chat

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

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

Side by side

SpecKimi K2.7 CodeGrok Build 0.1
ModelKimi K2.7 Codemoonshotai/kimi-k2.7-codeGrok Build 0.1x-ai/grok-build-0.1
PublisherMoonshotAISpaceXAI
KindText & visionText & vision
Context window262K tokens262,144256K tokens256,000
Input price$0.95 / 1M tokens$1.00 / 1M tokens
Output price$4.00 / 1M tokens$2.00 / 1M tokens
Cached input price$0.19 / 1M tokens$0.20 / 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?

  • Price depends on the mix: Kimi K2.7 Code costs less for input and Grok Build 0.1 for output, so estimate both on your own volume of input tokens and output tokens.
  • Choose Kimi K2.7 Code for the longest inputs: its context window holds 262K tokens against 256K for Grok Build 0.1.
  • Choose Grok Build 0.1 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 Build 0.1 

Frequently asked questions

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

It depends on the mix of tokens. Kimi K2.7 Code costs less for input: $0.95 against $1.00 per 1M input tokens (5% less); Grok Build 0.1 costs less for output: $2.00 against $4.00 per 1M output tokens (50% 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 Build 0.1?

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

Can I call both Kimi K2.7 Code and Grok Build 0.1 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-build-0.1.

Models and publishers

Kimi K2.7 Code · Grok Build 0.1 · All MoonshotAI models · All SpaceXAI models

Compare any two models

More comparisons

DeepSeek V4.1 Flash vs Grok Build 0.1 · DeepSeek V4 Pro vs Grok Build 0.1 · DeepSeek V3.2 vs Grok Build 0.1 · GLM 5.3 Prime vs Grok Build 0.1 · All comparisons