SunsetDiff

Replacement for chatgpt-4o-latest: what changes when you switch

The official replacement is gpt-5.1-chat-latest. chatgpt-4o-latest shut down on 2026-02-17 per OpenAI's deprecation page (checked 2026-10-17). On the labeled example of 10 million input tokens and 2 million output tokens, gpt-5.1-chat-latest costs $32.5 a month, lower than $80 for chatgpt-4o-latest.

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

chatgpt-4o-latest to gpt-5.1-chat-latest

All values from official sources Checked 2026-10-17.

Price per 1M tokens

Price comparison. Example monthly cost for 10M input tokens and 2M output tokens. Labeled example, not a bill.
FieldOldNewChange
Input $5 $1.25 -75% (lower)
Output $15 $10 -33.3% (lower)
Cached input Not published $0.125 Not published
Example monthly cost $80 $32.5 Example only

Context and max output

Token limits
LimitOldNewChange
Context window 128,000 128,000 0% (same)
Max output 16,384 16,384 0% (same)

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="chatgpt-4o-latest",
    messages=[{"role": "user", "content": "Hello"}],
)
python after
from openai import OpenAI
client = OpenAI()
response = client.chat.completions.create(
    model="gpt-5.1-chat-latest",
    messages=[{"role": "user", "content": "Hello"}],
)
typescript before
import OpenAI from "openai";
const client = new OpenAI();
const response = await client.chat.completions.create({
  model: "chatgpt-4o-latest",
  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.1-chat-latest",
  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":"chatgpt-4o-latest","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.1-chat-latest","messages":[{"role":"user","content":"Hello"}]}'

Checklist

  1. Read the shutdown date for chatgpt-4o-latest on the linked official page.
  2. Point your requests at gpt-5.1-chat-latest.
  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 chatgpt-4o-latest?

The official replacement is gpt-5.1-chat-latest. chatgpt-4o-latest shut down on 2026-02-17 per OpenAI's deprecation page (checked 2026-10-17). On the labeled example of 10 million input tokens and 2 million output tokens, gpt-5.1-chat-latest costs $32.5 a month, lower than $80 for chatgpt-4o-latest.

Is gpt-5.1-chat-latest cheaper than chatgpt-4o-latest?

Yes. The labeled example monthly cost is $80 for the old model and $32.5 for the replacement.

Does gpt-5.1-chat-latest have a bigger context window than chatgpt-4o-latest?

The context window stays 128,000 tokens.