Skip to content
OpenRouterOpenRouter
© 2026 OpenRouter, Inc

Product

  • Chat
  • Rankings
  • Benchmarks
  • Apps
  • Discover
  • Models
  • Providers
  • Pricing
  • Enterprise
  • Labs

Company

  • About
  • Blog
  • Careers
    Hiring
  • Privacy
  • Terms of Service
  • Support
  • Works With OR
  • Data

Developer

  • Documentation
  • API Reference
  • Developer Platform
  • Status

Connect

  • Discord
  • GitHub
  • LinkedIn
  • X
  • YouTube
  1. Home
  2. /
  3. Compare

Claude Sonnet 4.5 vs GPT-5 Codex: side-by-side summary

Claude Sonnet 4.5 and GPT-5 Codex are available through the OpenRouter API, so switching between them takes a model slug change rather than a new integration.

Claude Sonnet 4.5, from Anthropic, has a 1,000,000-token context window and is priced at $3/M tokens input, $15/M tokens output on OpenRouter.

GPT-5 Codex, from OpenAI, has a 400,000-token context window and is priced by the provider serving it on OpenRouter.

Context window
  • Claude Sonnet 4.5: 1,000,000 tokens
  • GPT-5 Codex: 400,000 tokens
Price
  • Claude Sonnet 4.5: $3/M tokens input, $15/M tokens output
  • GPT-5 Codex: Pricing varies by provider
Provided by
  • Claude Sonnet 4.5: Anthropic
  • GPT-5 Codex: OpenAI
  • Claude Sonnet 4.5 model details, providers and pricing
  • GPT-5 Codex model details, providers and pricing