# Gemini 3.1 Pro Preview vs GPT-5.4

Canonical: https://weaveos.com/models/compare/google--gemini-3.1-pro-preview-vs-openai--gpt-5.4

Catalog checked: Nov 27, 2026.

Methodology: https://weaveos.com/models/methodology.

## Routing trade-offs

- **Benchmark results.** Gemini 3.1 Pro Preview and GPT-5.4 scored 78.261% and 80.435%, respectively, on Code Completion. Use the test setup below to check whether it matches your workload.
- **Token cost.** For 1 million input tokens and 250,000 output tokens, the listed rates estimate $5.00 for Gemini 3.1 Pro Preview and $6.25 for GPT-5.4.
- **Context window.** GPT-5.4 lists 1,050,000 tokens of context. Gemini 3.1 Pro Preview lists 1,048,576 tokens. Reserve space for the output before routing long inputs.

## Model specifications

| Specification | Gemini 3.1 Pro Preview | GPT-5.4 |
| --- | --- | --- |
| Catalog status | Listed | Listed |
| Catalog model ID | google/gemini-3.1-pro-preview | openai/gpt-5.4 |
| Provider | Google | OpenAI |
| Context window | 1,048,576 tokens | 1,050,000 tokens |
| Max output | 65,536 tokens | 128,000 tokens |
| Input modalities | Audio, File, Image, Text, Video | Text, Image, File |
| Output modalities | Text | Text |
| Reasoning controls | Listed | Listed |
| Tool calling | Listed | Listed |
| Structured outputs | Listed | Listed |
| Serving endpoints | /api/v1/chat/completions, /api/v1/completions, /api/v1/messages, /api/v1/responses | /api/v1/chat/completions, /api/v1/completions, /api/v1/messages, /api/v1/responses |
| Catalog listing date | Feb 19, 2026 | Mar 5, 2026 |

## Token pricing

OpenRouter snapshot rates in USD per million tokens. Rates and billing can vary with API endpoint, volume, tier, tools, and cache settings. Prices do not represent Weave plans. Catalog source: https://openrouter.ai/api/v1/models.

| USD per million tokens | Gemini 3.1 Pro Preview | GPT-5.4 |
| --- | --- | --- |
| Uncached input | $2.00 | $2.50 |
| Output | $12.00 | $15.00 |
| Cache read | $0.20 | $0.25 |
| Cache write | $0.375 | Unavailable |

Cost estimate formula: ((input tokens × uncached input USD per million) + (output tokens × output USD per million)) ÷ 1,000,000. The overview uses 1,000,000 input tokens and 250,000 output tokens.

## Shared benchmark results

Shared rows require the same benchmark source snapshot, metric, score unit, and evaluation group. Reasoning settings and test configurations can differ. Benchmarks describe the published runs.

