Davinci 002 API Pricing
davinci-002- Input / output
- $2.00 / $2.00 per 1M tokens
- Context
- 16K tokens
- Max output
- 4K tokens
As of November 24, 2026, Davinci 002 costs $2.00 per 1M input tokens and $2.00 per 1M output tokens on OpenAI. It has a 16,384-token context window and returns up to 4,096 tokens per response.
davinci-002 on September 28, 2026. Prices below are the last listed and kept for reference.Davinci 002 pricing by provider
2 listings across 1 provider. Token prices are in US dollars per 1M tokens. The highlighted row is the price quoted above.
What Davinci 002 costs in practice
1,000 requests with 2,000 input and 500 output tokens each
| OpenAI | $5.00 |
| OpenAI batch | $2.50 |
Davinci 002 cost calculator
At OpenAI's price ($2.00 input, $2.00 output per 1M tokens), 10,000 requests a day with 1,000 input and 500 output tokens each cost $30.00 a day, about $900 a month. Change the numbers for your workload.
- Per request
- $0.003
- Per day
- $30.00
- Per month (30 days)
- $900
Use Davinci 002 with LiteLLM
Call Davinci 002 through the LiteLLM Python SDK, or put it behind the LiteLLM proxy and send OpenAI-format requests to /v1/completions. LiteLLM tracks the cost of every request at these prices.
from litellm import completion
response = completion(
model="davinci-002",
messages=[{"role": "user", "content": "Hello!"}],
)model_list:
- model_name: davinci-002
litellm_params:
model: davinci-002
api_key: os.environ/OPENAI_API_KEYcurl http://0.0.0.0:4000/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $LITELLM_API_KEY" \
-d '{
"model": "davinci-002",
"messages": [{"role": "user", "content": "Hello!"}]
}'Davinci 002 FAQ
How much does Davinci 002 cost?
Davinci 002 costs $2.00 per 1M input tokens and $2.00 per 1M output tokens on OpenAI. Batch requests cost $1.00 per 1M input tokens and $1.00 per 1M output tokens.
What is the context window of Davinci 002?
Davinci 002 has a 16,384-token context window and returns up to 4,096 tokens per response.
Which providers offer Davinci 002?
Davinci 002 is available from OpenAI through LiteLLM, using the model name davinci-002.
How do I call Davinci 002 with an OpenAI-compatible API?
Use the LiteLLM Python SDK with model="davinci-002", or add the model to the LiteLLM proxy's config.yaml and send requests to /v1/completions from any OpenAI client. LiteLLM tracks the cost of every request at the prices on this page.
Is Davinci 002 being deprecated?
OpenAI deprecated davinci-002 on September 28, 2026.
Sources
Prices come from LiteLLM's open-source model_prices_and_context_window.json, which LiteLLM uses to calculate the cost of every request. Maintainers update it from each provider's published pricing, and this page is usually rebuilt within 20 minutes of every change. Provider pricing pages:
LiteLLM docs: OpenAI.
Provider pages: OpenAI.