OpenAI

GPT 5.1 Codex Max

gpt-5.1-codex-max
  • Vision
  • File input
  • Reasoning
  • Structured output
  • Tool use
  • Web search
  • Implicit caching
Input
$1.25
Per 1M tokens
Output
$10.00
Per 1M tokens
Speed
319
tokens / s
Context
400K
tokens
Released
Nov 2025
Where gpt-5.1-codex-max runs
DeploymentRegionCostFlexPriorityUltrafastCache readCache writeThroughputCapabilitiesZero data retentionNo training
Microsoft AzureGlobal$1.25 / $10.00N/AN/AN/A$0.125N/A319 tok/s
  • Vision
  • File input
  • Reasoning
  • Structured output
  • Tool use
  • Web search
  • Implicit caching
? Unknown? Unknown

Build with GPT 5.1 Codex Max

Visit https://docs.weflayr.com/agents/integration-playbook, then set up Weflayr in this project and use it to call the model "gpt-5.1-codex-max".

Compare with other models

Price and speed is only half the answer. Benchmark models on your calls to find out the other half.

Benchmark on your calls
Filters
  • GPT 5.1 Codex Max
The gateway's models next to gpt-5.1-codex-max
ModelRegionProvidersCostFlexPriorityUltrafastCache readCache writeThroughputContextZero data retentionNo trainingReleased
gpt-5.1GlobalUSEU$1.25 / $10.00N/A$2.50 / $20.00N/A$0.125N/A217 tok/s272KVariesVariesNov 2025
gpt-5.1-codexGlobal$1.25 / $10.00N/AN/AN/A$0.125N/A131 tok/s400K? Unknown? UnknownNov 2025
o3Global$2.00 / $8.00$1.00 / $4.00$3.50 / $14.00N/A$0.50N/A126 tok/s200K Apr 2025
grok-4.7GlobalUS$2.00 / $6.00$1.00 / $3.00$3.50 / $10.50N/A$0.50N/A834 tok/s500KVariesVariesSep 2026
qwen3.8-max-0902Global$2.00 / $6.00N/AN/AN/A$0.17$2.5066 tok/s991K Sep 2026

Alternatives to GPT 5.1 Codex Max

26 other models with the same capabilities and at least the same context window as GPT 5.1 Codex Max are available on the Weflayr gateway. Review the most notable ones.

Benchmark GPT 5.1 Codex Max on your own agent calls

A lower list price says nothing about answer quality. Your evals grade each answer against the one you ship today.

Evaluate models on your own callsExample

Miracle LabsYesterday, 11:34pm_agent

Review all standup recordings from the past week, check if an issue exists for every work item, and create a status report for me.

  • Your agent's answersBaselineBaseline
  • gpt-5.1-codex-max−36% cost Same quality
  • gemini-4-neon+15% cost Better quality
  • gemini-3.1-flash-lite−89% cost Same quality
  • claude-haiku-5.5−96% costWorse quality

Questions

How much does gpt-5.1-codex-max cost?
gpt-5.1-codex-max costs $1.25 per 1M input tokens and $10.00 per 1M output tokens on its cheapest host, Microsoft Azure, Global. Input read from the cache costs $0.125 per 1M tokens. These are list prices, as the gateway's model list gives them.
What is the context window of gpt-5.1-codex-max?
gpt-5.1-codex-max takes up to 400,000 tokens of input and writes up to 128,000 tokens in one answer.
Which hosts run gpt-5.1-codex-max?
1 host: Microsoft Azure (Global). To keep a call on one, send its provider and region, for example "provider": "azure", "region": "GLOBAL".
Can I run gpt-5.1-codex-max in the EU?
Not yet. gpt-5.1-codex-max runs in Global regions only. 28 models that can do the same job run in the EU.
Do the hosts of gpt-5.1-codex-max keep my data or train on it?
Zero data retention: 0 of its 1 deployment. No training on your data: 0 of 1. Where a host does not say, this page shows it as unknown.
How fast is gpt-5.1-codex-max?
Over the last 24 hours, gpt-5.1-codex-max wrote a median of 319 output tokens per second on its fastest host, Microsoft Azure, Global.
What can gpt-5.1-codex-max do?
gpt-5.1-codex-max reads text, images and PDFs and writes text. It supports reasoning, tool use, structured output, web search and implicit caching.
Is there a cheaper model that does the same job as gpt-5.1-codex-max?
On list price, 12 models can do the same job for less, for a call of 2,000 input and 500 output tokens. The closest in price is grok-4.5, at 7% less. A price list cannot tell if the answers are as good. A Weflayr benchmark replays your own calls on each model to find out.
How do I call gpt-5.1-codex-max?
Point any OpenAI client at https://gateway.weflayr.com/v1 with a Weflayr API key and send "gpt-5.1-codex-max" as the model. Send a list of models to have the next one answer when the first fails. Calls take up to 400K tokens of context.

Put your model teams to work.

Connect Weflayr, benchmark your agents, and gain control over your AI performance.