# Claude Sonnet 5 vs GPT-5.4 Nano

Canonical: https://weaveos.com/models/compare/anthropic--claude-sonnet-5-vs-openai--gpt-5.4-nano

Catalog checked: Nov 27, 2026.

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

## Routing trade-offs

- **Benchmark results.** Claude Sonnet 5 and GPT-5.4 Nano scored 78.261% and 67.391%, 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 $4.50 for Claude Sonnet 5 and $0.5125 for GPT-5.4 Nano.
- **Context window.** Claude Sonnet 5 lists 1,000,000 tokens of context. GPT-5.4 Nano lists 400,000 tokens. Reserve space for the output before routing long inputs.

## Model specifications

| Specification | Claude Sonnet 5 | GPT-5.4 Nano |
| --- | --- | --- |
| Catalog status | Listed | Listed |
| Catalog model ID | anthropic/claude-sonnet-5 | openai/gpt-5.4-nano |
| Provider | Anthropic | OpenAI |
| Context window | 1,000,000 tokens | 400,000 tokens |
| Max output | 128,000 tokens | 128,000 tokens |
| Input modalities | Text, Image, File | File, Image, Text |
| 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 | Jun 30, 2026 | Mar 17, 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 Sonnet 5 | GPT-5.4 Nano |
| --- | --- | --- |
| Uncached input | $2.00 | $0.20 |
| Output | $10.00 | $1.25 |
| Cache read | $0.20 | $0.02 |
| Cache write | $2.50 | 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 | Claude Sonnet 5 | GPT-5.4 Nano | Evaluation group | Claude Sonnet 5 date or snapshot | GPT-5.4 Nano date or snapshot | Claude Sonnet 5 configuration | GPT-5.4 Nano configuration | Result source | Methodology |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| Code Completion | 78.261% | 67.391% | livebench:v1:20260625:code\_completion:% | Suite release Jun 25, 2026 · run date unavailable | Suite release Jun 25, 2026 · run date unavailable | claude-sonnet-5-xhigh-effort | gpt-5.4-nano-xhigh | https://livebench.ai/v1/table\_2026\_06\_25.csv | https://github.com/LiveBench/LiveBench |
| Code Generation | 83.099% | 74.286% | livebench:v1:20260625:code\_generation:% | Suite release Jun 25, 2026 · run date unavailable | Suite release Jun 25, 2026 · run date unavailable | claude-sonnet-5-xhigh-effort | gpt-5.4-nano-xhigh | https://livebench.ai/v1/table\_2026\_06\_25.csv | https://github.com/LiveBench/LiveBench |
| Javascript | 68.182% | 63.636% | livebench:v1:20260625:javascript:% | Suite release Jun 25, 2026 · run date unavailable | Suite release Jun 25, 2026 · run date unavailable | claude-sonnet-5-xhigh-effort | gpt-5.4-nano-xhigh | https://livebench.ai/v1/table\_2026\_06\_25.csv | https://github.com/LiveBench/LiveBench |
| Python | 60% | 50% | livebench:v1:20260625:python:% | Suite release Jun 25, 2026 · run date unavailable | Suite release Jun 25, 2026 · run date unavailable | claude-sonnet-5-xhigh-effort | gpt-5.4-nano-xhigh | https://livebench.ai/v1/table\_2026\_06\_25.csv | https://github.com/LiveBench/LiveBench |
| Typescript | 50% | 26.667% | livebench:v1:20260625:typescript:% | Suite release Jun 25, 2026 · run date unavailable | Suite release Jun 25, 2026 · run date unavailable | claude-sonnet-5-xhigh-effort | gpt-5.4-nano-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 | claude-sonnet-5-xhigh-effort | gpt-5.4-nano-xhigh | https://livebench.ai/v1/table\_2026\_06\_25.csv | https://github.com/LiveBench/LiveBench |
| Connections | 95.5% | 94.388% | livebench:v1:20260625:connections:% | Suite release Jun 25, 2026 · run date unavailable | Suite release Jun 25, 2026 · run date unavailable | claude-sonnet-5-xhigh-effort | gpt-5.4-nano-xhigh | https://livebench.ai/v1/table\_2026\_06\_25.csv | https://github.com/LiveBench/LiveBench |
| Consecutive Events | 74.741% | 54.301% | livebench:v1:20260625:consecutive\_events:% | Suite release Jun 25, 2026 · run date unavailable | Suite release Jun 25, 2026 · run date unavailable | claude-sonnet-5-xhigh-effort | gpt-5.4-nano-xhigh | https://livebench.ai/v1/table\_2026\_06\_25.csv | https://github.com/LiveBench/LiveBench |
| Integrals With Game | 88% | 82.828% | livebench:v1:20260625:integrals\_with\_game:% | Suite release Jun 25, 2026 · run date unavailable | Suite release Jun 25, 2026 · run date unavailable | claude-sonnet-5-xhigh-effort | gpt-5.4-nano-xhigh | https://livebench.ai/v1/table\_2026\_06\_25.csv | https://github.com/LiveBench/LiveBench |
| Logic With Navigation | 86% | 64% | livebench:v1:20260625:logic\_with\_navigation:% | Suite release Jun 25, 2026 · run date unavailable | Suite release Jun 25, 2026 · run date unavailable | claude-sonnet-5-xhigh-effort | gpt-5.4-nano-xhigh | https://livebench.ai/v1/table\_2026\_06\_25.csv | https://github.com/LiveBench/LiveBench |
| Math Comp | 95.098% | 95.098% | livebench:v1:20260625:math\_comp:% | Suite release Jun 25, 2026 · run date unavailable | Suite release Jun 25, 2026 · run date unavailable | claude-sonnet-5-xhigh-effort | gpt-5.4-nano-xhigh | https://livebench.ai/v1/table\_2026\_06\_25.csv | https://github.com/LiveBench/LiveBench |
| Olympiad | 90.671% | 87.982% | livebench:v1:20260625:olympiad:% | Suite release Jun 25, 2026 · run date unavailable | Suite release Jun 25, 2026 · run date unavailable | claude-sonnet-5-xhigh-effort | gpt-5.4-nano-xhigh | https://livebench.ai/v1/table\_2026\_06\_25.csv | https://github.com/LiveBench/LiveBench |
| Paraphrase | 61.25% | 66.649% | livebench:v1:20260625:paraphrase:% | Suite release Jun 25, 2026 · run date unavailable | Suite release Jun 25, 2026 · run date unavailable | claude-sonnet-5-xhigh-effort | gpt-5.4-nano-xhigh | https://livebench.ai/v1/table\_2026\_06\_25.csv | https://github.com/LiveBench/LiveBench |
| Plot Unscrambling | 53.411% | 39.133% | livebench:v1:20260625:plot\_unscrambling:% | Suite release Jun 25, 2026 · run date unavailable | Suite release Jun 25, 2026 · run date unavailable | claude-sonnet-5-xhigh-effort | gpt-5.4-nano-xhigh | https://livebench.ai/v1/table\_2026\_06\_25.csv | https://github.com/LiveBench/LiveBench |
| Simplify | 60.65% | 62.75% | livebench:v1:20260625:simplify:% | Suite release Jun 25, 2026 · run date unavailable | Suite release Jun 25, 2026 · run date unavailable | claude-sonnet-5-xhigh-effort | gpt-5.4-nano-xhigh | https://livebench.ai/v1/table\_2026\_06\_25.csv | https://github.com/LiveBench/LiveBench |
| Spatial | 100% | 82% | livebench:v1:20260625:spatial:% | Suite release Jun 25, 2026 · run date unavailable | Suite release Jun 25, 2026 · run date unavailable | claude-sonnet-5-xhigh-effort | gpt-5.4-nano-xhigh | https://livebench.ai/v1/table\_2026\_06\_25.csv | https://github.com/LiveBench/LiveBench |
| Story Generation | 62.317% | 67.653% | livebench:v1:20260625:story\_generation:% | Suite release Jun 25, 2026 · run date unavailable | Suite release Jun 25, 2026 · run date unavailable | claude-sonnet-5-xhigh-effort | gpt-5.4-nano-xhigh | https://livebench.ai/v1/table\_2026\_06\_25.csv | https://github.com/LiveBench/LiveBench |
| Summarize | 71.217% | 71.767% | livebench:v1:20260625:summarize:% | Suite release Jun 25, 2026 · run date unavailable | Suite release Jun 25, 2026 · run date unavailable | claude-sonnet-5-xhigh-effort | gpt-5.4-nano-xhigh | https://livebench.ai/v1/table\_2026\_06\_25.csv | https://github.com/LiveBench/LiveBench |
| Tablejoin | 42.442% | 50.588% | livebench:v1:20260625:tablejoin:% | Suite release Jun 25, 2026 · run date unavailable | Suite release Jun 25, 2026 · run date unavailable | claude-sonnet-5-xhigh-effort | gpt-5.4-nano-xhigh | https://livebench.ai/v1/table\_2026\_06\_25.csv | https://github.com/LiveBench/LiveBench |
| Tablereformat | 98.039% | 98.039% | livebench:v1:20260625:tablereformat:% | Suite release Jun 25, 2026 · run date unavailable | Suite release Jun 25, 2026 · run date unavailable | claude-sonnet-5-xhigh-effort | gpt-5.4-nano-xhigh | 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-sonnet-5-xhigh-effort | gpt-5.4-nano-xhigh | https://livebench.ai/v1/table\_2026\_06\_25.csv | https://github.com/LiveBench/LiveBench |
| Typos | 76% | 54% | livebench:v1:20260625:typos:% | Suite release Jun 25, 2026 · run date unavailable | Suite release Jun 25, 2026 · run date unavailable | claude-sonnet-5-xhigh-effort | gpt-5.4-nano-xhigh | https://livebench.ai/v1/table\_2026\_06\_25.csv | https://github.com/LiveBench/LiveBench |
| Zebra Puzzle | 88% | 97.619% | livebench:v1:20260625:zebra\_puzzle:% | Suite release Jun 25, 2026 · run date unavailable | Suite release Jun 25, 2026 · run date unavailable | claude-sonnet-5-xhigh-effort | gpt-5.4-nano-xhigh | https://livebench.ai/v1/table\_2026\_06\_25.csv | https://github.com/LiveBench/LiveBench |

