SunsetDiff

Replacement for gpt-4-0314: what changes when you switch

The official replacement is gpt-5. gpt-4-0314 shut down on 2026-03-26 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 costs $32.5 a month, lower than $420 for gpt-4-0314.

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

gpt-4-0314 to gpt-5

Some values not published 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 $30 $1.25 -95.8% (lower)
Output $60 $10 -83.3% (lower)
Cached input Not published $0.125 Not published
Example monthly cost $420 $32.5 Example only

Context and max output

Token limits
LimitOldNewChange
Context window Not published 400,000 Not published
Max output Not published 128,000 Not published

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

Checklist

  1. Read the shutdown date for gpt-4-0314 on the linked official page.
  2. Point your requests at gpt-5.
  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 gpt-4-0314?

The official replacement is gpt-5. gpt-4-0314 shut down on 2026-03-26 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 costs $32.5 a month, lower than $420 for gpt-4-0314.

Is gpt-5 cheaper than gpt-4-0314?

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

Does gpt-5 have a bigger context window than gpt-4-0314?

Context window sizes are not both published on the official pages we checked.