| Benchmark | Gemini 3.1 Pro Preview | GPT-5.4 | Evaluation group | Gemini 3.1 Pro Preview date or snapshot | GPT-5.4 date or snapshot | Gemini 3.1 Pro Preview configuration | GPT-5.4 configuration | Result source | Methodology |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| Code Completion | 78.261% | 80.435% | livebench:v1:20260625:code\_completion:% | Suite release Jun 25, 2026 · run date unavailable | Suite release Jun 25, 2026 · run date unavailable | gemini-3.1-pro-preview-high | gpt-5.4-xhigh | https://livebench.ai/v1/table\_2026\_06\_25.csv | https://github.com/LiveBench/LiveBench |
| Code Generation | 74.648% | 74.648% | livebench:v1:20260625:code\_generation:% | Suite release Jun 25, 2026 · run date unavailable | Suite release Jun 25, 2026 · run date unavailable | gemini-3.1-pro-preview-high | gpt-5.4-xhigh | https://livebench.ai/v1/table\_2026\_06\_25.csv | https://github.com/LiveBench/LiveBench |
| Javascript | 59.091% | 68.182% | livebench:v1:20260625:javascript:% | Suite release Jun 25, 2026 · run date unavailable | Suite release Jun 25, 2026 · run date unavailable | gemini-3.1-pro-preview-high | gpt-5.4-xhigh | https://livebench.ai/v1/table\_2026\_06\_25.csv | https://github.com/LiveBench/LiveBench |
| Python | 50% | 50% | livebench:v1:20260625:python:% | Suite release Jun 25, 2026 · run date unavailable | Suite release Jun 25, 2026 · run date unavailable | gemini-3.1-pro-preview-high | gpt-5.4-xhigh | https://livebench.ai/v1/table\_2026\_06\_25.csv | https://github.com/LiveBench/LiveBench |
| Typescript | 23.333% | 43.333% | livebench:v1:20260625:typescript:% | Suite release Jun 25, 2026 · run date unavailable | Suite release Jun 25, 2026 · run date unavailable | gemini-3.1-pro-preview-high | gpt-5.4-xhigh | https://livebench.ai/v1/table\_2026\_06\_25.csv | https://github.com/LiveBench/LiveBench |
| Amps Hard | 98% | 98% | livebench:v1:20260625:AMPS\_Hard:% | Suite release Jun 25, 2026 · run date unavailable | Suite release Jun 25, 2026 · run date unavailable | gemini-3.1-pro-preview-high | gpt-5.4-xhigh | https://livebench.ai/v1/table\_2026\_06\_25.csv | https://github.com/LiveBench/LiveBench |
| Connections | 100% | 100% | livebench:v1:20260625:connections:% | Suite release Jun 25, 2026 · run date unavailable | Suite release Jun 25, 2026 · run date unavailable | gemini-3.1-pro-preview-high | gpt-5.4-xhigh | https://livebench.ai/v1/table\_2026\_06\_25.csv | https://github.com/LiveBench/LiveBench |
| Consecutive Events | 85.239% | 86.19% | livebench:v1:20260625:consecutive\_events:% | Suite release Jun 25, 2026 · run date unavailable | Suite release Jun 25, 2026 · run date unavailable | gemini-3.1-pro-preview-high | gpt-5.4-xhigh | https://livebench.ai/v1/table\_2026\_06\_25.csv | https://github.com/LiveBench/LiveBench |
| Integrals With Game | 78% | 93% | livebench:v1:20260625:integrals\_with\_game:% | Suite release Jun 25, 2026 · run date unavailable | Suite release Jun 25, 2026 · run date unavailable | gemini-3.1-pro-preview-high | gpt-5.4-xhigh | https://livebench.ai/v1/table\_2026\_06\_25.csv | https://github.com/LiveBench/LiveBench |
| Logic With Navigation | 72% | 68% | livebench:v1:20260625:logic\_with\_navigation:% | Suite release Jun 25, 2026 · run date unavailable | Suite release Jun 25, 2026 · run date unavailable | gemini-3.1-pro-preview-high | gpt-5.4-xhigh | https://livebench.ai/v1/table\_2026\_06\_25.csv | https://github.com/LiveBench/LiveBench |
| Math Comp | 96.078% | 94.118% | livebench:v1:20260625:math\_comp:% | Suite release Jun 25, 2026 · run date unavailable | Suite release Jun 25, 2026 · run date unavailable | gemini-3.1-pro-preview-high | gpt-5.4-xhigh | https://livebench.ai/v1/table\_2026\_06\_25.csv | https://github.com/LiveBench/LiveBench |
| Olympiad | 92.102% | 91.474% | livebench:v1:20260625:olympiad:% | Suite release Jun 25, 2026 · run date unavailable | Suite release Jun 25, 2026 · run date unavailable | gemini-3.1-pro-preview-high | gpt-5.4-xhigh | https://livebench.ai/v1/table\_2026\_06\_25.csv | https://github.com/LiveBench/LiveBench |
| Paraphrase | 79.867% | 63.433% | livebench:v1:20260625:paraphrase:% | Suite release Jun 25, 2026 · run date unavailable | Suite release Jun 25, 2026 · run date unavailable | gemini-3.1-pro-preview-high | gpt-5.4-xhigh | https://livebench.ai/v1/table\_2026\_06\_25.csv | https://github.com/LiveBench/LiveBench |
| Plot Unscrambling | 74.128% | 65.901% | livebench:v1:20260625:plot\_unscrambling:% | Suite release Jun 25, 2026 · run date unavailable | Suite release Jun 25, 2026 · run date unavailable | gemini-3.1-pro-preview-high | gpt-5.4-xhigh | https://livebench.ai/v1/table\_2026\_06\_25.csv | https://github.com/LiveBench/LiveBench |
| Simplify | 71.05% | 70% | livebench:v1:20260625:simplify:% | Suite release Jun 25, 2026 · run date unavailable | Suite release Jun 25, 2026 · run date unavailable | gemini-3.1-pro-preview-high | gpt-5.4-xhigh | https://livebench.ai/v1/table\_2026\_06\_25.csv | https://github.com/LiveBench/LiveBench |
| Spatial | 98% | 98% | livebench:v1:20260625:spatial:% | Suite release Jun 25, 2026 · run date unavailable | Suite release Jun 25, 2026 · run date unavailable | gemini-3.1-pro-preview-high | gpt-5.4-xhigh | https://livebench.ai/v1/table\_2026\_06\_25.csv | https://github.com/LiveBench/LiveBench |
| Story Generation | 77.25% | 79.017% | livebench:v1:20260625:story\_generation:% | Suite release Jun 25, 2026 · run date unavailable | Suite release Jun 25, 2026 · run date unavailable | gemini-3.1-pro-preview-high | gpt-5.4-xhigh | https://livebench.ai/v1/table\_2026\_06\_25.csv | https://github.com/LiveBench/LiveBench |
| Summarize | 88.233% | 68.417% | livebench:v1:20260625:summarize:% | Suite release Jun 25, 2026 · run date unavailable | Suite release Jun 25, 2026 · run date unavailable | gemini-3.1-pro-preview-high | gpt-5.4-xhigh | https://livebench.ai/v1/table\_2026\_06\_25.csv | https://github.com/LiveBench/LiveBench |
| Tablejoin | 52.346% | 51.75% | livebench:v1:20260625:tablejoin:% | Suite release Jun 25, 2026 · run date unavailable | Suite release Jun 25, 2026 · run date unavailable | gemini-3.1-pro-preview-high | gpt-5.4-xhigh | https://livebench.ai/v1/table\_2026\_06\_25.csv | https://github.com/LiveBench/LiveBench |
| Tablereformat | 98.039% | 100% | livebench:v1:20260625:tablereformat:% | Suite release Jun 25, 2026 · run date unavailable | Suite release Jun 25, 2026 · run date unavailable | gemini-3.1-pro-preview-high | gpt-5.4-xhigh | https://livebench.ai/v1/table\_2026\_06\_25.csv | https://github.com/LiveBench/LiveBench |
| Theory Of Mind | 80.769% | 88.462% | livebench:v1:20260625:theory\_of\_mind:% | Suite release Jun 25, 2026 · run date unavailable | Suite release Jun 25, 2026 · run date unavailable | gemini-3.1-pro-preview-high | gpt-5.4-xhigh | https://livebench.ai/v1/table\_2026\_06\_25.csv | https://github.com/LiveBench/LiveBench |
| Typos | 82% | 82% | livebench:v1:20260625:typos:% | Suite release Jun 25, 2026 · run date unavailable | Suite release Jun 25, 2026 · run date unavailable | gemini-3.1-pro-preview-high | gpt-5.4-xhigh | https://livebench.ai/v1/table\_2026\_06\_25.csv | https://github.com/LiveBench/LiveBench |
| Zebra Puzzle | 85.25% | 98% | livebench:v1:20260625:zebra\_puzzle:% | Suite release Jun 25, 2026 · run date unavailable | Suite release Jun 25, 2026 · run date unavailable | gemini-3.1-pro-preview-high | gpt-5.4-xhigh | https://livebench.ai/v1/table\_2026\_06\_25.csv | https://github.com/LiveBench/LiveBench |

