# Claude Opus 4.8 vs Gemini 3.1 Pro Preview

Canonical: https://weaveos.com/models/compare/anthropic--claude-opus-4.8-vs-google--gemini-3.1-pro-preview

Catalog checked: Nov 27, 2026.

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

## Routing trade-offs

- **Benchmark results.** Claude Opus 4.8 and Gemini 3.1 Pro Preview scored 84.783% and 78.261%, 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 $11.25 for Claude Opus 4.8 and $5.00 for Gemini 3.1 Pro Preview.
- **Context window.** Gemini 3.1 Pro Preview lists 1,048,576 tokens of context. Claude Opus 4.8 lists 1,000,000 tokens. Reserve space for the output before routing long inputs.

## Model specifications

| Specification | Claude Opus 4.8 | Gemini 3.1 Pro Preview |
| --- | --- | --- |
| Catalog status | Listed | Listed |
| Catalog model ID | anthropic/claude-opus-4.8 | google/gemini-3.1-pro-preview |
| Provider | Anthropic | Google |
| Context window | 1,000,000 tokens | 1,048,576 tokens |
| Max output | 128,000 tokens | 65,536 tokens |
| Input modalities | Text, Image, File | Audio, File, Image, Text, Video |
| 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 | May 27, 2026 | Feb 19, 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 | Claude Opus 4.8 | Gemini 3.1 Pro Preview |
| --- | --- | --- |
| Uncached input | $5.00 | $2.00 |
| Output | $25.00 | $12.00 |
| Cache read | $0.50 | $0.20 |
| Cache write | $6.25 | $0.375 |

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 | Claude Opus 4.8 | Gemini 3.1 Pro Preview | Evaluation group | Claude Opus 4.8 date or snapshot | Gemini 3.1 Pro Preview date or snapshot | Claude Opus 4.8 configuration | Gemini 3.1 Pro Preview configuration | Result source | Methodology |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| Code Completion | 84.783% | 78.261% | livebench:v1:20260625:code\_completion:% | Suite release Jun 25, 2026 · run date unavailable | Suite release Jun 25, 2026 · run date unavailable | claude-opus-4-8-max-effort | gemini-3.1-pro-preview-high | https://livebench.ai/v1/table\_2026\_06\_25.csv | https://github.com/LiveBench/LiveBench |
| Code Generation | 78.873% | 74.648% | livebench:v1:20260625:code\_generation:% | Suite release Jun 25, 2026 · run date unavailable | Suite release Jun 25, 2026 · run date unavailable | claude-opus-4-8-max-effort | gemini-3.1-pro-preview-high | https://livebench.ai/v1/table\_2026\_06\_25.csv | https://github.com/LiveBench/LiveBench |
| Javascript | 68.182% | 59.091% | livebench:v1:20260625:javascript:% | Suite release Jun 25, 2026 · run date unavailable | Suite release Jun 25, 2026 · run date unavailable | claude-opus-4-8-max-effort | gemini-3.1-pro-preview-high | 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 | claude-opus-4-8-max-effort | gemini-3.1-pro-preview-high | https://livebench.ai/v1/table\_2026\_06\_25.csv | https://github.com/LiveBench/LiveBench |
| Typescript | 33.333% | 23.333% | livebench:v1:20260625:typescript:% | Suite release Jun 25, 2026 · run date unavailable | Suite release Jun 25, 2026 · run date unavailable | claude-opus-4-8-max-effort | gemini-3.1-pro-preview-high | 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 | claude-opus-4-8-max-effort | gemini-3.1-pro-preview-high | https://livebench.ai/v1/table\_2026\_06\_25.csv | https://github.com/LiveBench/LiveBench |
| Connections | 99.333% | 100% | livebench:v1:20260625:connections:% | Suite release Jun 25, 2026 · run date unavailable | Suite release Jun 25, 2026 · run date unavailable | claude-opus-4-8-max-effort | gemini-3.1-pro-preview-high | https://livebench.ai/v1/table\_2026\_06\_25.csv | https://github.com/LiveBench/LiveBench |
| Consecutive Events | 52.905% | 85.239% | livebench:v1:20260625:consecutive\_events:% | Suite release Jun 25, 2026 · run date unavailable | Suite release Jun 25, 2026 · run date unavailable | claude-opus-4-8-max-effort | gemini-3.1-pro-preview-high | https://livebench.ai/v1/table\_2026\_06\_25.csv | https://github.com/LiveBench/LiveBench |
| Integrals With Game | 89% | 78% | livebench:v1:20260625:integrals\_with\_game:% | Suite release Jun 25, 2026 · run date unavailable | Suite release Jun 25, 2026 · run date unavailable | claude-opus-4-8-max-effort | gemini-3.1-pro-preview-high | https://livebench.ai/v1/table\_2026\_06\_25.csv | https://github.com/LiveBench/LiveBench |
| Logic With Navigation | 78% | 72% | livebench:v1:20260625:logic\_with\_navigation:% | Suite release Jun 25, 2026 · run date unavailable | Suite release Jun 25, 2026 · run date unavailable | claude-opus-4-8-max-effort | gemini-3.1-pro-preview-high | https://livebench.ai/v1/table\_2026\_06\_25.csv | https://github.com/LiveBench/LiveBench |
| Math Comp | 98.039% | 96.078% | livebench:v1:20260625:math\_comp:% | Suite release Jun 25, 2026 · run date unavailable | Suite release Jun 25, 2026 · run date unavailable | claude-opus-4-8-max-effort | gemini-3.1-pro-preview-high | https://livebench.ai/v1/table\_2026\_06\_25.csv | https://github.com/LiveBench/LiveBench |
| Olympiad | 92.227% | 92.102% | livebench:v1:20260625:olympiad:% | Suite release Jun 25, 2026 · run date unavailable | Suite release Jun 25, 2026 · run date unavailable | claude-opus-4-8-max-effort | gemini-3.1-pro-preview-high | https://livebench.ai/v1/table\_2026\_06\_25.csv | https://github.com/LiveBench/LiveBench |
| Paraphrase | 67.867% | 79.867% | livebench:v1:20260625:paraphrase:% | Suite release Jun 25, 2026 · run date unavailable | Suite release Jun 25, 2026 · run date unavailable | claude-opus-4-8-max-effort | gemini-3.1-pro-preview-high | https://livebench.ai/v1/table\_2026\_06\_25.csv | https://github.com/LiveBench/LiveBench |
| Plot Unscrambling | 61.645% | 74.128% | livebench:v1:20260625:plot\_unscrambling:% | Suite release Jun 25, 2026 · run date unavailable | Suite release Jun 25, 2026 · run date unavailable | claude-opus-4-8-max-effort | gemini-3.1-pro-preview-high | https://livebench.ai/v1/table\_2026\_06\_25.csv | https://github.com/LiveBench/LiveBench |
| Simplify | 62% | 71.05% | livebench:v1:20260625:simplify:% | Suite release Jun 25, 2026 · run date unavailable | Suite release Jun 25, 2026 · run date unavailable | claude-opus-4-8-max-effort | gemini-3.1-pro-preview-high | 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 | claude-opus-4-8-max-effort | gemini-3.1-pro-preview-high | https://livebench.ai/v1/table\_2026\_06\_25.csv | https://github.com/LiveBench/LiveBench |
| Story Generation | 80.6% | 77.25% | livebench:v1:20260625:story\_generation:% | Suite release Jun 25, 2026 · run date unavailable | Suite release Jun 25, 2026 · run date unavailable | claude-opus-4-8-max-effort | gemini-3.1-pro-preview-high | https://livebench.ai/v1/table\_2026\_06\_25.csv | https://github.com/LiveBench/LiveBench |
| Summarize | 77.667% | 88.233% | livebench:v1:20260625:summarize:% | Suite release Jun 25, 2026 · run date unavailable | Suite release Jun 25, 2026 · run date unavailable | claude-opus-4-8-max-effort | gemini-3.1-pro-preview-high | https://livebench.ai/v1/table\_2026\_06\_25.csv | https://github.com/LiveBench/LiveBench |
| Tablejoin | 51.077% | 52.346% | livebench:v1:20260625:tablejoin:% | Suite release Jun 25, 2026 · run date unavailable | Suite release Jun 25, 2026 · run date unavailable | claude-opus-4-8-max-effort | gemini-3.1-pro-preview-high | https://livebench.ai/v1/table\_2026\_06\_25.csv | https://github.com/LiveBench/LiveBench |
| Tablereformat | 94.118% | 98.039% | livebench:v1:20260625:tablereformat:% | Suite release Jun 25, 2026 · run date unavailable | Suite release Jun 25, 2026 · run date unavailable | claude-opus-4-8-max-effort | gemini-3.1-pro-preview-high | https://livebench.ai/v1/table\_2026\_06\_25.csv | https://github.com/LiveBench/LiveBench |
| Theory Of Mind | 80.769% | 80.769% | livebench:v1:20260625:theory\_of\_mind:% | Suite release Jun 25, 2026 · run date unavailable | Suite release Jun 25, 2026 · run date unavailable | claude-opus-4-8-max-effort | gemini-3.1-pro-preview-high | https://livebench.ai/v1/table\_2026\_06\_25.csv | https://github.com/LiveBench/LiveBench |
| Typos | 78% | 82% | livebench:v1:20260625:typos:% | Suite release Jun 25, 2026 · run date unavailable | Suite release Jun 25, 2026 · run date unavailable | claude-opus-4-8-max-effort | gemini-3.1-pro-preview-high | https://livebench.ai/v1/table\_2026\_06\_25.csv | https://github.com/LiveBench/LiveBench |
| Zebra Puzzle | 100% | 85.25% | livebench:v1:20260625:zebra\_puzzle:% | Suite release Jun 25, 2026 · run date unavailable | Suite release Jun 25, 2026 · run date unavailable | claude-opus-4-8-max-effort | gemini-3.1-pro-preview-high | https://livebench.ai/v1/table\_2026\_06\_25.csv | https://github.com/LiveBench/LiveBench |

