OpenAI: Codex Mini

Image input Text input Text output
Author's Description

codex-mini-latest is a fine-tuned version of o4-mini specifically for use in Codex CLI. For direct use in the API, we recommend starting with gpt-4.1.

Key Specifications
Cost
$$$$$
Context
200K
Released
May 16, 2025
Speed
Ability
Reliability
Supported Parameters

This model supports the following parameters:

Tool Choice Max Tokens Structured Outputs Tools Seed Response Format
Features

This model supports the following features:

Structured Outputs Response Format Tools
Performance Summary

OpenAI's Codex Mini, a fine-tuned version of o4-mini for Codex CLI, demonstrates moderate speed performance, ranking in the 35th percentile across benchmarks. Its pricing tends to be at premium levels, placing it in the 10th percentile. However, a standout feature is its exceptional reliability, achieving the 100th percentile with minimal technical failures, ensuring consistent and usable responses. In terms of accuracy, Codex Mini excels in specialized areas. It achieved 95.0% in Coding (Baseline), making it the most accurate model at its price point and among models of similar speed. It also showed strong performance in Instruction Following (78.0%) and Reasoning (98.0%). Notably, it achieved perfect accuracy (100.0%) in the Ethics (Baseline) benchmark, again being the most accurate at its price point and speed. While its Email Classification accuracy was 98.0%, this placed it in the 56th percentile, indicating average performance in this specific category compared to other models. Its General Knowledge score of 99.5% was solid, ranking in the 78th percentile. Overall, Codex Mini's key strengths lie in its high accuracy for coding, reasoning, and ethical problem-solving, coupled with unparalleled reliability, though its speed and cost position it as a premium offering.

Model Pricing

Current Pricing

Feature Price (per 1M tokens)
Prompt $1.5
Completion $6
Input Cache Read $0.375

Price History

Available Endpoints
Provider Endpoint Name Context Length Pricing (Input) Pricing (Output)
OpenAI
OpenAI | openai/codex-mini 200K $1.5 / 1M tokens $6 / 1M tokens
Benchmark Results
Benchmark Category Reasoning Free Executions Accuracy Cost Duration
Other Models by openai