Skip to content
Alpha
  • Models
  • Rankings
  • Ori

Footer

OpenRouterOpenRouter
© 2026 OpenRouter, Inc

Product

  • Chat
  • Rankings
  • Benchmarks
  • Apps
  • Discover
  • Models
  • Ori
  • Collections
  • Providers
  • Tools
  • Pricing
  • Business
  • EU routing
  • 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
  • AI Site Map

Connect

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

Claude Haiku 4.5 vs GPT-5.1-Codex-Mini

Compare Claude Haiku 4.5 from Anthropic and GPT-5.1-Codex-Mini 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-Mini
Favicon for anthropic
Claude Haiku 4.5
Favicon for openai
GPT-5.1-Codex-Mini

Overview

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

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

Claude Haiku 4.5 and GPT-5.1-Codex-Mini 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-Mini, from OpenAI, has a 400,000-token context window and is priced at $0.25/M tokens input, $2/M tokens output on OpenRouter.

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

Claude Haiku 4.5 vs GPT-5.1-Codex-Mini at a glance

Claude Haiku 4.5 vs GPT-5.1-Codex-Mini comparison
AttributeClaude Haiku 4.5GPT-5.1-Codex-Mini
Input price$1/M tokens$0.25/M tokens
Output price$5/M tokens$2/M tokens
Context window200,000 tokens400,000 tokens
Intelligence Index15.420.4
Coding IndexNot availableNot available
Agentic IndexNot availableNot available
Latency (p50)0.44 s4.15 s
Throughput (p50)88.0 tok/s62.0 tok/s

Benchmark data updated Oct 5, 2026

Frequently asked questions

Is Claude Haiku 4.5 cheaper than GPT-5.1-Codex-Mini?

GPT-5.1-Codex-Mini is cheaper than Claude Haiku 4.5 on OpenRouter: GPT-5.1-Codex-Mini costs $0.25/M tokens input and $2/M tokens output, while Claude Haiku 4.5 costs $1/M tokens input and $5/M tokens output.

Which has the longer context window, Claude Haiku 4.5 or GPT-5.1-Codex-Mini?

GPT-5.1-Codex-Mini has the longer context window at 400,000 tokens, compared with 200,000 tokens for Claude Haiku 4.5.

Which is faster, Claude Haiku 4.5 or GPT-5.1-Codex-Mini?

Claude Haiku 4.5 is faster on OpenRouter, generating a median 88.0 tokens per second compared with 62.0 tokens per second for GPT-5.1-Codex-Mini.