# davinci-002

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

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 OpenAI returns once davinci-002 is gone

HTTP 404

```json
{"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

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.

- API: OpenAI (api.openai.com)
- Model: davinci-002
- Kind: Model retirement
- Takes effect: September 28, 2026
- Calls after that day: fail
- Calls it hits: `model davinci-002`
- Source: [Deprecations page](https://developers.openai.com/api/docs/deprecations)
- Verified: November 6, 2026, against OpenAI's own pages
- Page: https://www.okapi.bot/models/openai/davinci-002/

## OpenAI's words

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

Okapi finds the calls this change hits in your repo and opens the pull request with the fix: https://github.com/apps/okapi-agent