## Individual benchmark evidence

### Gemini 3.1 Pro Preview

No additional benchmark rows are available for this model ID.

### GPT-5.4

| Benchmark | Score | Evaluation group | Date or snapshot | Configuration | Split | Source model label | Provenance | Reuse note | Result source | Methodology | Notes |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| GPQA Diamond | 92.8% | official-pair:gpqa-diamond:percent | Mar 5, 2026 | xhigh effort | Unavailable | Unavailable | official\_release | Official score citation; source document terms apply | https://openai.com/index/introducing-gpt-5-4/ | https://openai.com/index/introducing-gpt-5-4/ | Official OpenAI release result. Cross-provider comparison uses the same benchmark label but different harness and effort settings. |
| MMMU-Pro | 81.2% | official-pair:mmmu-pro-no-tools:percent | Mar 5, 2026 | no tools; xhigh effort | Unavailable | Unavailable | official\_release | Official score citation; source document terms apply | https://openai.com/index/introducing-gpt-5-4/ | https://openai.com/index/introducing-gpt-5-4/ | Official OpenAI release result. Cross-provider comparison uses the same benchmark label but different harness and effort settings. |
| MMMU-Pro | 82.1% | official-pair:mmmu-pro-with-tools:percent | Mar 5, 2026 | with tools; xhigh effort | Unavailable | Unavailable | official\_release | Official score citation; source document terms apply | https://openai.com/index/introducing-gpt-5-4/ | https://openai.com/index/introducing-gpt-5-4/ | Official OpenAI release result. Cross-provider comparison uses the same benchmark label but different harness and effort settings. |
| OSWorld-Verified | 75% | official-pair:osworld-verified:percent | Mar 5, 2026 | research environment; xhigh effort | Unavailable | Unavailable | official\_release | Official score citation; source document terms apply | https://openai.com/index/introducing-gpt-5-4/ | https://openai.com/index/introducing-gpt-5-4/ | Official OpenAI release result. Cross-provider comparison uses the same benchmark label but different harness and effort settings. |
| Humanity's Last Exam | 39.8% | official-pair:humanitys-last-exam-no-tools:percent | Mar 5, 2026 | no tools; xhigh effort | Unavailable | Unavailable | official\_release | Official score citation; source document terms apply | https://openai.com/index/introducing-gpt-5-4/ | https://openai.com/index/introducing-gpt-5-4/ | Official OpenAI release result. Cross-provider comparison uses the same benchmark label but different harness and effort settings. |
| Humanity's Last Exam | 52.1% | official-pair:humanitys-last-exam-with-tools:percent | Mar 5, 2026 | with tools; xhigh effort | Unavailable | Unavailable | official\_release | Official score citation; source document terms apply | https://openai.com/index/introducing-gpt-5-4/ | https://openai.com/index/introducing-gpt-5-4/ | Official OpenAI release result. Cross-provider comparison uses the same benchmark label but different harness and effort settings. |
| Terminal-Bench 2.0 | 75.1% | official-pair:terminal-bench-2:percent | Mar 5, 2026 | xhigh effort; research environment | Unavailable | Unavailable | official\_release | Official score citation; source document terms apply | https://openai.com/index/introducing-gpt-5-4/ | https://openai.com/index/introducing-gpt-5-4/ | Official OpenAI release result. Cross-provider comparison uses the same benchmark label but different harness and effort settings. |
| SWE-Bench Pro (Public) | 57.7% | official:openai-gpt-5.4-release-2026-03:swe-bench-pro-public:percent | Mar 5, 2026 | xhigh effort | Unavailable | Unavailable | official\_release | Official score citation; source document terms apply | https://openai.com/index/introducing-gpt-5-4/ | https://openai.com/index/introducing-gpt-5-4/ | Model-specific official result. It is not treated as a head-to-head pair unless another row shares the exact benchmark and evaluation group. |
| GDPval | 83% | official:openai-gpt-5.4-release-2026-03:gdpval:percent | Mar 5, 2026 | xhigh effort | Unavailable | Unavailable | official\_release | Official score citation; source document terms apply | https://openai.com/index/introducing-gpt-5-4/ | https://openai.com/index/introducing-gpt-5-4/ | Model-specific official result. It is not treated as a head-to-head pair unless another row shares the exact benchmark and evaluation group. |
| BrowseComp | 82.7% | official:openai-gpt-5.4-release-2026-03:browsecomp:percent | Mar 5, 2026 | xhigh effort | Unavailable | Unavailable | official\_release | Official score citation; source document terms apply | https://openai.com/index/introducing-gpt-5-4/ | https://openai.com/index/introducing-gpt-5-4/ | Model-specific official result. It is not treated as a head-to-head pair unless another row shares the exact benchmark and evaluation group. |
| WebArena-Verified | 67.3% | official:openai-gpt-5.4-release-2026-03:webarena-verified:percent | Mar 5, 2026 | DOM + screenshot driven | Unavailable | Unavailable | official\_release | Official score citation; source document terms apply | https://openai.com/index/introducing-gpt-5-4/ | https://openai.com/index/introducing-gpt-5-4/ | Model-specific official result. It is not treated as a head-to-head pair unless another row shares the exact benchmark and evaluation group. |
| Online-Mind2Web | 92.8% | official:openai-gpt-5.4-release-2026-03:online-mind2web:percent | Mar 5, 2026 | screenshot-based observations | Unavailable | Unavailable | official\_release | Official score citation; source document terms apply | https://openai.com/index/introducing-gpt-5-4/ | https://openai.com/index/introducing-gpt-5-4/ | Model-specific official result. It is not treated as a head-to-head pair unless another row shares the exact benchmark and evaluation group. |

