GPT-5 Codex

openai/gpt-5-codex
by OpenAI · text+image in · text out · 400K ctx · 2025-09-23

GPT-5-Codex is a specialized version of GPT-5 optimized for software engineering and coding workflow…

INPUT$1.25/ 1M tokens
OUTPUT$10.00/ 1M tokens
p50 TTFT32.00 s7d
p95 TTFT41.00 s7d
TRAFFIC29tokens / 7d
Code samples
from openai import OpenAI

client = OpenAI(
    base_url="https://orcarouter.ai/v1",
    api_key="$ORCAROUTER_API_KEY",
)

response = client.chat.completions.create(
    model="openai/gpt-5-codex",
    messages=[{"role": "user", "content": "Hello"}],
)
print(response.choices[0].message.content)
Pricing
Input / 1M tokens$1.25
Output / 1M tokens$10.00
Cache read / 1M$0.125
CurrencyUSD
Performance
TTFT p50
32.00 s
Output speed
TTFT p95
41.00 s
Error rate
96.9%
Public benchmarks
AA Coding
38.9
AA Intelligence
44.6
AA Math
98.7
AIME 2025
98.7
GPQA Diamond
83.7
Humanity's Last Exam
25.6
IFBench
74.1
LiveCodeBench
84.0
Long-Context Recall
69.0
MMLU-Pro
86.5
SciCode
40.9
TerminalBench Hard
37.9
τ²-Bench
86.8
Source: artificialanalysis.ai
FAQ
How much does OpenAI: GPT-5 Codex cost on OrcaRouter?
OpenAI: GPT-5 Codex is priced at $1.25 per 1M input tokens and $10.00 per 1M output tokens via OrcaRouter. Pricing is pulled live from the routing layer.
What is OpenAI: GPT-5 Codex's context window?
OpenAI: GPT-5 Codex supports a context window of 400K tokens. Use long-context features (RAG, summarisation) up to that limit.
How do I call OpenAI: GPT-5 Codex via the OpenAI SDK?
Set OpenAI base_url to https://orcarouter.ai/v1, supply your OrcaRouter API key, and pass model="openai/gpt-5-codex" in the chat.completions.create call.
Does OrcaRouter rate-limit OpenAI: GPT-5 Codex?
Per-model rate limits follow your OrcaRouter plan. Free tiers ship with conservative caps; paid tiers lift them. Check /pricing for current quotas.
Embed this badge
OpenAI: GPT-5 Codex$1.25/M in32000ms p50via OrcaRouter
HTML <a href="https://www.orcarouter.ai/models/openai/gpt-5-codex" target="_blank"> <img src="https://www.orcarouter.ai/embed/openai/gpt-5-codex.svg" alt="OpenAI: GPT-5 Codex on OrcaRouter" /> </a>
Markdown [![OpenAI: GPT-5 Codex](https://www.orcarouter.ai/embed/openai/gpt-5-codex.svg)](https://www.orcarouter.ai/models/openai/gpt-5-codex)