GPT-5-codex

GPT-5-codex is a text model from OpenRouter with a context window of 272K tokens and max output of 128K tokens. Pricing starts at 1.25 per million input tokens and 10.00 per million output tokens (cheapest at OpenAI).

Capabilities

Vision Function Calling Reasoning JSON Schema System Messages Web Search Prompt Caching Audio Input Audio Output

Specifications

Model Keyopenrouter/openai/gpt-5-codex
ProviderOpenRouter
Provider IDopenrouter
ModeText
Canonical Namegpt-5-codex
Context Window272K tokens
Max Output128K tokens

Pricing

TypePer 1K TokensPer 1M Tokens
Input Tokens0.00131.25
Output Tokens0.01010.00
Cache Read (Input)0.0001250.125

Benchmarks

Intelligence Index44.6#14
Coding Index38.9#20
Math Index98.7#2
MMLU-Pro0.9#8
GPQA0.8#25
HLE0.3#18
LiveCodeBench0.8#11
IFBench0.7#12
Time to First Token6.35s#215
SciCode0.4#31
AIME 20251.0#2
LCR0.7#12
TerminalBench Hard0.4#16
TAU20.9#20

Price Comparison by Provider

Compare prices for GPT-5-codex across different providers. The same model may be available through multiple providers at different price points.

Provider
Model Key
Input Price, $
Output Price, $
OpenRouteropenrouter/openai/gpt-5-codex1.2510.00
OpenAIgpt-5-codex1.2510.00

All Variants

All available versions, regions, and API endpoints for GPT-5-codex.

Model Key
Provider
Mode
Input Price, $
Output Price, $
Context
Max Output
Vision
Functions
gpt-5-codexOpenAIOther1.2510.00272K128Kyesyes
openrouter/openai/gpt-5-codexOpenRouterText1.2510.00272K128Knono