GPT-5.1-Codex

openai/gpt-5.1-codex
by OpenAI · text+image in · text out · 400K ctx · 2025-11-13

GPT-5.1-Codex is a specialized version of GPT-5.1 optimized for software engineering and coding work…

INPUT$1.25/ 1M tokens
OUTPUT$10.00/ 1M tokens
p50 TTFT29.00 s7d
p95 TTFT37.00 s7d
TRAFFIC55tokens / 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.1-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
29.00 s
Output speed
957 tok/s
TTFT p95
37.00 s
Error rate
95.7%
Public benchmarks
AA Coding
36.6
AA Intelligence
43.1
AA Math
95.7
AIME 2025
95.7
GPQA Diamond
86.0
Humanity's Last Exam
23.4
IFBench
70.0
LiveCodeBench
84.9
Long-Context Recall
67.3
MMLU-Pro
86.0
SciCode
40.2
TerminalBench Hard
34.8
τ²-Bench
83.0
Source: artificialanalysis.ai
FAQ
How much does OpenAI: GPT-5.1-Codex cost on OrcaRouter?
OpenAI: GPT-5.1-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.1-Codex's context window?
OpenAI: GPT-5.1-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.1-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.1-codex" in the chat.completions.create call.
Does OrcaRouter rate-limit OpenAI: GPT-5.1-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.1-Codex$1.25/M in29000ms p50via OrcaRouter
HTML <a href="https://www.orcarouter.ai/models/openai/gpt-5.1-codex" target="_blank"> <img src="https://www.orcarouter.ai/embed/openai/gpt-5.1-codex.svg" alt="OpenAI: GPT-5.1-Codex on OrcaRouter" /> </a>
Markdown [![OpenAI: GPT-5.1-Codex](https://www.orcarouter.ai/embed/openai/gpt-5.1-codex.svg)](https://www.orcarouter.ai/models/openai/gpt-5.1-codex)