All models
OpenAI

GPT 5.1 Codex

GPT-5.1 tuned for agentic coding in OpenAI's Codex: long edit, run and fix loops across real repositories, with 400K context. Fair value for code at its price. Less suited to open-ended chat or writing, and the newer GPT-6.1 Sol has moved past it.

MainstreamThe big labs' models with their own safety filters. Best for work, code and research.
Brilliant
Intelligence
~4.55 credits ($0.046)
Estimated price per message
4,00,000 tokens
Context window
Text, Images
Input modalities

GPT 5.1 Codex is a legacy model. Open GPT-6.2 Sol to start a new chat.

See GPT-6.2 Sol

The facts

Made by
OpenAI
Content tier
MainstreamThe big labs' models with their own safety filters. Best for work, code and research.
Intelligence
Brilliant
Known for
Code, Creative writing
Estimated price per message
~4.55 credits ($0.046)Reference message with 16,000 input tokens and 1,500 output tokens. Rates shown for OpenRouter.
Price per 1M tokens
$1.63 input, $13.00 output162.5 / 1,300 credits
Cached input per 1M tokens
$0.1716.9 credits
Context window
4,00,000 tokens≈ 615 pages of text in one go
Input modalities
Text, Images
Output modalities
Text
Tool use
Yes: search, memory, code and more
Served via
OpenRouter
API model id
Not on the API anymore. Use gpt-6.2-sol.
Status
Legacy

Charges depend on usage and provider. Currency estimates use the one-time credit pack rate of $0.01 per credit.

What GPT 5.1 Codex is best for

Use it for

  • Writing, reviewing and fixing code
  • Creative writing and brainstorming
  • Reading screenshots, photos and scans
  • Agent work with tools: search, memory, code

Skip it for

  • New projects: GPT-6.2 Sol replaces it
  • Topics OpenAI filters: use an uncensored model for those
  • Character roleplay

GPT 5.1 Codex vs the closest alternatives

Price, context and tier side by side. Open a head-to-head for the full breakdown.

ModelContent tierIntelligenceContext windowPrice per messageHead-to-head
GPT 5.1 CodexMainstreamBrilliant400K~4.55 credits per messageThis page
GPT-6.2 SolMainstreamBrilliant1.1M~6.11 credits per messageGPT 5.1 Codex vs GPT-6.2 Sol

GPT 5.1 Codex: questions and answers

How much does GPT 5.1 Codex cost?

About 4.55 credits ($0.046) for a reference message via OpenRouter. Per million tokens, $1.63 for input and $13.00 for text output. Cached input costs $0.17 per million tokens. Reference message with 16,000 input tokens and 1,500 output tokens.

Is GPT 5.1 Codex uncensored?

No. GPT 5.1 Codex keeps OpenAI's safety filters and refuses some topics. For those, switch to an uncensored model in the same chat.

Can I use GPT 5.1 Codex via API?

GPT 5.1 Codex is a legacy model and no longer listed on the API. Use GPT-6.2 Sol (gpt-6.2-sol) instead. The API needs a paid account: any plan.

How big is the context window of GPT 5.1 Codex?

4,00,000 tokens. That is about 615 pages of text in one go.

What inputs and outputs does GPT 5.1 Codex support?

Input: Text, Images. Output: Text. It supports tool calling.

Who serves GPT 5.1 Codex on this platform?

Available providers include OpenRouter.

What is GPT 5.1 Codex good for?

Use it for: Writing, reviewing and fixing code; Creative writing and brainstorming; Reading screenshots, photos and scans; Agent work with tools: search, memory, code.

GPT 5.1 Codex or GPT-6.2 Sol: which one should I pick?

GPT 5.1 Codex costs about 4.55 credits per reference message, has a 400K token context window and sits in the Mainstream tier. GPT-6.2 Sol costs about 6.11 credits, has 1.1M tokens of context and sits in the Mainstream tier. Both run in the same chat, so you can switch mid conversation and judge the answers yourself.

How can I try GPT 5.1 Codex?

GPT 5.1 Codex is a legacy model. New chats use GPT-6.2 Sol, which you can try with free starter credits, no card needed.

What changed

No changes to GPT 5.1 Codex since tracking started on Jul 13, 2026.

Try GPT-6.2 Sol now.

Free credits to start, no card needed. The chat opens with GPT-6.2 Sol selected and a prompt ready. Just send.