SunsetDiff

Replacement for o4-mini: what changes when you switch

The official replacement is gpt-5.6-terra. o4-mini shut down on 2026-10-23 per OpenAI's deprecation page (checked 2026-11-12). On the labeled example of 10 million input tokens and 2 million output tokens, gpt-5.6-terra costs $25 a month, higher than $19.8 for o4-mini.

This is the canonical diff. Model page · Replacement page · OpenAI

Request errors

Request breaking changes

These rows are from the breaking-changes list. JSON · CSV

1rule that apply here.
Old settingWhat happensFixSource
max_tokensUnsupported parameter: 'max_tokens' is not supported with this model. Use 'max_completion_tokens' instead.Send max_completion_tokens and omit max_tokens.OpenAI Chat Completions reference, checked 2026-10-20 · Error page

o4-mini to gpt-5.6-terra

All values from official sources Checked 2026-11-12.

Price per 1M tokens

Price comparison. Example monthly cost for 10M input tokens and 2M output tokens. Labeled example, not a bill.
FieldOldNewChange
Input $1.1 $2 +81.8% (higher)
Output $4.4 $2.5 -43.2% (lower)
Cached input $0.275 $12 Not published
Example monthly cost $19.8 $25 Example only

Context and max output

Token limits
LimitOldNewChange
Context window 200,000 1,050,000 +425% (higher)
Max output 100,000 128,000 +28% (higher)

Capabilities that differ

No differing capability values are published for both models.

API changes

No parameter change is listed on the official pages we checked. The sample below only swaps the model id.

Code

python before
from openai import OpenAI
client = OpenAI()
response = client.chat.completions.create(
    model="o4-mini",
    messages=[{"role": "user", "content": "Hello"}],
)
python after
from openai import OpenAI
client = OpenAI()
response = client.chat.completions.create(
    model="gpt-5.6-terra",
    messages=[{"role": "user", "content": "Hello"}],
)
typescript before
import OpenAI from "openai";
const client = new OpenAI();
const response = await client.chat.completions.create({
  model: "o4-mini",
  messages: [{ role: "user", content: "Hello" }],
});
typescript after
import OpenAI from "openai";
const client = new OpenAI();
const response = await client.chat.completions.create({
  model: "gpt-5.6-terra",
  messages: [{ role: "user", content: "Hello" }],
});
curl before
curl https://api.openai.com/v1/chat/completions \
  -H "Authorization: Bearer $OPENAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"o4-mini","messages":[{"role":"user","content":"Hello"}]}'
curl after
curl https://api.openai.com/v1/chat/completions \
  -H "Authorization: Bearer $OPENAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"gpt-5.6-terra","messages":[{"role":"user","content":"Hello"}]}'

Checklist

  1. Read the shutdown date for o4-mini on the linked official page.
  2. Point your requests at gpt-5.6-terra.
  3. Re-check price, context, and parameters on the provider pages linked here.
  4. Ship the change before the published shutdown date.

Questions

What is the replacement for o4-mini?

The official replacement is gpt-5.6-terra. o4-mini shut down on 2026-10-23 per OpenAI's deprecation page (checked 2026-11-12). On the labeled example of 10 million input tokens and 2 million output tokens, gpt-5.6-terra costs $25 a month, higher than $19.8 for o4-mini.

Is gpt-5.6-terra cheaper than o4-mini?

No. The labeled example monthly cost is $19.8 for the old model and $25 for the replacement.

Does gpt-5.6-terra have a bigger context window than o4-mini?

Yes. The context window changes from 200,000 to 1,050,000 tokens.