OpenAI
Basic

GPT-5.1 Codex Mini

gpt-5.1-codex-mini

OpenAI's lightweight Codex — fast and affordable code generation on the Basic plan.

Code

Technical Specifications

API Identifiergpt-5.1-codex-mini
PlansBasic
Maximum Context200 000 tokens
Vision (images)No
Native Web AccessNo
Image GenerationNo
Input Cost$0.40 / M tokens
Output Cost$1.60 / M tokens

Overview

GPT-5.1 Codex Mini is the compact version of OpenAI's Codex family, specialized in code generation and completion. With 200,000 tokens of context and a controlled cost, it's well suited to everyday development tasks — functions, scripts, small modules — without the bill of a top-tier Codex model. Mingo selects it on the Basic plan for code requests that don't need the depth of GPT-5.1 Codex Max.


Strengths

FastAffordableCode-specialized200K context

Ideal Use Cases

Functions and scripts

Quick generation of functions, utility scripts and small modules.

Code completion

Suggestions and completions in an editor or coding assistant.

Simple bug fixes

Identifying and fixing common errors in small files.

Unit tests

Generating unit tests for existing functions.

Pricing

Input Tokens
$0.40
per million tokens
Output Tokens
$1.60
per million tokens

Frequently Asked Questions

What is the difference between Codex Mini and Codex Max?
GPT-5.1 Codex Max offers much greater depth and context for large refactors, while Codex Mini is optimized for speed and cost on everyday code tasks.
Is GPT-5.1 Codex Mini available on Basic?
Yes, Mingo selects GPT-5.1 Codex Mini for code tasks on the Basic plan.
Does GPT-5.1 Codex Mini support multiple programming languages?
Yes, like the whole Codex family, it supports most common programming languages.

Use GPT-5.1 Codex Mini with Mingo

Mingo automatically routes your everyday code tasks to GPT-5.1 Codex Mini on the Basic plan.

Try Mingo for free