Okapi Okapi

OpenAI gpt-4.1 model retirement

Stops workingin 69 daysSubscribe to OpenAIShare

On January 14, 2027, the gpt-4.1 model will be shut down. Requests specifying model gpt-4.1 will fail after this date. This retirement also applies to gpt-4.1-2025-04-14.


The error you get from January 14, 2027

What OpenAI answers a call to gpt-4.1 once the model is gone, as recorded from real responses:

HTTP 404
{"error":{"message":"The model `gpt-4.1` has been deprecated, learn more here: https://platform.openai.com/docs/deprecations","type":"invalid_request_error","param":null,"code":"model_not_found"}}

What to use instead of gpt-4.1

Move to gpt-6-luna, which is the recommended replacement from OpenAI.

In OpenAI's words

Shutdown date: January 14, 2027; Model / system: GPT-4.1 ( gpt-4.1-2025-04-14 ); Recommended replacement: gpt-6-luna

OpenAI, Deprecations page

Facts

API
OpenAI api.openai.com
Model
gpt-4.1
Released
April 14, 2025 (models.dev)
Kind
Model retirement
Takes effect
January 14, 2027
Calls after that day
Fail
Source
Deprecations page
Last updated
Verified
, against OpenAI's own pages

Questions

When does gpt-4.1 shut down?

Calls to the model gpt-4.1 on OpenAI stop working on January 14, 2027.

What happens to calls after January 14, 2027?

They fail from that day.

What error does gpt-4.1 return once it is shut down?

OpenAI answers HTTP 404: "The model `gpt-4.1` has been deprecated, learn more here: https://platform.openai.com/docs/deprecations". Send another model to fix it.

When was gpt-4.1 released?

gpt-4.1 was released on April 14, 2025, according to models.dev.

How do I find the calls this hits in my code?

Okapi reads your repository, finds the calls this change hits and opens a pull request with the fix. It never commits to your branches: every change comes as a pull request you review.


gpt-4.1 on other APIs 2

  1. Azure AI Foundry gpt-4.1Model retirement Stops workingin 159 days
  2. Azure OpenAI gpt-4.1Model retirement Stops workingin 342 days

More from OpenAI 10

  1. gpt-4.1-2025-04-14Model retirement Stops workingin 69 days
  2. gpt-4.1-miniModel retirement Stops workingin 69 days
  3. gpt-4.1-mini-2025-04-14Model retirement Stops workingin 69 days
  4. gpt-4oModel retirement Stops workingin 69 days
  5. gpt-4o-2024-08-06Model retirement Stops workingin 69 days
  6. gpt-4o-2024-11-20Model retirement Stops workingin 69 days
  7. gpt-4o-miniModel retirement Stops workingin 69 days
  8. gpt-4o-mini-2024-07-18Model retirement Stops workingin 69 days
  9. gpt-4o-audioModel retirement Stops workingin 75 days
  10. gpt-4o-mini-audioModel retirement Stops workingin 75 days

Is your code calling this?

Okapi finds the calls this change hits in your repo and opens the pull request with the fix before January 14, 2027.

Add to GitHub

Get notifications

Subscribe to OpenAI

Hear about each breaking change OpenAI announces, in your feed reader, calendar or Slack.

1What to follow

Provider
  • OpenAI

2Where to get it

/breaking-changes/feed.xml

Paste it into Feedly, Inoreader, NetNewsWire or any reader. New changes show up as they're announced.