Skip to content

Gemini 3.1 Pro Preview vs Kimi K2.7 Code

Compare Gemini 3.1 Pro Preview from Google and Kimi K2.7 Code from Moonshot AI on price, context length and features. Use both through one Yunshu Router API key.

Google
Moonshot AI
Good for
Hard reasoning · Coding agents · Long context · Images and screenshots
Coding agents · Hard reasoning · Images and screenshots
Overview
Model ID
gemini-3.1-pro-preview
kimi-k2.7-code
Availability
Available
Available
Context length
195K tokens
256K tokens
Reasoning
Always on
Always on
Reads
text, image, file, audio, video
text, image, video
Writes
text
text
Tool calling
Yes
Yes
Price per 1M tokens
Input
$2.3030
$1.1515
Output
$13.8178
$4.7831
Cached input
$0.2303
$0.2303
Model
Google
Moonshot AI
Good forHard reasoning · Coding agents · Long context · Images and screenshotsCoding agents · Hard reasoning · Images and screenshots
Overview
Model IDgemini-3.1-pro-previewkimi-k2.7-code
AvailabilityAvailableAvailable
Context length195K tokens256K tokens
ReasoningAlways onAlways on
Readstext, image, file, audio, videotext, image, video
Writestexttext
Tool callingYesYes
Price per 1M tokens
Input$2.3030$1.1515
Output$13.8178$4.7831
Cached input$0.2303$0.2303

Analysis

Gemini 3.1 Pro Preview vs Kimi K2.7 Code: side-by-side summary

Gemini 3.1 Pro Preview and Kimi K2.7 Code are both available through the Yunshu Router API, so switching between them is a change of model ID, not a new integration.

Gemini 3.1 Pro Preview, from Google, has a 195K-token context window and is priced at $2.3030 per 1M input tokens and $13.8178 per 1M output tokens on Yunshu Router (prices as of 2026-11-21).

Kimi K2.7 Code, from Moonshot AI, has a 256K-token context window and is priced at $1.1515 per 1M input tokens and $4.7831 per 1M output tokens on Yunshu Router (prices as of 2026-11-21).

AttributeGemini 3.1 Pro PreviewKimi K2.7 Code
Context window195K tokens256K tokens
Price$2.3030 / M input, $13.8178 / M output$1.1515 / M input, $4.7831 / M output
Provided byGoogleMoonshot AI
Model pageGemini 3.1 Pro Preview details, setup and pricingKimi K2.7 Code details, setup and pricing

USD per 1M tokens, prices as of 2026-11-21. Input types are what each model's maker lists. "Highlight best" marks the lowest price and the largest context among the models shown, in green.

More comparisons

Compare any models →