Skip to content
OpenRouter

Openai/Gpt 5 Codex

Openai/Gpt 5 Codex is available via OpenRouter with a 272K context window and up to 128,000 output tokens. Pricing: $1.25/1M input tokens, $10.00/1M output tokens.

Openai/Gpt 5 Codex Pricing & Specifications

Input Price$1.25 per 1M tokens
Output Price$10.00 per 1M tokens
Context Window272,000 tokens (272K)
Max Output128,000 tokens
ProviderOpenRouter

What is Openai/Gpt 5 Codex?

Openai/Gpt 5 Codex is a large language model by OpenRouter with a 272K context window and up to 128,000 output tokens. It costs $1.25 per 1M input tokens and $10.00 per 1M output tokens. Openai/Gpt 5 Codex is available via OpenRouter with a 272K context window and up to 128,000 output tokens. Pricing: $1.25/1M input tokens, $10.00/1M output tokens.

Capabilities

text reasoning

Openai/Gpt 5 Codex Cost Examples

Short prompt (500 tokens)

$0.000625

Medium prompt (2K tokens)

$0.00250

Long output (4K tokens)

$0.04000

Count tokens for Openai/Gpt 5 Codex

Paste your prompt to see exact token counts and API cost estimates.

Open Token Counter

Similar Models to Openai/Gpt 5 Codex

OpenRouter

Google/Gemini 2.5 Pro

$1.25/1M in 1.0M ctx

OpenRouter

Openai/Gpt 5 Chat

$1.25/1M in 128K ctx

OpenRouter

Openai/Gpt 5

$1.25/1M in 272K ctx

OpenRouter

Openai/Gpt 5.1 Codex Max

$1.25/1M in 400K ctx

Frequently Asked Questions

How much does Openai/Gpt 5 Codex cost per token? +
Openai/Gpt 5 Codex costs $1.25 per 1M input tokens and $10.00 per 1M output tokens. For a typical 1,000-token request with a 500-token response, that works out to roughly $0.006250.
What is the context window for Openai/Gpt 5 Codex? +
Openai/Gpt 5 Codex supports a context window of 272,000 tokens (272K). This determines the maximum combined length of your prompt and conversation history in a single API call.
What is the maximum output length for Openai/Gpt 5 Codex? +
Openai/Gpt 5 Codex can generate up to 128,000 tokens in a single response. If you need longer outputs, you can make multiple API calls and concatenate the results.
Is Openai/Gpt 5 Codex good for coding tasks? +
Openai/Gpt 5 Codex can handle basic coding tasks, but there are models specifically optimized for code generation that may perform better on complex programming problems.
Token Counter | Pricing Calculator | Model Comparison | All OpenRouter Models