Claude Sonnet 4.6 vs GPT-5: request limits and review costs

Compare Sonnet 4.6 and GPT-5 input and output limits, current API rates, cache assumptions and code-review costs without inferring quality from benchmarks.

By benchr Editorial Team · · · Changelog

For an existing text or coding integration that fits both request contracts, GPT-5 has the lower listed token rates. Sonnet 4.6's larger context can matter when the actual evidence does not fit GPT-5's input allowance. Neither a wider window nor a published coding score establishes that the answer will pass your acceptance tests.

This comparison covers the named API deployments, not their providers' newest models. Anthropic lists Sonnet 4.6 as an active legacy model and recommends considering Sonnet 5.5. OpenAI describes GPT-5 as a previous model. Keep these routes useful for maintenance and procurement comparisons without treating them as a current-generation ranking.

Check the assembled request before comparing quality

The Claude API ID is claude-sonnet-4-6. Its recorded context is 1,000,000 tokens, with an ordinary output cap of 128,000 tokens. The current model overview corrects the older output limit shown in this comparison; the separate extended Batch beta is a different request profile.

For gpt-5, OpenAI documents a 400,000 tokens combined window, a separate maximum input of 272,000 tokens, and up to 128,000 tokens of output. The input limit is explicitly recorded; it is not inferred by subtracting output from context.

Count system instructions, conversation history, tool declarations, retrieved material and the current question using the intended model. A file's character count is not a cross-provider token count. If the input fits only Sonnet, compare that direct request with a complete GPT retrieval or partitioning workflow, including its extra calls and failure modes.

Price the input/output distribution you actually expect

First-party global Standard rates per million tokens are $3.00 input and $15.00 output for Sonnet, versus $1.25 and $10.00 for GPT-5. Cache-read rates are $0.30 and $0.125, respectively.

Consider a hypothetical review service with 20,000 requests a month, each using 15,000 input and 3,000 billed output tokens. In the warm-cache case, 10,000 of each request's input tokens are eligible cache reads. That is a specified usage mix, not a measured cache-hit rate or a claim that the models produce equivalent reviews.

Monthly token arithmetic for the stated review-service fixture
ModelNo cacheExisting warm prefix
GPT-5$975$750
Sonnet 4.6$1,800$1,260

The canonical engine renders these amounts. They exclude cache creation, tools, retries, regional pricing and human review. Output already includes billed reasoning; adding it again would double-count it. Recompute from actual returned usage when running a trial, and include cold starts when estimating a real cache strategy.

Keep the client and failure behavior in the comparison

A system built around OpenAI Responses has different message, tool-result and stream-processing code from a Claude Messages integration. An adapter can normalize parts of the application interface, but it cannot make provider-specific reasoning state or configuration portable. Preserve original protocol blocks where required and test follow-up turns rather than only first answers.

Anthropic documents adaptive thinking on Sonnet 4.6, with the older extended-thinking configuration deprecated. GPT-5 exposes its own reasoning-effort settings. A similarly named setting is not an equal compute budget. Allow enough billed output for reasoning and preserve truncation, refusal, timeout and interrupted-stream outcomes.

Choose from workload evidence

For a code-review bot, prepare known defects, clean changes and ambiguous cases in the same held-out set. Measure missed defects, unsupported accusations, review time and accepted-task cost. An agentic repository benchmark does not directly score review comments or establish how many bugs this service would catch.

For document questions, require evidence references and include questions the documents cannot answer. A large context is useful only if the workflow retrieves and interprets the relevant evidence. Compare complete retrieval and direct-context paths under the same acceptance rule.

Keep GPT-5 in the shortlist when its request limits and existing client fit and its evaluated results meet the requirement. Keep Sonnet 4.6 when its larger direct context or demonstrated behavior resolves a specific constraint. For a new migration, also examine Sonnet 5.5's changed protocol. Use the comparison workspace and calculator to inspect the recorded contracts; no provider inference or matched quality test was run for this article.

Changelog

  • 2026-10-15 — Rebuilt the comparison around separate input allowances, the corrected Sonnet output limit, engine-derived review-service costs and client migration constraints. Removed unsupported throughput estimates and benchmark-to-workload inference.
  • September 11, 2026 — Added a September 2026 note: Claude Sonnet 5 replaced Sonnet 4.6 at $2 / $10, the gpt-5 alias stays live, and its dated gpt-5-2025-08-07 snapshot shuts down December 11, 2026. The comparison's figures are unchanged.
  • July 24, 2026 — Corrected GPT-5 cached-input pricing to $0.125/1M and updated the cache-cost comparison.
  • June 10, 2026 — Expanded from a spec table into a full comparison: cost math on a concrete workload, where each model wins, and a verdict. Page re-indexed.
  • June 6, 2026 — Published as a spec-table stub (noindexed pending expansion).

Sources and documentation review

Documentation review dates are recorded per source. No provider inference or independent benchmark replication was performed for this revision.

  1. Sonnet 4.6 current legacy model contract — read
  2. First-party Claude pricing and billing scope — read
  3. GPT-5 model, separate input allowance and current rates — read