GPT-5.6 is here 🎉 20% off all GPT 🎉 All July 🔥Learn more
OpenAI

GPT-5.1 Codex Mini

Chat-20%
openai/gpt-5.1-codex-mini
CompareGet Started

GPT-5.1 Codex Mini is a smaller and faster version of GPT-5.1-Codex from OpenAI, released on 2025-11-13 for coding work where latency and cost matter more than peak capability. It supports reasoning, tool use, prompt caching, web search, and multimodal input covering images, audio, and video. Context window: 256K tokens, output: 64K. At $0.25/M input tokens and $2/M output tokens, with cached input at $0.03/M, it is the most economical option in the Codex line and fits high-volume agent loops and routine code edits. Accessible via the OpenAI-compatible protocol.

Context Window
256K
Max Output Tokens
66K
Released
2025-11-13
Capabilities
VisionFunction CallingReasoningPrompt CachingWeb SearchAudio InputVideo Input
Available Providers
AzureAzure
Supported Protocols
OpenAIopenai

Providers

AzureAzure
-20%
Input Tokens
$0.2/M
$0.25/M
Output Tokens
$1.6/M
$2/M
Cache Read
$0.024/M
$0.03/M
Web Search
$0.035/R
Protocols
OpenAIopenai/v1/chat/completions/v1/responses

Code Examples

from openai import OpenAI
client = OpenAI(
base_url="https://api.ofox.ai/v1",
api_key="YOUR_OFOX_API_KEY",
)
response = client.chat.completions.create(
model="openai/gpt-5.1-codex-mini",
messages=[
{"role": "user", "content": "Hello!"}
],
)
print(response.choices[0].message.content)

Frequently Asked Questions

GPT-5.1 Codex Mini on Ofox.ai costs $0.25/M per million input tokens and $2/M per million output tokens. Pay-as-you-go, no monthly fees.