## Individual benchmark evidence

### Claude Opus 4.8

| Benchmark | Score | Evaluation group | Date or snapshot | Configuration | Split | Source model label | Provenance | Reuse note | Result source | Methodology | Notes |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| Long Agentic | 48.3% | livebench:v2:20261014:long\_agentic:% | Suite release Oct 14, 2026 · run date unavailable | claude-opus-4.8 | Unavailable | claude-opus-4.8 | official\_leaderboard | Apache-2.0 repository; verify release-file terms before bulk redistribution | https://livebench.ai/data/20261014/table.csv | https://github.com/LiveBench/LiveBench | Official LiveBench release table. Scores are release-specific and should not be merged across dates without labeling the release. |
| Reasoning | 89.2% | livebench:v2:20261014:reasoning:% | Suite release Oct 14, 2026 · run date unavailable | claude-opus-4.8 | Unavailable | claude-opus-4.8 | official\_leaderboard | Apache-2.0 repository; verify release-file terms before bulk redistribution | https://livebench.ai/data/20261014/table.csv | https://github.com/LiveBench/LiveBench | Official LiveBench release table. Scores are release-specific and should not be merged across dates without labeling the release. |
| Coding | 77.3% | livebench:v2:20261014:coding:% | Suite release Oct 14, 2026 · run date unavailable | claude-opus-4.8 | Unavailable | claude-opus-4.8 | official\_leaderboard | Apache-2.0 repository; verify release-file terms before bulk redistribution | https://livebench.ai/data/20261014/table.csv | https://github.com/LiveBench/LiveBench | Official LiveBench release table. Scores are release-specific and should not be merged across dates without labeling the release. |
| Browser | 96% | livebench:v2:20261014:browser:% | Suite release Oct 14, 2026 · run date unavailable | claude-opus-4.8 | Unavailable | claude-opus-4.8 | official\_leaderboard | Apache-2.0 repository; verify release-file terms before bulk redistribution | https://livebench.ai/data/20261014/table.csv | https://github.com/LiveBench/LiveBench | Official LiveBench release table. Scores are release-specific and should not be merged across dates without labeling the release. |
| Data Analysis | 66% | livebench:v2:20261014:data\_analysis:% | Suite release Oct 14, 2026 · run date unavailable | claude-opus-4.8 | Unavailable | claude-opus-4.8 | official\_leaderboard | Apache-2.0 repository; verify release-file terms before bulk redistribution | https://livebench.ai/data/20261014/table.csv | https://github.com/LiveBench/LiveBench | Official LiveBench release table. Scores are release-specific and should not be merged across dates without labeling the release. |
| Research | 81.8% | livebench:v2:20261014:research:% | Suite release Oct 14, 2026 · run date unavailable | claude-opus-4.8 | Unavailable | claude-opus-4.8 | official\_leaderboard | Apache-2.0 repository; verify release-file terms before bulk redistribution | https://livebench.ai/data/20261014/table.csv | https://github.com/LiveBench/LiveBench | Official LiveBench release table. Scores are release-specific and should not be merged across dates without labeling the release. |
| Design | 78.8% | livebench:v2:20261014:design:% | Suite release Oct 14, 2026 · run date unavailable | claude-opus-4.8 | Unavailable | claude-opus-4.8 | official\_leaderboard | Apache-2.0 repository; verify release-file terms before bulk redistribution | https://livebench.ai/data/20261014/table.csv | https://github.com/LiveBench/LiveBench | Official LiveBench release table. Scores are release-specific and should not be merged across dates without labeling the release. |

