code-davinci-002
code-davinci-002 retirement: shut down Mar 23, 2023, replacement gpt-3.5-turbo-instruct.
Countdown
Off
Mar 23, 2023
Price per 1M tokens
— in · — out
Standard tier, list price
Price comparison
Full migration notes: code-davinci-002 vs gpt-3.5-turbo-instruct
Timeline
Deprecation announced
Mar 20, 2023
Shutdown
Mar 23, 2023
Source: https://developers.openai.com/api/docs/deprecations · checked Nov 16, 2026
Docs conflict: Codex table says 2023-03-23, GPT table says 2024-01-04; replacement differs (gpt-4o vs gpt-3.5-turbo-instruct).
Change history
Related OpenAI models
FAQ
When does code-davinci-002 shut down?
OpenAI lists Mar 23, 2023 as the shutdown date for code-davinci-002 (1335 days ago). After that date, API calls to it fail.
What should I replace code-davinci-002 with?
OpenAI recommends gpt-3.5-turbo-instruct.
How much does code-davinci-002 cost per 1M tokens?
OpenAI's current pricing page lists no standard per-token price for code-davinci-002 because it is retired.
How do I find every place my code calls code-davinci-002?
Paste your code or a public GitHub repo URL into ModelRot's free scanner. It lists every file and line that uses code-davinci-002 or any other retiring model, with the replacement and cost change.