Skip to content
  • Models
  • Rankings
  • Ori
Sign Up
Sign Up
OpenRouterOpenRouter
© 2026 OpenRouter, Inc

Product

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

Company

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

Developer

  • Documentation
  • API Reference
  • Developer Platform
  • Status

Connect

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

Claude Haiku 4.5 vs GPT-5.1-Codex-Max

Compare Claude Haiku 4.5 from Anthropic and GPT-5.1-Codex-Max from OpenAI on key metrics including benchmarks, price, context length, and other model features. Access both models and hundreds of others through the OpenRouter API.

Favicon for anthropic
Claude Haiku 4.5
Favicon for openai
GPT-5.1-Codex-Max
Favicon for anthropic
Claude Haiku 4.5
Favicon for openai
GPT-5.1-Codex-Max

Overview

Claude Haiku 4.5
Author
Anthropic
GPT-5.1-Codex-Max
Author
OpenAI
Claude Haiku 4.5
Context length
200Ktokens
GPT-5.1-Codex-Max
Context length
400Ktokens
Claude Haiku 4.5
Reasoning
GPT-5.1-Codex-Max
Reasoning
Claude Haiku 4.5
Input modalities
GPT-5.1-Codex-Max
Input modalities
Claude Haiku 4.5
Output modalities
GPT-5.1-Codex-Max
Output modalities

Claude Haiku 4.5 vs GPT-5.1-Codex-Max: side-by-side summary

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

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

GPT-5.1-Codex-Max, from OpenAI, has a 400,000-token context window and is priced at $1.25/M tokens input, $10/M tokens output on OpenRouter.

Context window
  • Claude Haiku 4.5: 200,000 tokens
  • GPT-5.1-Codex-Max: 400,000 tokens
Price
  • Claude Haiku 4.5: $1/M tokens input, $5/M tokens output
  • GPT-5.1-Codex-Max: $1.25/M tokens input, $10/M tokens output
Provided by
  • Claude Haiku 4.5: Anthropic
  • GPT-5.1-Codex-Max: OpenAI
  • model details, providers and pricing
Claude Haiku 4.5
model details, providers and pricing
GPT-5.1-Codex-Max