GPT-5.1 Codex mini is a smaller, coding-oriented variant of OpenAI's GPT-5.1 Codex line, positioned for software engineering tasks where a lighter model is preferred.
| Provider | Input / 1M | Output / 1M | Cached / 1M |
|---|---|---|---|
| $0.250 | $2.00 | $0.030 |
Prices updated daily. Last check: Sep 5, 2026
Input, output, and batch rates, plus alternatives, for one provider at a time.
Benchmarks measured Sep 2026. Scores are independent evaluations, not vendor-reported.
GPT-5.1 Codex mini fits the repetitive inner loop of software development work: applying targeted file edits, fixing failing tests, resolving lint and type errors, drafting small functions, writing unit tests, and generating code review comments. Its mini tier makes it a candidate for agent architectures that fire many short turns per task, where a larger Codex model is reserved for planning, architecture decisions, or cross-file refactors that need more reasoning depth. It is also a reasonable default for developer-tooling features that run continuously — inline completions triggered by editor events, CI-side patch suggestions, or batch codemod runs across many files. For work that is primarily prose, analysis, or open-ended conversation, a general-purpose GPT-5.1 variant is usually the better match.
Pricing depends on the provider you use and the pricing model — per-input-token, per-output-token, or hosted endpoint arrangements all differ, and rates change frequently. Check the pricing table on this page for the current tracked rates rather than relying on a figure quoted in an article.
Software engineering tasks that run at volume: code edits, test generation and repair, refactor passes, lint fixes, and code review comments inside an agent or IDE integration. It is a coding-branch model, so it is a better match for those workloads than for general writing or chat.
Both are in the GPT-5.1 Codex branch from OpenAI, but the mini tier sits below the full model. Mini-tier variants are generally chosen for shorter, more frequent turns, while the larger Codex model is used for the harder planning and multi-file reasoning steps. Many teams route between the two within the same agent.
We do not have a confirmed context window recorded for this variant, so we do not publish a number. Check OpenAI's model documentation or your provider's model card before designing a workflow that depends on very large inputs.
Our benchmark record for GPT-5.1 Codex mini sourced from Artificial Analysis has no populated output-tokens-per-second or time-to-first-token values. Measure latency and throughput on your own prompts and provider before committing to it in a latency-sensitive path.