← All models

gpt-5-codex

OpenRouter · chat model

gpt-5-codex is listed here as a chat model from OpenRouter. This page shows simple API pricing, token limits, and capability flags so you can compare it with similar options.

Input
$1.2500 / 1M tokens
Output
$10.0000 / 1M tokens
Cached input
$0.1250 / 1M tokens
Context
128.0K

Quick read

Best for

Use this page when you need a fast view of cost, context size, and supported features before testing the model in your own workload.

Things to verify

Always check the provider page for discounts, cache pricing, region rules, and any model limits that may not appear in public metadata.

Pricing

Item Price
Input
$1.2500 / 1M tokens
Output
$10.0000 / 1M tokens
Cached input
$0.1250 / 1M tokens
Embedding
$1.2500 / 1M tokens

Token limits

Context window
128.0K
Max input tokens
272.0K
Max output tokens
128.0K
Max tokens
128.0K

Capabilities

Capability Supported
Vision
Function calling
Parallel function calling
Tool choice
Prompt caching
Reasoning
Response schema
System messages
Audio input
Audio output
Web search
PDF input
Video input

Benchmarks

Most benchmark rows are attached to the base model family rather than this provider route. Open benchmark explorer

Benchmark Score Metric Scope Checked Source
SWE-bench Verified 74.9% accuracy (%) Base model: gpt-5 (GPT-5 (high)) 2026-05-31 Link
Aider Polyglot 88.0% accuracy (%) Base model: gpt-5 (GPT-5 (high)) 2026-05-31 Link
GPQA Diamond 85.7% accuracy (%) Base model: gpt-5 (GPT-5 (high)) 2026-05-31 Link
AIME 2025 94.6% accuracy (%) Base model: gpt-5 (GPT-5 (high)) 2026-05-31 Link
Tau2-bench Telecom 96.7% accuracy (%) Base model: gpt-5 (GPT-5 (high)) 2026-05-31 Link
Aider Polyglot 88.0% percent correct Base model: GPT-5 (openai/gpt-5) 2026-05-31 Link
Aider Polyglot 86.7% percent correct Base model: GPT-5 (openai/gpt-5) 2026-05-31 Link
Aider Polyglot 81.3% percent correct Base model: GPT-5 (openai/gpt-5) 2026-05-31 Link

Sources

Source links
Pricing data LiteLLM model cost map
Synced at 2026-05-28

Docs

Official docs

Similar models

This list is ranked by overall similarity. Use filters to emphasize the lens that matters most for the replacement you are making.

Comparing from
Model Cost Input shape Features Context Why it is close
gpt-5-codex
OpenRouter
In $1.2500 / 1M tokens
Out $10.0000 / 1M tokens
imagetext
Output: text
Tool choiceReasoning
128.0K
Current model
Reference row

Overall blends cost, modality overlap, capabilities, and context.

Model Cost Input shape Features Context Why it is close
gpt-5.2-codex
OpenRouter
In $1.7500 / 1M tokens
Out $14.0000 / 1M tokens
imagetext
Output: text
Tool choiceReasoning
128.0K
Same provider
Overall 94%
gpt-5
OpenRouter
In $1.2500 / 1M tokens
Out $10.0000 / 1M tokens
imagetext file
Output: text
Tool choiceReasoning
128.0K
Same provider
Overall 92%
gpt-5.1-codex-max
OpenRouter
In $1.2500 / 1M tokens
Out $10.0000 / 1M tokens
imagetext
Output: text
Tool choiceReasoning
128.0K
Same provider
Overall 85%
gpt-5.1-2025-11-13
Azure
In $1.2500 / 1M tokens
Out $10.0000 / 1M tokens
imagetext pdf
Output: text
Tool choiceReasoning
128.0K
Text + image covered
Overall 81%
gpt-5
Azure
In $1.2500 / 1M tokens
Out $10.0000 / 1M tokens
imagetext pdf
Output: text
Tool choiceReasoning
128.0K
Text + image covered
Overall 81%
gpt-5-2025-08-07
Azure
In $1.2500 / 1M tokens
Out $10.0000 / 1M tokens
imagetext pdf
Output: text
Tool choiceReasoning
128.0K
Text + image covered
Overall 81%
gpt-5-chat
OpenRouter
In $1.2500 / 1M tokens
Out $10.0000 / 1M tokens
imagetext file
Output: text
Tool choiceReasoning
16.4K
Same provider
Overall 79%
gpt-5-mini
OpenRouter
In $0.2500 / 1M tokens
Out $2.0000 / 1M tokens
imagetext file
Output: text
Tool choiceReasoning
128.0K
Same provider
Overall 76%
gpt-5-nano
OpenRouter
In $0.0500 / 1M tokens
Out $0.4000 / 1M tokens
imagetext file
Output: text
Tool choiceReasoning
128.0K
Same provider
Overall 73%
glm-4p5v
fireworks_ai
In $1.2000 / 1M tokens
Out $1.2000 / 1M tokens
imagetext video
Output: text
Reasoning
131.1K
Text + image covered
Overall 69%
mistral-small-3.2-24b-instruct
OpenRouter
In $0.1000 / 1M tokens
Out $0.3000 / 1M tokens
imagetext
Output: text
Tool choice
128.0K
Same provider
Overall 69%
mistral-small-3.1-24b-instruct
OpenRouter
In $0.1000 / 1M tokens
Out $0.3000 / 1M tokens
imagetext
Output: text
Tool choice
131.1K
Same provider
Overall 68%
anthropic.claude-mythos-preview
Bedrock
In N/A
Out N/A
imagetext
Output: text
Tool choiceReasoning
128.0K
Text + image covered
Overall 68%
Kimi-K2.5
Together AI
In $0.5000 / 1M tokens
Out $2.8000 / 1M tokens
imagetext
Output: text
Tool choiceReasoning
256.0K
Text + image covered
Overall 67%
ui-tars-1.5-7b
OpenRouter
In $0.1000 / 1M tokens
Out $0.2000 / 1M tokens
imagetext
Output: text
Tool choice
2.0K
Same provider
Overall 54%
gpt-5.1
Azure
In $1.2500 / 1M tokens
Out $10.0000 / 1M tokens
imagetext pdf
Output: image, text
Tool choiceReasoning
128.0K
Partial I/O overlap
Overall 49%
Missing text, image
gpt-5.1-chat
Azure
In $1.2500 / 1M tokens
Out $10.0000 / 1M tokens
imagetext pdf
Output: image, text
Tool choiceReasoning
128.0K
Partial I/O overlap
Overall 49%
Missing text, image
gpt-5.1-chat-2025-11-13
Azure
In $1.2500 / 1M tokens
Out $10.0000 / 1M tokens
imagetext pdf
Output: image, text
Reasoning
16.4K
Partial I/O overlap
Overall 33%
Missing text, image