# davinci

Calls to the model davinci on OpenAI stopped working on January 4, 2024.

## The error OpenAI returns once davinci is gone

HTTP 404

```json
{"error":{"message":"The model `davinci` 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. davinci-002, named first, stopped working on 2026-09-28. davinci-002 was the named replacement base model and is itself deprecated, shutting down September 2026 — after which OpenAI hosts no base models at all.

- API: OpenAI (api.openai.com)
- Model: davinci
- Kind: Model retirement
- Announced: July 6, 2023
- Takes effect: January 4, 2024
- Calls after that day: fail
- Calls it hits: `model davinci`
- Source: [models.dev](https://modeldeprecations.dev/api/v1/models.json?provider=openai)
- Verified: November 6, 2026, against OpenAI's own pages
- Page: https://www.okapi.bot/models/openai/davinci/

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