### Gemini 3.1 Pro Preview

No additional benchmark rows are available for this model ID.

## Weave Router catalog

| Model | Exact public catalog status | Router model ID |
| --- | --- | --- |
| Claude Opus 4.8 | Listed | claude-opus-4-8 |
| Gemini 3.1 Pro Preview | Unverified | Unavailable |

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/anthropic--claude-opus-4.8-vs-google--gemini-3.1-pro-preview/opengraph-image
- Anthropic logo: https://weaveos.com/models/logos/anthropic.svg
- Claude Opus 4.8 product mark: https://weaveos.com/models/logos/claude.svg
- Google logo: https://weaveos.com/models/logos/google-color.svg
- Gemini 3.1 Pro Preview product mark: https://weaveos.com/models/logos/gemini.svg

## Model identities and sources

- Claude Opus 4.8 model ID: anthropic/claude-opus-4.8.
- Catalog revision ID: anthropic/claude-4.8-opus-20260528.
- Knowledge cutoff: Unavailable.
- Endpoint variant: Standard model record.
- Advertised API parameters: include\_reasoning, max\_completion\_tokens, max\_tokens, reasoning, reasoning\_effort, response\_format, stop, structured\_outputs, tool\_choice, tools, verbosity.
- batch endpoint anthropic/claude-opus-4.8:batch. Input $2.50 and output $12.50 per million tokens. Source: https://openrouter.ai/api/v1/models
- Source: https://openrouter.ai/anthropic/claude-opus-4.8

- 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

- Claude Opus 4.8 profile: https://weaveos.com/models/anthropic--claude-opus-4.8
- Gemini 3.1 Pro Preview profile: https://weaveos.com/models/google--gemini-3.1-pro-preview
