# code-davinci-001

Calls to the model code-davinci-001 on OpenAI stopped working on March 23, 2023.

On March 23, 2023, the model code-davinci-001 was shut down. Requests sent to model code-davinci-001 fail since that day.

## The error OpenAI returns once code-davinci-001 is gone

HTTP 404

```json
{"error":{"message":"The model `code-davinci-001` 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-6-luna. While gpt-4o was named first as a replacement, it stops working on January 14, 2027.

- API: OpenAI (api.openai.com)
- Model: code-davinci-001
- Kind: Model retirement
- Takes effect: March 23, 2023
- Calls after that day: fail
- Calls it hits: `model code-davinci-001`
- Source: [Deprecations page](https://developers.openai.com/api/docs/deprecations?ref=manifest.build)
- Verified: November 30, 2026, against OpenAI's own pages
- Page: https://manifest.build/models/openai/code-davinci-001/

## OpenAI's words

> Shutdown date: Mar 23, 2023; Affected model or feature: code-davinci-001; Listed replacement: gpt-4o; Notice date: Mar 20, 2023

This data is open source (MIT): https://github.com/mnfst/model-deprecations. Edit this entry: https://github.com/mnfst/model-deprecations/blob/main/models/openai/code-davinci-001.yaml
