← model directory

openai

OpenAI: GPT-5.1-Codex-Mini

openai/gpt-5.1-codex-mini

⚙ tool calling

GPT-5.1-Codex-Mini is a smaller and faster version of GPT-5.1-Codex

specs & pricing
Type
text
Provider
openai
Model ID
openai/gpt-5.1-codex-mini
Capabilities
vision, tools, reasoning
Context window
400K tokens
Input price
$0.28 / 1M tokens
Output price
$2.20 / 1M tokens

Cloud price is billed from prepaid credits when a request fails over to the cloud. Open-weight models run free on GPUs you own — the gateway routes to your nodes first.

What it costs to run

cloud · 1M in + 1M out

$2.48

$0.28 for a million input tokens plus $2.20 for a million output tokens, billed from credits only when a request fails over to the cloud.

your hardware

cloud only

OpenAI: GPT-5.1-Codex-Mini is a hosted model, so it is always served from the cloud. Route easy traffic to an open model on your own hardware and keep this one for the requests that need it.

/// initialize

Call OpenAI: GPT-5.1-Codex-Mini through one OpenAI-compatible endpoint.

Mix it with open models on your own hardware — the gateway routes each request to the cheapest place that can serve it.

no credit card · 2 nodes free · openai-compatible

Frequently asked questions

What is the context window of OpenAI: GPT-5.1-Codex-Mini?
OpenAI: GPT-5.1-Codex-Mini accepts up to 400,000 tokens (400K) of context per request.
How much does OpenAI: GPT-5.1-Codex-Mini cost per million tokens?
Through Wide Area Intelligence, OpenAI: GPT-5.1-Codex-Mini costs $0.28 per 1M input tokens and $2.20 per 1M output tokens when served from the cloud, billed from prepaid credits. A workload of 1M input plus 1M output tokens costs $2.48.

More from openai

← browse all models