## Individual benchmark evidence

### Claude Sonnet 5

| Benchmark | Score | Evaluation group | Date or snapshot | Configuration | Split | Source model label | Provenance | Reuse note | Result source | Methodology | Notes |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| Long Agentic | 39% | livebench:v2:20261014:long\_agentic:% | Suite release Oct 14, 2026 · run date unavailable | claude-sonnet-5 | Unavailable | claude-sonnet-5 | 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 | 88.7% | livebench:v2:20261014:reasoning:% | Suite release Oct 14, 2026 · run date unavailable | claude-sonnet-5 | Unavailable | claude-sonnet-5 | 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 | 74.7% | livebench:v2:20261014:coding:% | Suite release Oct 14, 2026 · run date unavailable | claude-sonnet-5 | Unavailable | claude-sonnet-5 | 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 | 72% | livebench:v2:20261014:browser:% | Suite release Oct 14, 2026 · run date unavailable | claude-sonnet-5 | Unavailable | claude-sonnet-5 | 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 | 71.7% | livebench:v2:20261014:data\_analysis:% | Suite release Oct 14, 2026 · run date unavailable | claude-sonnet-5 | Unavailable | claude-sonnet-5 | 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 | 82.8% | livebench:v2:20261014:research:% | Suite release Oct 14, 2026 · run date unavailable | claude-sonnet-5 | Unavailable | claude-sonnet-5 | 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 | 82% | livebench:v2:20261014:design:% | Suite release Oct 14, 2026 · run date unavailable | claude-sonnet-5 | Unavailable | claude-sonnet-5 | 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. |

