Skip to content

Gemini 3.1 Pro Preview vs GPT-5.4

Compare Gemini 3.1 Pro Preview from Google and GPT-5.4 from OpenAI on price, context length and features. Use both through one Yunshu Router API key.

Google
OpenAI
Good for
Hard reasoning · Coding agents · Long context · Images and screenshots
Coding agents · Long context · Images and screenshots
Overview
Model ID
gemini-3.1-pro-preview
gpt-5.4
Availability
Available
Available
Context length
195K tokens
266K tokens
Reasoning
Always on
Can be switched off
Reads
text, image, file, audio, video
text, image
Writes
text
text
Tool calling
Yes
Yes
Price per 1M tokens
Input
$2.3030
$2.8787
Output
$13.8178
$17.2723
Cached input
$0.2303
$0.2879
Model
Google
OpenAI
Good forHard reasoning · Coding agents · Long context · Images and screenshotsCoding agents · Long context · Images and screenshots
Overview
Model IDgemini-3.1-pro-previewgpt-5.4
AvailabilityAvailableAvailable
Context length195K tokens266K tokens
ReasoningAlways onCan be switched off
Readstext, image, file, audio, videotext, image
Writestexttext
Tool callingYesYes
Price per 1M tokens
Input$2.3030$2.8787
Output$13.8178$17.2723
Cached input$0.2303$0.2879

Analysis

Gemini 3.1 Pro Preview vs GPT-5.4: side-by-side summary

Gemini 3.1 Pro Preview and GPT-5.4 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).

GPT-5.4, from OpenAI, has a 266K-token context window and is priced at $2.8787 per 1M input tokens and $17.2723 per 1M output tokens on Yunshu Router (prices as of 2026-11-21).

AttributeGemini 3.1 Pro PreviewGPT-5.4
Context window195K tokens266K tokens
Price$2.3030 / M input, $13.8178 / M output$2.8787 / M input, $17.2723 / M output
Provided byGoogleOpenAI
Model pageGemini 3.1 Pro Preview details, setup and pricingGPT-5.4 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 →