GPT-5.1-Codex-Mini

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

GPT-5.1-Codex-Mini is a smaller and faster version of GPT-5.1-Codex

INPUT$0.25/ 1M tokens
OUTPUT$2.00/ 1M tokens
p50 TTFT26.00 s7d
p95 TTFT41.00 s7d
TRAFFIC58tokens / 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-mini",
    messages=[{"role": "user", "content": "Hello"}],
)
print(response.choices[0].message.content)
Pricing
Input / 1M tokens$0.250
Output / 1M tokens$2.00
Cache read / 1M$0.025
CurrencyUSD
Performance
TTFT p50
26.00 s
Output speed
30.9 tok/s
TTFT p95
41.00 s
Error rate
95.7%
Public benchmarks
AA Coding
36.4
AA Intelligence
38.6
AA Math
91.7
AIME 2025
91.7
GPQA Diamond
81.3
Humanity's Last Exam
16.9
IFBench
67.9
LiveCodeBench
83.6
Long-Context Recall
62.7
MMLU-Pro
82.0
SciCode
42.6
TerminalBench Hard
33.3
τ²-Bench
62.9
Source: artificialanalysis.ai
FAQ
How much does OpenAI: GPT-5.1-Codex-Mini cost on OrcaRouter?
OpenAI: GPT-5.1-Codex-Mini is priced at $0.25 per 1M input tokens and $2.00 per 1M output tokens via OrcaRouter. Pricing is pulled live from the routing layer.
What is OpenAI: GPT-5.1-Codex-Mini's context window?
OpenAI: GPT-5.1-Codex-Mini 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-Mini 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-mini" in the chat.completions.create call.
Does OrcaRouter rate-limit OpenAI: GPT-5.1-Codex-Mini?
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-Mini$0.25/M in26000ms p50via OrcaRouter
HTML <a href="https://www.orcarouter.ai/models/openai/gpt-5.1-codex-mini" target="_blank"> <img src="https://www.orcarouter.ai/embed/openai/gpt-5.1-codex-mini.svg" alt="OpenAI: GPT-5.1-Codex-Mini on OrcaRouter" /> </a>
Markdown [![OpenAI: GPT-5.1-Codex-Mini](https://www.orcarouter.ai/embed/openai/gpt-5.1-codex-mini.svg)](https://www.orcarouter.ai/models/openai/gpt-5.1-codex-mini)