---
last_updated: 2026-11-28
source_url: https://opper.ai/openai/gpt-5-1-codex-mini
title: "GPT-5.1-Codex Mini by OpenAI"
description: "GPT-5.1 Codex Mini by OpenAI, fast, cost-efficient code model with a 272K context for everyday development tasks."
---

# GPT-5.1-Codex Mini

By [OpenAI](https://opper.ai/openai).

Released 13 Nov 2025, 15 days after [GPT OSS Safeguard 20b](https://opper.ai/openai/gpt-oss-safeguard-20b) · [Announcement](https://developers.openai.com/api/docs/changelog) · [All OpenAI releases](https://opper.ai/model-releases/openai)

GPT-5.1 Codex Mini is a faster, more cost-efficient Codex variant that keeps the 272,000-token context window while favoring quick responses for interactive development. It handles code generation and analysis across tasks from single-function edits to multi-file refactoring.

The variant fits development environments, continuous integration pipelines, and real-time code assistance where response speed matters and the model still needs to work with large codebases.

## Available routes

GPT-5.1-Codex Mini runs on 1 route through the Opper gateway. Prices are per 1M tokens. In the EU it is served by Azure (Sweden). [See every OpenAI model hosted in the EU](https://opper.ai/models/eu/openai). Its routes and prices, live from the catalogue, are public JSON with no API key needed at https://api.opper.ai/v3/models?q=azure%2Fgpt-5.1-codex-mini.

| Provider | Model id | Region | Zero data retention | Training | Input | Output | Cache read |
| --- | --- | --- | --- | --- | --- | --- | --- |
| [Azure](https://opper.ai/provider/azure) | `azure/gpt-5.1-codex-mini` | EU (Sweden) | Abuse monitoring | No | $0.25 | $2.00 | $0.03 |

## Key info

- Model id: `azure/gpt-5.1-codex-mini`
- Input: Text, Image, Files
- Output: Text
- Features: Tools, Structured output, PDF input
- Context window: 400K
- Max output: 128K
- Input price: $0.25 per 1M tokens ($0.03 cache read)
- Output price: $2.00 per 1M tokens
- Released: 13 Nov 2025
- EU residency available
- Zero data retention with abuse monitoring
- No training by default

## Data handling per route

Each route hosting GPT-5.1-Codex Mini has its own privacy posture, residency, and GDPR terms. Postures are maintained by Opper with a last-verification timestamp.

### Azure — Sweden

Zero data retention with abuse monitoring: nothing is logged or used for training; content flagged by abuse monitoring is held for review. No training on customer data. EU.

- Zero data retention: With abuse monitoring, flagged content held.
- Training: No training on customer data.
- Logging: None
- Abuse monitoring: On by default, holds flagged content, stored in Sweden, a person can view samples
- Transfer mechanism: Not applicable — data stays in EU

Verified by Opper on 2026-09-16.

## Best for

Where GPT-5.1-Codex Mini ranks among the models on Opper with a score for each use case (0 to 100).

- [Multilingual](https://opper.ai/models?use=multilingual): 85.0 (Tasks across languages)

## Benchmarks

Independent benchmark scores via [Artificial Analysis](https://artificialanalysis.ai) ([view on AA](https://artificialanalysis.ai/models/gpt-5-1-codex-mini)). Indices and domain scores are out of 100, Omniscience runs from −100 to 100, Briefcase is an Elo rating, and the other evaluation scores are the share of tasks solved.

- Global rank: #179 of 523 LLMs on the [LLM leaderboard](https://opper.ai/llm-leaderboard)
- Tier: Efficient
- Output speed: 177 tok/s
- Intelligence Index (previous version): 20.4

### Coding

- LiveCodeBench: 84%

### Agentic & knowledge work

- Terminal-Bench Hard: 33%
- τ²-Bench Telecom: 63%

### Science & reasoning

- Humanity's Last Exam: 19%
- GPQA Diamond: 81%
- Long-context reasoning: 67%

### Knowledge

- MMMU-Pro: 69%
- MMLU-Pro: 82%

### Math & instruction following

- AIME 2025: 92%
- IFBench: 68%

## Get started

Call GPT-5.1-Codex Mini through the Opper gateway with one API key. Opper is drop-in compatible with the OpenAI, Anthropic and Google AI SDKs.

GPT-5.1-Codex Mini is a premium model on Opper. Sign up needs no credit card: you get an API key straight away and the free models work in the playground and the API. Add a card to use premium models, pay-as-you-go with no minimum.

### Set it up with your agent

Paste this into a coding agent like Claude Code, Cursor or Codex and it will wire up Opper for you:

```text
Use curl to download, read and follow: https://skills.opper.ai Call GPT-5.1-Codex Mini
```

### Or call it directly

OpenAI:

```javascript
import OpenAI from "openai";

const client = new OpenAI({
  apiKey: process.env.OPPER_API_KEY,
  baseURL: "https://api.opper.ai/v3/compat",
});

const completion = await client.chat.completions.create({
  model: "azure/gpt-5.1-codex-mini",
  messages: [{ role: "user", content: "Hello" }],
});
console.log(completion.choices[0].message.content);
```

Anthropic:

```javascript
import Anthropic from "@anthropic-ai/sdk";

const client = new Anthropic({
  apiKey: process.env.OPPER_API_KEY,
  baseURL: "https://api.opper.ai/v3/compat",
});

const message = await client.messages.create({
  model: "azure/gpt-5.1-codex-mini",
  max_tokens: 1024,
  messages: [{ role: "user", content: "Hello" }],
});
console.log(message.content);
```

Gemini:

```javascript
import { GoogleGenAI } from "@google/genai";

const ai = new GoogleGenAI({
  apiKey: process.env.OPPER_API_KEY,
  httpOptions: { baseUrl: "https://api.opper.ai/v3/compat" },
});

const response = await ai.models.generateContent({
  model: "azure/gpt-5.1-codex-mini",
  contents: "Hello",
});
console.log(response.text);
```

cURL:

```bash
curl https://api.opper.ai/v3/compat/chat/completions \
  -H "Authorization: Bearer $OPPER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "azure/gpt-5.1-codex-mini",
    "messages": [{ "role": "user", "content": "Hello" }]
  }'
```

## Use GPT-5.1-Codex Mini in your apps

Pick your tool to see how to run it on GPT-5.1-Codex Mini through Opper.

- [Claude Code](https://opper.ai/apps/claude-code/gpt-5-1-codex-mini)
- [Claude Cowork](https://opper.ai/apps/claude-cowork/gpt-5-1-codex-mini)
- [Codex](https://opper.ai/apps/codex/gpt-5-1-codex-mini)
- [DeepSeek Harness](https://opper.ai/apps/deepseek-harness/gpt-5-1-codex-mini)
- [GitHub Copilot CLI](https://opper.ai/apps/github-copilot-cli/gpt-5-1-codex-mini)
- [Aider](https://opper.ai/apps/aider/gpt-5-1-codex-mini)
- [Goose](https://opper.ai/apps/goose/gpt-5-1-codex-mini)
- [Droid](https://opper.ai/apps/droid/gpt-5-1-codex-mini)
- [OpenCode](https://opper.ai/apps/opencode/gpt-5-1-codex-mini)
- [Pi](https://opper.ai/apps/pi/gpt-5-1-codex-mini)
- [OpenClaw](https://opper.ai/apps/openclaw/gpt-5-1-codex-mini)
- [Hermes](https://opper.ai/apps/hermes/gpt-5-1-codex-mini)
- [Copilot for Obsidian](https://opper.ai/apps/obsidian-copilot/gpt-5-1-codex-mini)
- [OmniRoute](https://opper.ai/apps/omniroute/gpt-5-1-codex-mini)
- [Cursor](https://opper.ai/apps/cursor/gpt-5-1-codex-mini)
- [Cline](https://opper.ai/apps/cline/gpt-5-1-codex-mini)
- [Continue](https://opper.ai/apps/continue/gpt-5-1-codex-mini)
- [Kilo Code](https://opper.ai/apps/kilo-code/gpt-5-1-codex-mini)
- [GitHub Copilot](https://opper.ai/apps/github-copilot/gpt-5-1-codex-mini)
- [Zed](https://opper.ai/apps/zed/gpt-5-1-codex-mini)
- [JetBrains AI Assistant](https://opper.ai/apps/jetbrains-ai-assistant/gpt-5-1-codex-mini)
- [Voidleap Code](https://opper.ai/apps/voidleap-code/gpt-5-1-codex-mini)
- [n8n](https://opper.ai/apps/n8n/gpt-5-1-codex-mini)
- [LibreChat](https://opper.ai/apps/librechat/gpt-5-1-codex-mini)
- [Open WebUI](https://opper.ai/apps/open-webui/gpt-5-1-codex-mini)
- [See all apps](https://opper.ai/apps)

## Other models from OpenAI

- [GPT-6.2 Astra](https://opper.ai/openai/gpt-6-2-astra)
- [GPT-6 Astra](https://opper.ai/openai/gpt-6-astra)
- [GPT-6.2 Sol](https://opper.ai/openai/gpt-6-2-sol)
- [GPT-6.1 Sol](https://opper.ai/openai/gpt-6-1-sol)
- [GPT-6.1 Terra](https://opper.ai/openai/gpt-6-1-terra)
- [GPT-6 Luna](https://opper.ai/openai/gpt-6-luna)
