GPT-5 vs Claude Opus 4.8: context and complete task cost

Compare GPT-5 and Opus 4.8 request limits, input-only subtotals, caching and escalation costs, with clear limits on provider benchmark comparisons.

By benchr Editorial Team · · · Changelog

GPT-5's global Standard token rates are lower than Opus 4.8's, while Opus has the larger documented context window. The choice depends on whether a complete task fits the request contract and passes review. A provider benchmark gap does not quantify the value of an extra attempt on your code or documents.

These are older named deployments. Anthropic still documents Opus 4.8 as active legacy and points new migrations toward Opus 5.5. OpenAI presents GPT-5 as a previous reasoning model. An existing integration can still need this comparison, but neither name should be presented as the provider's latest release.

Which requests fit?

OpenAI's gpt-5 record distinguishes an input maximum of 272,000 tokens from the 400,000 tokens combined window. Maximum output is 128,000 tokens. The combined window is not a larger input allowance.

For claude-opus-4-8, the recorded context is 1,000,000 tokens and ordinary output is capped at 128,000 tokens. A wider window can permit a different document workflow, but it does not establish that the model used every relevant passage correctly.

For a request that exceeds GPT-5's input limit, compare Opus's direct-context path with a GPT retrieval or partitioned path. Count index preparation, extra calls, missing evidence and review. For a request that fits both, hold the evidence and acceptance criteria constant before changing the architecture.

Keep input-only arithmetic separate from a task budget

Standard rates per million tokens are $1.25 input and $10.00 output for GPT-5, versus $5.00 and $25.00 for Opus 4.8. The following is explicitly an input-only monthly scenario: 500 million uncached tokens spread across eligible requests.

Hypothetical 500M-token input subtotal, excluding output and other charges
ModelInput subtotal
GPT-5$625
Opus 4.8$2,500

Those figures come from the shared pricing engine and are not complete monthly bills. Add billed output, retries, provider tools, regional terms and review costs. Output that already contains reasoning must not have reasoning added a second time.

Cache reads cost $0.125 for GPT-5 and $0.50 for Opus per million tokens. Eligibility, creation and expiration determine whether that rate applies to a given prefix. A stable prompt is not itself evidence that every request was a cache hit.

Opus 4.8 also has a separately billed fast mode. Its rate is not the ordinary Standard rate, and a published speed claim is not a deployment latency guarantee. Keep fast-mode, Batch and regional assumptions explicit in any quotation; an unsupported combination should remain an incomplete estimate.

What the published benchmarks cannot decide

The providers publish coding and reasoning evaluations with their own settings, tools and task protocols. They are not measured failure rates for your repository. A difference between those results cannot be converted directly into failed builds, engineer hours or production savings without a matched workflow evaluation.

No direct evaluation on this page establishes a writing, summarization or code-explanation winner. SWE-bench and GPQA do not measure those tasks. Test a blinded sample from your own workload and retain the prompts, model versions, outputs, failures and review labels before recommending one deployment.

Evaluate the complete attempt and escalation

For repository repair, start both systems from the same commit, give them the same issue and permissions, and require the relevant tests and a review of unintended changes. Include unresolved issues and interrupted runs. A patch that passes a narrow test but changes unrelated behavior is not an accepted outcome.

If a GPT attempt is followed by an Opus attempt, the task includes both charges and the work needed to prepare the escalation. Keep authoritative facts and tool results separate from opaque reasoning state; do not assume a conversation can be transferred by changing its model string.

Retain GPT-5 when it passes the required task within its request limits and operating budget. Evaluate Opus when its larger direct context or a demonstrated improvement resolves a named failure. If both pass, compare total accepted-task cost and operational complexity. If neither passes, another expensive call is not a substitute for missing evidence or a repaired integration.

Open the interactive comparison for the recorded fields, use the calculator for supported billing scenarios, and review the newer Opus contract before planning a fresh deployment. This article contains documentation-based analysis and hypothetical arithmetic; benchr did not run a provider comparison for this revision.

Changelog

  • 2026-10-15 — Reconstructed the legacy comparison with exact request boundaries, canonical input-only arithmetic and complete-attempt accounting. Removed unsupported accuracy recommendations and speed guarantees.
  • — Added a September 2026 note: Claude Opus 5 replaced Opus 4.8 at the same $5 / $25, the gpt-5 alias stays live, and its dated snapshot shuts down December 11, 2026. Reworded one line that called Opus 4.8 an option to evaluate on your own writing tasks.
  • — Corrected GPT-5 cached-input pricing to $0.125/1M and updated the caching comparison.
  • — Published. All prices and benchmarks verified against official OpenAI and Anthropic documentation.

Sources and documentation review

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

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