GPT-5.1-Codex
Pricing & Specs

OpenAI · $1.25 input / $10 output per 1M tokens · 400K context window

No longer offered on OpenMark

$1.25
per 1M input tokens
$10
per 1M output tokens
400K
context window (tokens)

GPT-5.1-Codex is no longer offered on OpenMark (deprecated or superseded upstream). Its specs are kept here for reference — if you're still running it in production, it's worth benchmarking current alternatives: newer models are often cheaper AND better on the same task.

GPT-5.1-Codex API Pricing

TokensPrice
Input$1.25 / 1M tokens
Output$10 / 1M tokens
Cached input$0.125 / 1M tokens

Cached input tokens are billed when caching is enabled.

What that means in practice

1x One typical task (1K input + 500 output tokens): $0.0063
1K 1,000 runs of that task: $6.25
💡 Real cost depends on how verbose the model is on YOUR prompts — benchmark to measure actual tokens, not estimates.

GPT-5.1-Codex Specs

SpecValue
Context window400K tokens
Max input per request272K tokens
Max output tokens128K tokens
Input modalitiestext, image
Output modalitiestext
Latency (measured by OpenMark)~900ms median response
Reasoning modelYes
Tool / function callingYes
JSON modeYes
StreamingYes
Prompt cachingYes
Batch APINo

Notes

Shut down July 23, 2026. Shutdown July 23, 2026.

FAQ

How much does GPT-5.1-Codex cost?

GPT-5.1-Codex costs $1.25 per 1M input tokens and $10 per 1M output tokens ($0.125 per 1M cached input tokens).

What is GPT-5.1-Codex's context window?

GPT-5.1-Codex has a 400K-token context window. Maximum output is 128K tokens.

Can I test GPT-5.1-Codex on my own task?

GPT-5.1-Codex is no longer offered on OpenMark, but you can benchmark its current alternatives from OpenAI and other providers on your own task — free tier available.

Still using GPT-5.1-Codex?

It's been superseded. Benchmark its current alternatives on your actual
workload — you'll likely find something cheaper AND better. Free tier available.

Test Current Alternatives — Free →