Okapi Okapi

OpenAI · Model retirement

davinci-002

Stopped working

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

What to use instead of davinci-002

Move to gpt-5.6-terra, recommended by OpenAI.

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.

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

More from OpenAI

Know before your API calls break.

Okapi finds the calls a breaking change hits in your code and opens the pull request that fixes them.

Add to GitHub