GPT-5.1 Codex Mini
opencode The API that serves this model and sets the prices shown here. gpt-5.1-codex-mini The model identifier to send in API requests. LLM Generates text from a prompt, so it can be compared with other LLMs on price and capability. Small The fast, low-latency tier of a model family, suited to high-volume or simple tasks. Retired Jul 23, 2026 This model has been retired and can no longer be relied on.Provider: openai · served via OpenCode
Knowledge cutoff: September 2024
Deprecated on OpenCode Zen; scheduled retirement announced.
Sticker prices & cost-per-token
List rates as published by OpenCode, before any volume or enterprise discounts.
$0.25
$2.00
400,000 tokens
128,000
tokens per response (includes reasoning tokens)
Closed weights
$0.025
Get this data free
Want to stay updated on price changes on this model? Pull this data free (no API key required) here:
curl "https://coolhandlabs.com/api/v2/inference_apis?q%5Bmodel_eq%5D=gpt-5.1-codex-mini&q%5Bsource_api_eq%5D=opencode"
Pricing History
| Effective | Price |
|---|---|
| Aug 12, 2026 – present | Input cost: $0.25 / 1M, Output cost: $2.00 / 1M, Cached input cost: $0.025 / 1M, Cache creation cost: $0.00 / 1M, 5-minute cache write cost: $0.00 / 1M, 1-hour cache write cost: $0.00 / 1M, Reasoning output cost: $0.00 / 1M, Cache storage cost: $0.00 / 1M/hr |
History
Last change detected October 5, 2026 (21 days ago) by an automated scan.
| Date | Changed by | What changed |
|---|---|---|
| Aug 12, 2026 | Unknown | Initial record created |
Source
https://opencode.ai/docs/zen/ (via https://models.dev/api.json)Comparable models
No comparable models identified yet.
Reliability
No reliability incidents recorded in the last 90 days.
Frequently asked questions
GPT-5.1 Codex Mini (openai via OpenCode) costs $0.25 per 1M input tokens and $2.00 per 1M output tokens, as last published by OpenCode.
GPT-5.1 Codex Mini has a context window of 400,000 tokens (the maximum combined input and output it can handle in a single request).
GPT-5.1 Codex Mini sits in the small size tier. Size tiers run from micro (small enough to run on a device) through small, medium and large to extra large (frontier flagships), and are assigned from the model's family, naming and limits rather than its price.
GPT-5.1 Codex Mini can generate up to 128,000 tokens in a single response. Reasoning (thinking) tokens count toward this limit.
GPT-5.1 Codex Mini's training data runs through September 2024, so it may not know about later events. Coolhand records the cutoff at month precision, since providers often publish only the month.
GPT-5.1 Codex Mini accepts image and text as input and produces text as output, as recorded in the Coolhand catalog.
No — the weights of GPT-5.1 Codex Mini have not been released, so it is only available through hosted APIs.
Yes — openai deprecated GPT-5.1 Codex Mini on July 23, 2026. Deprecated on OpenCode Zen; scheduled retirement announced.
openai retired GPT-5.1 Codex Mini on July 23, 2026.
Since GPT-5.1 Codex Mini is deprecated, openai customers are moving to GPT-4, GPT-Image-2, and o1 Mini.
Call GET https://coolhandlabs.com/api/v2/inference_apis?q[source_api_eq]=opencode&q[model_eq]=gpt-5.1-codex-mini — free, no API key required, and scoped to just this model since source_api and model together are unique. See https://coolhandlabs.com/docs for the full REST API reference.
Coolhand also tracks GPT-4, GPT-3.5 Turbo 0125, GPT-3.5 Turbo 1106, GPT-3.5 Turbo Instruct, GPT-4 Turbo Vision, and GPT-4 from openai. Some may already be deprecated, so check each model's status alongside its current pricing.
| Model | Input cost | Output cost | Context window | Max output tokens | Status |
|---|---|---|---|---|---|
| GPT-4 | $30.00/1M $0.0000300000 | $60.00/1M $0.0000600000 | 8,192 | 8,192 |
Deprecated Oct 23, 2026
|
| GPT-3.5 Turbo 0125 via Azure | $0.50/1M $0.0000005000 | $1.50/1M $0.0000015000 | 16,384 | 16,384 |
Deprecated Aug 13, 2026
|
| GPT-3.5 Turbo 1106 via Azure | $1.00/1M $0.0000010000 | $2.00/1M $0.0000020000 | 16,384 | 16,384 |
Deprecated Aug 13, 2026
|
| GPT-3.5 Turbo Instruct via Azure | $1.50/1M $0.0000015000 | $2.00/1M $0.0000020000 | 4,096 | 4,096 |
Deprecated Aug 13, 2026
|
| GPT-4 Turbo Vision via Azure | $10.00/1M $0.0000100000 | $30.00/1M $0.0000300000 | 128,000 | 4,096 |
Deprecated Aug 13, 2026
|
| GPT-4 via Azure | $30.00/1M $0.0000300000 | $60.00/1M $0.0000600000 | — | — | Active |
Track LLM pricing and deprecations automatically.
Start free