Kimi K2.7 Code vs Gemini 3.8 Flash: price, context window and capabilities
Kimi K2.7 Code (moonshotai/kimi-k2.7-code) from MoonshotAI and Gemini 3.8 Flash (google/gemini-3.8-flash) from Google are both multimodal language models on the OceanToken API. Gemini 3.8 Flash costs less per token than Kimi K2.7 Code: $0.675 against $0.95 per 1M input tokens (29% less) and $3.375 against $4.00 per 1M output tokens (16% less). Gemini 3.8 Flash is 10% off its official price on OceanToken, for every account. Gemini 3.8 Flash has the larger context window: 1.05M tokens (1,048,576) against 262K (262,144) for Kimi K2.7 Code. Both support tool calling, reasoning, structured outputs and image input; only Gemini 3.8 Flash also lists file input, audio input and video input.
Side by side
| Spec | Kimi K2.7 Code | Gemini 3.8 Flash −10% |
|---|---|---|
| Model | Kimi K2.7 Codemoonshotai/ | Gemini 3.8 Flashgoogle/ |
| Publisher | MoonshotAI | |
| Kind | Text & vision | Text, vision, audio & video |
| Context window | 262K tokens262,144 | 1.05M tokens1,048,576 |
| Input price | $0.95 / 1M tokens | $0.675 / 1M tokens |
| Output price | $4.00 / 1M tokens | $3.375 / 1M tokens |
| Cached input price | $0.19 / 1M tokens | $0.075 / 1M tokens |
| Cache write price | – | $0.792 / 1M tokens |
| Web search price | – | $0.014 / search |
| Discount (vs official, top tier) | — | −10% |
| Inputs | text and images | text, images, files, audio and video |
| Outputs | text | text |
| Tool calling | Yes | Yes |
| Reasoning | Yes | Yes |
| Structured outputs | Yes | Yes |
About these prices
Which should you choose?
- Choose Gemini 3.8 Flash to spend less per token: 29% less for input and 16% less for output than Kimi K2.7 Code.
- Choose Gemini 3.8 Flash for the longest inputs: its context window holds 1.05M tokens against 262K for Kimi K2.7 Code.
- Choose Gemini 3.8 Flash if you need file input, audio input and video input: Kimi K2.7 Code does not list them.
- 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 Gemini 3.8 Flash
Frequently asked questions
Which is cheaper, Kimi K2.7 Code or Gemini 3.8 Flash?
Gemini 3.8 Flash. Gemini 3.8 Flash costs less per token than Kimi K2.7 Code: $0.675 against $0.95 per 1M input tokens (29% less) and $3.375 against $4.00 per 1M output tokens (16% less). Gemini 3.8 Flash is 10% off its official price on OceanToken, for every account. The OceanToken console always shows the current price.
Which has the larger context window, Kimi K2.7 Code or Gemini 3.8 Flash?
Gemini 3.8 Flash. Gemini 3.8 Flash has the larger context window: 1.05M tokens (1,048,576) against 262K (262,144) for Kimi K2.7 Code.
Can I call both Kimi K2.7 Code and Gemini 3.8 Flash 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 google/gemini-3.8-flash.
Models and publishers
Kimi K2.7 Code · Gemini 3.8 Flash · All MoonshotAI models · All Google models
More comparisons
DeepSeek V4.1 Flash vs Gemini 3.8 Flash · DeepSeek V4 Pro vs Gemini 3.8 Flash · DeepSeek V3.2 vs Gemini 3.8 Flash · GLM 5.3 Prime vs Gemini 3.8 Flash · All comparisons