## Weave Router catalog

| Model | Exact public catalog status | Router model ID |
| --- | --- | --- |
| Gemini 3.1 Pro Preview | Unverified | Unavailable |
| GPT-5.4 | Listed | gpt-5.4 |

Public catalog source: https://router.weaveos.com/v1/router/models?scope=catalog. Checked Nov 27, 2026. Catalog presence does not determine plan or account eligibility.

## Visual assets

- Summary image (1200x630 PNG): https://weaveos.com/models/compare/google--gemini-3.1-pro-preview-vs-openai--gpt-5.4/opengraph-image
- Google logo: https://weaveos.com/models/logos/google-color.svg
- Gemini 3.1 Pro Preview product mark: https://weaveos.com/models/logos/gemini.svg
- OpenAI logo: https://weaveos.com/models/logos/openai.svg
- GPT-5.4 product mark: https://weaveos.com/models/logos/openai.svg

## Model identities and sources

- Gemini 3.1 Pro Preview model ID: google/gemini-3.1-pro-preview.
- Catalog revision ID: google/gemini-3.1-pro-preview-20260219.
- Knowledge cutoff: Unavailable.
- Endpoint variant: Standard model record.
- Advertised API parameters: include\_reasoning, max\_tokens, reasoning, reasoning\_effort, response\_format, seed, stop, structured\_outputs, temperature, tool\_choice, tools, top\_p.
- batch endpoint google/gemini-3.1-pro-preview:batch. Input $1.00 and output $6.00 per million tokens. Source: https://openrouter.ai/api/v1/models
- Source: https://openrouter.ai/google/gemini-3.1-pro-preview

- GPT-5.4 model ID: openai/gpt-5.4.
- Catalog revision ID: openai/gpt-5.4-20260305.
- Knowledge cutoff: Unavailable.
- Endpoint variant: Standard model record.
- Advertised API parameters: include\_reasoning, max\_completion\_tokens, max\_tokens, reasoning, reasoning\_effort, response\_format, seed, structured\_outputs, tool\_choice, tools, verbosity.
- batch endpoint openai/gpt-5.4:batch. Input $1.25 and output $7.50 per million tokens. Source: https://openrouter.ai/api/v1/models
- Source: https://openrouter.ai/openai/gpt-5.4

- Gemini 3.1 Pro Preview profile: https://weaveos.com/models/google--gemini-3.1-pro-preview
- GPT-5.4 profile: https://weaveos.com/models/openai--gpt-5.4