### GPT-5.4 Nano

No additional benchmark rows are available for this model ID.

## Weave Router catalog

| Model | Exact public catalog status | Router model ID |
| --- | --- | --- |
| Claude Sonnet 5 | Listed | claude-sonnet-5 |
| GPT-5.4 Nano | Listed | gpt-5.4-nano |

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-sonnet-5-vs-openai--gpt-5.4-nano/opengraph-image
- Anthropic logo: https://weaveos.com/models/logos/anthropic.svg
- Claude Sonnet 5 product mark: https://weaveos.com/models/logos/claude.svg
- OpenAI logo: https://weaveos.com/models/logos/openai.svg
- GPT-5.4 Nano product mark: https://weaveos.com/models/logos/openai.svg

## Model identities and sources

- Claude Sonnet 5 model ID: anthropic/claude-sonnet-5.
- Catalog revision ID: anthropic/claude-sonnet-5-20260630.
- 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-sonnet-5:batch. Input $1.00 and output $5.00 per million tokens. Source: https://openrouter.ai/api/v1/models
- Source: https://openrouter.ai/anthropic/claude-sonnet-5

- GPT-5.4 Nano model ID: openai/gpt-5.4-nano.
- Catalog revision ID: openai/gpt-5.4-nano-20260317.
- Knowledge cutoff: 2025-08-31.
- 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-nano:batch. Input $0.10 and output $0.625 per million tokens. Source: https://openrouter.ai/api/v1/models
- Source: https://openrouter.ai/openai/gpt-5.4-nano

- Claude Sonnet 5 profile: https://weaveos.com/models/anthropic--claude-sonnet-5
- GPT-5.4 Nano profile: https://weaveos.com/models/openai--gpt-5.4-nano
