Try Bifrost Enterprise free for 14 days.
Request access

davinci-002 Cost Calculator - Text-completion-openai

Calculate the cost of using davinci-002 from Text-completion-openai for your AI applications

Pricing data last updated:

davinci-002 Cost Calculator

Mode: Completion

Max: 16,384 tokens

Max: 4,096 tokens

Cost Breakdown

Input Cost$0.002000
Output Cost$0.002000
Total Cost$0.004000

Pricing Details

Input: $0.00000200 per token
Output: $0.00000200 per token
[ WE'RE OPEN SOURCE ]

Scale with the Fastest LLM Gateway

Built for enterprise-grade reliability, governance, and scale. Deploy in seconds.

Model Specifications

Limits

Max Input Tokens16,384
Max Output Tokens4,096
Max Tokens4,096

About davinci-002

davinci-002 is a completion model from Text-completion-openai, one of 6 completion models they offer. It is priced at $2.00 per 1M input tokens and $2.00 per 1M output tokens, ranking 16 out of 22 completion models by cost and cheaper than 27% of models in this category. Its 16K-token context window is in the top 27% among completion models.

Pricing Information

Input Cost$2.00 per 1M tokens
Output Cost$2.00 per 1M tokens

Note: Use the interactive calculator above to estimate costs for your specific usage patterns.

Technical Specifications

Maximum Input Tokens16,384
Maximum Output Tokens4,096
Maximum Total Tokens4,096

Pro Tip

Use the maximum token limits shown above to understand the model's capacity. This model can handle up to 16,384 input tokens. The maximum output length is 4,096 tokens.

How davinci-002 Pricing Compares

At $2.00 per 1M input tokens and $2.00 per 1M output tokens, davinci-002 ranks 16 out of 22 completion models by input cost. It is more expensive compared to the median of $1.50 for completion models, and is cheaper than 27% of models in this category.

davinci-002 is one of 6 Text-completion-openai completion models, its 16K-token context window places it in the top 27% of completion models.

ModelProviderInput / 1M tokensOutput / 1M tokensvs davinci-002
gpt-3.5-turbo-instruct-0914Azure Text$1.50$2.00-25%
gpt-35-turbo-instructAzure Text$1.50$2.00-25%
gpt-35-turbo-instruct-0914Azure Text$1.50$2.00-25%

Alternatives to davinci-002

Similar completion models from other providers

Azure Text
gpt-3.5-turbo-instruct-0914
$1.50/1M input
-25% vs davinci-002
Azure Text
gpt-35-turbo-instruct
$1.50/1M input
-25% vs davinci-002
Azure Text
gpt-35-turbo-instruct-0914
$1.50/1M input
-25% vs davinci-002
Cohere
command
$1.00/1M input
-50% vs davinci-002
Cohere
command-nightly
$1.00/1M input
-50% vs davinci-002

Frequently Asked Questions

Is davinci-002 cheaper than gpt-3.5-turbo-instruct-0914?

No. davinci-002 costs $2.00 per 1M input tokens while gpt-3.5-turbo-instruct-0914 costs $1.50 per 1M input tokens, making gpt-3.5-turbo-instruct-0914 25% more affordable for input. However, davinci-002 may offer different capabilities or performance characteristics that justify the price difference.

How does davinci-002 pricing compare to the average completion model?

davinci-002 input pricing is $2.00 per 1M tokens, which is 33% above the median of $1.50 for completion models. It ranks 16 out of 22 completion models by input cost, making it cheaper than 27% of models in this category. For output, it costs $2.00 per 1M tokens compared to the median of $2.00.

What makes davinci-002 different from other Text-completion-openai models?

Among Text-completion-openai's 6 completion models, davinci-002 ranks 5 by input cost.

What are the best alternatives to davinci-002?

The most comparable completion models to davinci-002 are: gpt-3.5-turbo-instruct-0914 from Azure Text ($1.50/1M input tokens); gpt-35-turbo-instruct from Azure Text ($1.50/1M input tokens); gpt-35-turbo-instruct-0914 from Azure Text ($1.50/1M input tokens); command from Cohere ($1.00/1M input tokens). These alternatives were selected based on similar capabilities, pricing, and provider diversity. You can compare any of these models in detail using the Bifrost Model Library.

How large is davinci-002's context window?

davinci-002 supports up to 16,384 input tokens, placing it in the top 27% of completion models by context window size (rank 3 of 22). This makes it suitable for processing long documents, extensive code repositories, or maintaining detailed conversation histories.

How do I calculate davinci-002 costs?

davinci-002 is priced based on input and output tokens. Use the interactive calculator at the top of this page to estimate costs for your specific workload. Enter your expected input and output tokens volume and the calculator will show the total cost breakdown. For reference, processing 1M input tokens costs $2.00 and generating 1M output tokens costs $2.00.