LLM & OpenAI API Pricing Calculator
Estimate & Compare LLM APIs CostÂ
Begin with a clear financial plan using our LLM API Cost Calculator. Designed to tackle the complexities of pricing for major APIs like OpenAI, Azure, and Anthropic Claude, our OpenAI API pricing calculator delivers precise cost estimates for GPT and Chat GPT APIs. Updated to reflect the latest rates as of December 2023. Get your accurate cost estimate now and step confidently into building your innovative AI product.
Streamlined Pricing for OpenAI API Services
Calculated by
Provider | Model | Context | Input/1M Tokens | Output/1M Tokens | Per Call | Total | Last Updated |
---|---|---|---|---|---|---|---|
Chat/Completion Models | |||||||
OpenAI / Azure | gpt-4o-mini | 128K | $0.15 | $0.60 | $0 | $0 | Oct 2023 |
OpenAI / Azure | gpt-3.5-turbo-0125 | 16K | $0.50 | $1.50 | $0 | $0 | Sep 2021 |
OpenAI / Azure | gpt-3.5-turbo-instruct | 4K | $1.50 | $2.00 | $0 | $0 | Sep 2021 |
OpenAI / Azure | gpt-4o | 128K | $5.00 | $15.00 | $0 | $0 | Oct 2023 |
OpenAI / Azure | gpt-4o-2024-05-13 | 128K | $5.00 | $15.00 | $0 | $0 | Oct 2023 |
OpenAI / Azure | gpt-4-0125-preview | 128K | $10.00 | $30.00 | $0 | $0 | Dec 2023 |
OpenAI / Azure | gpt-4-1106-preview | 128K | $10.00 | $30.00 | $0 | $0 | Apr 2023 |
OpenAI / Azure | gpt-4-1106-vision-preview | 128K | $10.00 | $30.00 | $0 | $0 | Apr 2023 |
OpenAI / Azure | gpt-4 | 8K | $30.00 | $60.00 | $0 | $0 | Sep 2021 |
OpenAI / Azure | gpt-4-32k | 32k | $60.00 | $120.00 | $0 | $0 | Sep 2021 |
Anthropic | claude haiku | 200K | $0.25 | $1.25 | $0 | $0 | Aug 2023 |
Anthropic | claude sonnet | 200K | $3.00 | $15.00 | $0 | $0 | Aug 2023 |
Anthropic | claude opus | 200K | $15.00 | $75.00 | $0 | $0 | Aug 2023 |
Amazon | titan text lite | 4K | $0.30 | $0.40 | $0 | $0 | N/A |
Amazon | titan text express | 8K | $0.80 | $1.60 | $0 | $0 | N/A |
gemini 1.5 flash | 1M | $0.35 | $0.70 | $0 | $0 | Early 2023 | |
gemini 1.0 pro | 32K | $0.50 | $1.50 | $0 | $0 | Early 2023 | |
gemini 1.5 pro | 1M | $3.50 | $10.50 | $0 | $0 | Early 2023 | |
Mistral AI | mistral-small-latest | 32K | $2.00 | $6.00 | $0 | $0 | Sep 2021 |
Mistral AI | mistral-medium-latest | 32K | $2.70 | $8.10 | $0 | $0 | Sep 2021 |
Mistral AI | mistral-large-latest | 32K | $8.00 | $24.00 | $0 | $0 | Sep 2021 |
Mistral (via Anyscale) | mistral-7b-instruct-v0.1 | 32K | $0.15 | $0.15 | $0 | $0 | Sep 2021 |
Fine-tuning models | |||||||
OpenAI | gpt-3.5 turbo | 4K | $3.00 | $6.00 | $0 | $0 | Sep 2021 |
PaLM 2 | 8K | $2.00 | $2.00 | $0 | $0 | Mid 2021 | |
Embedding models | |||||||
OpenAI / Azure | text-embedding-3-small | 0.02 | $0 | $0 | |||
OpenAI / Azure | Ada v2 | $0.10 | $0 | $0 | |||
PaLM 2 | $0.40 | $0 | $0 | ||||
Cohere | Embed | $0.10 | $0 | $0 | |||
Mistral | Embed | $0.10 | $0 | $0 | |||
Amazon | tital embeddings | $0.10 | $0 | $0 | |||
OpenAI / Azure | text-embedding-3-large | $0.13 | $0 | $0 |
Provider | Model | Context | Input/1M Tokens | Output/1M Tokens | Per Call | Total | Last Updated |
---|---|---|---|---|---|---|---|
Chat/Completion Models | |||||||
OpenAI / Azure | gpt-4o-mini | 128K | $0.15 | $0.60 | $0 | $0 | Oct 2023 |
OpenAI / Azure | gpt-3.5-turbo-0125 | 16K | $0.50 | $1.50 | $0 | $0 | Sep 2021 |
OpenAI / Azure | gpt-3.5-turbo-instruct | 4K | $1.50 | $2.00 | $0 | $0 | Sep 2021 |
OpenAI / Azure | gpt-4o | 128K | $5.00 | $15.00 | $0 | $0 | Oct 2023 |
OpenAI / Azure | gpt-4o-2024-05-13 | 128K | $5.00 | $15.00 | $0 | $0 | Oct 2023 |
OpenAI / Azure | gpt-4-0125-preview | 128K | $10.00 | $30.00 | $0 | $0 | Dec 2023 |
OpenAI / Azure | gpt-4-1106-preview | 128K | $10.00 | $30.00 | $0 | $0 | Apr 2023 |
OpenAI / Azure | gpt-4-1106-vision-preview | 128K | $10.00 | $30.00 | $0 | $0 | Apr 2023 |
OpenAI / Azure | gpt-4 | 8K | $30.00 | $60.00 | $0 | $0 | Sep 2021 |
OpenAI / Azure | gpt-4-32k | 32k | $60.00 | $120.00 | $0 | $0 | Sep 2021 |
Anthropic | claude haiku | 200K | $0.25 | $1.25 | $0 | $0 | Aug 2023 |
Anthropic | claude sonnet | 200K | $3.00 | $15.00 | $0 | $0 | Aug 2023 |
Anthropic | claude opus | 200K | $15.00 | $75.00 | $0 | $0 | Aug 2023 |
Amazon | titan text lite | 4K | $0.30 | $0.40 | $0 | $0 | N/A |
Amazon | titan text express | 8K | $0.80 | $1.60 | $0 | $0 | N/A |
gemini 1.5 flash | 1M | $0.35 | $0.70 | $0 | $0 | Early 2023 | |
gemini 1.0 pro | 32K | $0.50 | $1.50 | $0 | $0 | Early 2023 | |
gemini 1.5 pro | 1M | $3.50 | $10.50 | $0 | $0 | Early 2023 | |
Mistral AI | mistral-small-latest | 32K | $2.00 | $6.00 | $0 | $0 | Sep 2021 |
Mistral AI | mistral-medium-latest | 32K | $2.70 | $8.10 | $0 | $0 | Sep 2021 |
Mistral AI | mistral-large-latest | 32K | $8.00 | $24.00 | $0 | $0 | Sep 2021 |
Mistral (via Anyscale) | mistral-7b-instruct-v0.1 | 32K | $0.15 | $0.15 | $0 | $0 | Sep 2021 |
Fine-tuning models | |||||||
OpenAI | gpt-3.5 turbo | 4K | $3.00 | $6.00 | $0 | $0 | Sep 2021 |
PaLM 2 | 8K | $2.00 | $2.00 | $0 | $0 | Mid 2021 | |
Embedding models | |||||||
OpenAI / Azure | text-embedding-3-small | 0.02 | $0 | $0 | |||
OpenAI / Azure | Ada v2 | $0.10 | $0 | $0 | |||
PaLM 2 | $0.40 | $0 | $0 | ||||
Cohere | Embed | $0.10 | $0 | $0 | |||
Mistral | Embed | $0.10 | $0 | $0 | |||
Amazon | tital embeddings | $0.10 | $0 | $0 | |||
OpenAI / Azure | text-embedding-3-large | $0.13 | $0 | $0 |
Provider | Model | Context | Input/1M Tokens | Output/1M Tokens | Per Call | Total | Last Updated |
---|---|---|---|---|---|---|---|
Chat/Completion Models | |||||||
OpenAI / Azure | gpt-4o-mini | 128K | $0.15 | $0.60 | $0 | $0 | Oct 2023 |
OpenAI / Azure | gpt-3.5-turbo-0125 | 16K | $0.50 | $1.50 | $0 | $0 | Sep 2021 |
OpenAI / Azure | gpt-3.5-turbo-instruct | 4K | $1.50 | $2.00 | $0 | $0 | Sep 2021 |
OpenAI / Azure | gpt-4o | 128K | $5.00 | $15.00 | $0 | $0 | Oct 2023 |
OpenAI / Azure | gpt-4o-2024-05-13 | 128K | $5.00 | $15.00 | $0 | $0 | Oct 2023 |
OpenAI / Azure | gpt-4-0125-preview | 128K | $10.00 | $30.00 | $0 | $0 | Dec 2023 |
OpenAI / Azure | gpt-4-1106-preview | 128K | $10.00 | $30.00 | $0 | $0 | Apr 2023 |
OpenAI / Azure | gpt-4-1106-vision-preview | 128K | $10.00 | $30.00 | $0 | $0 | Apr 2023 |
OpenAI / Azure | gpt-4 | 8K | $30.00 | $60.00 | $0 | $0 | Sep 2021 |
OpenAI / Azure | gpt-4-32k | 32k | $60.00 | $120.00 | $0 | $0 | Sep 2021 |
Anthropic | claude haiku | 200K | $0.25 | $1.25 | $0 | $0 | Aug 2023 |
Anthropic | claude sonnet | 200K | $3.00 | $15.00 | $0 | $0 | Aug 2023 |
Anthropic | claude opus | 200K | $15.00 | $75.00 | $0 | $0 | Aug 2023 |
Amazon | titan text lite | 4K | $0.30 | $0.40 | $0 | $0 | N/A |
Amazon | titan text express | 8K | $0.80 | $1.60 | $0 | $0 | N/A |
gemini 1.5 flash | 1M | $0.35 | $0.70 | $0 | $0 | Early 2023 | |
gemini 1.0 pro | 32K | $0.50 | $1.50 | $0 | $0 | Early 2023 | |
gemini 1.5 pro | 1M | $3.50 | $10.50 | $0 | $0 | Early 2023 | |
Mistral AI | mistral-small-latest | 32K | $2.00 | $6.00 | $0 | $0 | Sep 2021 |
Mistral AI | mistral-medium-latest | 32K | $2.70 | $8.10 | $0 | $0 | Sep 2021 |
Mistral AI | mistral-large-latest | 32K | $8.00 | $24.00 | $0 | $0 | Sep 2021 |
Mistral (via Anyscale) | mistral-7b-instruct-v0.1 | 32K | $0.15 | $0.15 | $0 | $0 | Sep 2021 |
Fine-tuning models | |||||||
OpenAI | gpt-3.5 turbo | 4K | $3.00 | $6.00 | $0 | $0 | Sep 2021 |
PaLM 2 | 8K | $2.00 | $2.00 | $0 | $0 | Mid 2021 | |
Embedding models | |||||||
OpenAI / Azure | text-embedding-3-small | 0.02 | $0 | $0 | |||
OpenAI / Azure | Ada v2 | $0.10 | $0 | $0 | |||
PaLM 2 | $0.40 | $0 | $0 | ||||
Cohere | Embed | $0.10 | $0 | $0 | |||
Mistral | Embed | $0.10 | $0 | $0 | |||
Amazon | tital embeddings | $0.10 | $0 | $0 | |||
OpenAI / Azure | text-embedding-3-large | $0.13 | $0 | $0 |
Total Price: $0.00
Streamlined Pricing for
OpenAI API Services
OpenAI, Anthropic, Google, Cohere, and Meta offer various AI models for specific tasks. Knowing how they price these models is essential for businesses and developers. Check the suitable models from below along with their pricing and make informed decisions for your projects.
Understanding OpenAI API Pricing
1. Tokens and Context Length Simplified
OpenAI API pricing primarily hinges on: tokens and context length. Tokens, generally three-quarters of a word, form the cost basis, as reflected in the OpenAI token calculator. Longer context lengths enable more complex tasks but increase the OpenAI API cost. This concept directly influences GPT API pricing, including chat GPT API pricing. The blend of token count and context length majorly determines the overall OpenAI API pricing.
2. Model Choice and Usage
LLM APIs pricing is based on model choice and usage.
- OpenAI GPT-4: A leading-edge model, GPT-4 boasts extensive general knowledge and specialized expertise. Ideal for complex instructions and problem-solving, it offers precise outputs but at a higher cost. GPT-4 Turbo, it’s faster and more affordable variant, supports a substantial 128K context limit, enhancing its range of applications.
- OpenAI GPT-3.5 Turbo: Optimized for dialogue and conversational interfaces, GPT-3.5 Turbo is the go-to model for chatbot technology. It stands out for its speed and cost-effectiveness in text generation, making it a popular choice for real-time, interactive applications.
- Anthropic Claude 2: Known for its impressive 100K context length, Claude 2 excels in summarizing large documents and handling detailed Q&A sessions. While its extensive context capacity is a significant advantage, it comes at the cost of speed and affordability.
- Llama 2: Developed by Meta, this open-source model is akin to GPT-3.5 Turbo in performance. Notably cost-effective, it specializes in English text summarization and question answering. Although it’s limited to English, its affordability and versatility make it a strong contender in the AI landscape.
- Gemini Series by Google: This series includes Gemini Ultra, Pro, and Nano. Gemini Ultra rivals OpenAI’s GPT-4 in capabilities, while Gemini Pro aligns more with GPT-3.5 in performance. This range offers versatile, multimodal functionalities, catering to diverse AI needs.
- PaLM 2 by Google: PaLM 2 is distinguished by its advanced multilingual capabilities and reasoning prowess. Trained on a vast, diverse dataset, it excels in tasks requiring complex language understanding and translation, including coding, making it ideal for academic and technical applications.
- Mistral AI Models: Mistral AI offers accessible, open-source models like Mistral 7B and Mixtral, which provide rapid and cost-efficient solutions. These models compete with larger models like GPT-3.5 Turbo in performance, offering a viable alternative for budget-conscious AI applications.
Use the OpenAI token calculator for precise GPT API pricing.
FAQ’s
About OpenAI API Pricing Calculator
What Determines ChatGPT API Pricing?
ChatGPT API pricing is based on the number of tokens processed. Costs are incurred for both input and output tokens, with the total price reflecting the total tokens used in a session.
What is the Function of the OpenAI Pricing Calculator?
The OpenAI pricing calculator estimates costs by calculating the number of tokens your usage requires. It factors in the token count for inputs and outputs to provide a comprehensive cost estimate.
What is the Word Count Equivalent of 1K Tokens?
How Can I Implement LLMs in My Current Setup?
How is Fine-Tuning Pricing Structured?
Pricing for fine-tuning is typically calculated based on the amount of computing resources used and the number of tokens processed during the training process.