OpenAI

GPT 5.1 Codex Mini

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

Build with GPT 5.1 Codex Mini

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-mini".

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 Mini
The gateway's models next to gpt-5.1-codex-mini
ModelRegionProvidersCostFlexPriorityUltrafastCache readCache writeThroughputContextZero data retentionNo trainingReleased
qwen3.5-35b-a3bGlobal$0.25 / $2.00N/AN/AN/AN/AN/A170 tok/s262K Feb 2026
gpt-5-miniGlobalUSEU$0.25 / $2.00N/A$0.45 / $3.60N/A$0.025N/A150 tok/s272KVariesVariesAug 2025
muse-glimmer-30bGlobal$0.35 / $1.50N/AN/AN/A$0.04N/A193 tok/s131K Aug 2026
qwen3.7-plusGlobalUS$0.40 / $1.60N/AN/AN/A$0.04$0.5063 tok/s1MVaries Jun 2026
qwen3-coder-nextUSEU$0.50 / $1.20$0.25 / $0.60$0.875 / $2.10N/AN/AN/A304 tok/s256K Jul 2025

Alternatives to GPT 5.1 Codex Mini

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

Benchmark GPT 5.1 Codex Mini 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-mini−87% 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-mini cost?
gpt-5.1-codex-mini costs $0.25 per 1M input tokens and $2.00 per 1M output tokens on its cheapest host, Microsoft Azure, Global. Input read from the cache costs $0.025 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-mini?
gpt-5.1-codex-mini 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-mini?
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-mini in the EU?
Not yet. gpt-5.1-codex-mini 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-mini 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-mini?
Over the last 24 hours, gpt-5.1-codex-mini wrote a median of 185 output tokens per second on its fastest host, Microsoft Azure, Global.
What can gpt-5.1-codex-mini do?
gpt-5.1-codex-mini 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-mini?
On list price, 3 models can do the same job for less, for a call of 2,000 input and 500 output tokens. The closest in price is gemini-3.1-flash-lite, at 17% 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-mini?
Point any OpenAI client at https://gateway.weflayr.com/v1 with a Weflayr API key and send "gpt-5.1-codex-mini" 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.