Okapi Okapi

OpenAI davinci-002 model retirement

Stopped workingSubscribe to OpenAIShare

OpenAI retired model davinci-002 on September 28, 2026. Requests specifying model davinci-002 fail since that day. Update any dependent applications immediately to use an active model.


The error you get

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

HTTP 404
{"error":{"message":"The model `davinci-002` 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 davinci-002

Move to gpt-5.6-terra, recommended by OpenAI. Because gpt-5.6-terra is not served on /v1/completions, move the call to Chat Completions (/v1/chat/completions) or the Responses API (/v1/responses), converting the prompt string into messages or input.

gpt-5.6-terra is not served on /v1/completions. Move the call to Chat Completions (/v1/chat/completions) or the Responses API (/v1/responses): the prompt string becomes messages or input.

In OpenAI's words

Shutdown date: 2026-09-28; Model / system: davinci-002; Recommended replacement: gpt-5.6-terra

OpenAI, Deprecations page

Facts

API
OpenAI api.openai.com
Model
davinci-002
Kind
Model retirement
Takes effect
September 28, 2026
Calls after that day
Fail
Source
Deprecations page
Last updated
Verified
, against OpenAI's own pages

Questions

When does davinci-002 shut down?

Calls to the model davinci-002 on OpenAI stopped working on September 28, 2026.

What happens to calls after September 28, 2026?

They have failed since September 28, 2026.

What error does davinci-002 return once it is shut down?

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

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.


More from OpenAI 10

  1. sora-2Model retirement Stopped working
  2. sora-2-2025-10-06Model retirement Stopped working
  3. sora-2-2025-12-08Model retirement Stopped working
  4. sora-2-proModel retirement Stopped working
  5. sora-2-pro-2025-10-06Model retirement Stopped working
  6. babbage-002Model retirement Stopped working
  7. gpt-3.5-turbo-1106Model retirement Stopped working
  8. gpt-3.5-turbo-instructModel retirement Stopped working
  9. gpt-5.4-cyberModel retirement Stopped working
  10. ft-babbage-002Model retirement Stopped working

You fixed this one by hand.

Okapi opens the pull request with the fix before the next breaking change reaches your code.

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.