# code-davinci-edit-001

Calls to the model code-davinci-edit-001 on OpenAI stopped working on January 4, 2024.

On January 4, 2024, the model code-davinci-edit-001 was retired. Requests targeting model code-davinci-edit-001 fail since that date. This change directly affects any API integrations that still invoke this specific model.

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

HTTP 404

```json
{"error":{"message":"The model `code-davinci-edit-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. The initially listed replacement, gpt-4o, stops working on January 14, 2027.

- API: OpenAI (api.openai.com)
- Model: code-davinci-edit-001
- Kind: Model retirement
- Takes effect: January 4, 2024
- Calls after that day: fail
- Calls it hits: `model code-davinci-edit-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-edit-001/

## OpenAI's words

> Shutdown date: Jan 4, 2024; Affected model or feature: code-davinci-edit-001; Listed replacement: gpt-4o; Notice date: Jul 6, 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-edit-001.yaml
