Claude Sonnet 5 vs GPT-5

A side-by-side comparison of Claude Sonnet 5 and GPT-5 — intelligence, context, capabilities, and price.

Spec
Claude Sonnet 5 logoClaude Sonnet 5
GPT-5 logoGPT-5
Context window1M400K
Streaming
Reasoning
Tool use
Web search
Vision (image input)
Document input
Video
Audio
Claude Sonnet 5 pricing
  • Input$2 / 1M tokens
  • Cached input$0.2 / 1M tokens
  • 5m cache write$2.5 / 1M tokens
  • 1h cache write$4 / 1M tokens
  • Output$10 / 1M tokens
  • From Sep 1, 2026 · Input$3 / 1M tokens
  • From Sep 1, 2026 · Cached input$0.3 / 1M tokens
  • From Sep 1, 2026 · 5m cache write$3.75 / 1M tokens
  • From Sep 1, 2026 · 1h cache write$6 / 1M tokens
  • From Sep 1, 2026 · Output$15 / 1M tokens
  • Web search (when used)$10 / 1,000 searchs

Provider-equivalent rates. Higher reasoning can use more output tokens. TryAI charges a one-credit minimum and rounds each run's aggregate cost up once.

View Claude Sonnet 5details →
GPT-5 pricing
  • Input$1.25 / 1M tokens
  • Cached input$0.125 / 1M tokens
  • Output$10 / 1M tokens
  • Web search (when used)$10 / 1,000 calls

Provider-equivalent rates. Higher reasoning can use more output tokens. TryAI charges a one-credit minimum and rounds each run's aggregate cost up once.

View GPT-5details →

Claude Sonnet 5 vs GPT-5: FAQ

Is Claude Sonnet 5 better than GPT-5?
Anthropic's current fast workhorse — near-Opus quality at much lower latency and cost. OpenAI workhorse — strong general purpose at lower cost than 5.5. The best choice depends on your workload — compare context window, capabilities, and price above, or try both on TryAI.
Which is cheaper, Claude Sonnet 5 or GPT-5?
See the pricing rows above for live per-token or per-generation costs. TryAI bills both from one pay-as-you-go balance.