Meta Pixel

OpenAI GPT API Pricing Calculator And Other LLM

Calculate and compare the cost of using OpenAI, Azure, Anthropic Claude, Llama 2, Google Gemini, Mistral, and Cohere LLM APIs for your AI project with our simple and powerful free calculator. Latest numbers as of April 2025

Thank you for the amazing response on Reddit! 37K views • 98% upvotes • 96 shares

View discussion

Tip: Share your calculations with others by copying the URL - it includes all your current settings and filters.

Provider Model Knowledge Cutoff Context Input/1M tokens Output/1M tokens Per Call
Chat/Completion Models
Google gemini 2.0 flash with context caching June 2024 1 Million $0.03 $0.40 $0.0001 $0.00
OpenAI / Azure gpt-4.1-nano June 2024 1M $0.10 $0.40 $0.0001 $0.00
Mistral (via Anyscale) mistral-7b-instruct-v0.1 Sep 2021 32K $0.15 $0.15 $0.0001 $0.00
Google gemini 2.0 flash June 2024 1 Million $0.10 $0.40 $0.0001 $0.00
OpenAI / Azure gpt-4o-mini October 2023 128K $0.15 $0.60 $0.0001 $0.00
Google gemini 2.5 flash April 2024 1 Million $0.15 $0.60 $0.0001 $0.00
Mistral AI open-mistral-7b 32K $0.25 $0.25 $0.0002 $0.00
Amazon titan text lite N/A 4K $0.30 $0.40 $0.0002 $0.00
Google gemini 1.5 flash Early 2023 1 Million $0.35 $0.70 $0.0002 $0.00
Anthropic claude haiku Aug 2023 200K $0.25 $1.25 $0.0003 $0.00
OpenAI / Azure gpt-4.1-mini June 2024 1M $0.40 $1.60 $0.0004 $0.00
OpenAI / Azure gpt-3.5-turbo-0125 Sep 2021 16K $0.50 $1.50 $0.0004 $0.00
Google gemini 1.0 pro Early 2023 32K $0.50 $1.50 $0.0004 $0.00
Mistral AI open-mixtral-8x7b Sep 2021 32K $0.70 $0.70 $0.0004 $0.00
Amazon titan text express N/A 8K $0.80 $1.60 $0.0006 $0.00
Meta (via Anyscale) llama 2 70b Sep 2022 4K $1.00 $1.00 $0.0006 $0.00
OpenAI / Azure gpt-3.5-turbo-instruct Sep 2021 4K $1.50 $2.00 $0.0010 $0.00
Mistral AI mistral-small-latest Sep 2021 32K $2.00 $6.00 $0.0016 $0.00
Google gemini 2.5 pro April 2024 1 Million $1.25 $10.00 $0.0016 $0.00
OpenAI / Azure gpt-4.1 June 2024 1M $2.00 $8.00 $0.0018 $0.00
Mistral AI mistral-medium-latest Sep 2021 32K $2.70 $8.10 $0.0022 $0.00
Google gemini 1.5 pro Early 2023 1 Million $3.50 $10.50 $0.0028 $0.00
Anthropic claude sonnet Aug 2023 200K $3.00 $15.00 $0.0030 $0.00
OpenAI / Azure gpt-4o October 2023 128K $5.00 $15.00 $0.0040 $0.00
OpenAI / Azure gpt-4o-2024-05-13 October 2023 128K $5.00 $15.00 $0.0040 $0.00
Mistral AI mistral-large-latest Sep 2021 32K $8.00 $24.00 $0.0064 $0.01
OpenAI / Azure gpt-4-0125-preview Dec 2023 128K $10.00 $30.00 $0.0080 $0.01
OpenAI / Azure gpt-4-1106-preview Apr 2023 128K $10.00 $30.00 $0.0080 $0.01
OpenAI / Azure gpt-4-1106-vision-preview Apr 2023 128K $10.00 $30.00 $0.0080 $0.01
OpenAI / Azure gpt-4-turbo-preview Dec 2023 128K $10.00 $30.00 $0.0080 $0.01
OpenAI / Azure gpt-4-vision-preview Apr 2023 128K $10.00 $30.00 $0.0080 $0.01
Anthropic claude opus Aug 2023 200K $15.00 $75.00 $0.0150 $0.02
OpenAI / Azure gpt-4 Sep 2021 8K $30.00 $60.00 $0.0210 $0.02
OpenAI / Azure gpt-4-32k Sep 2021 32k $60.00 $120.00 $0.0420 $0.04
Fine-tuning Models
OpenAI gpt-3.5 turbo Sep 2021 4K $3.00 $6.00 $0.0000 $0.00
Google palm 2 Mid 2021 8K $2.00 $2.00 $0.0000 $0.00
Embedding Models
OpenAI / Azure ada v2 $0.10 $0.0000 $0.00
OpenAI / Azure text-embedding-3-small $0.02 $0.0000 $0.00
OpenAI / Azure text-embedding-3-large $0.13 $0.0000 $0.00
OpenAI / Azure text-embedding-ada-002 $0.10 $0.0000 $0.00
Google palm 2 $0.40 $0.0000 $0.00
Cohere embed $0.10 $0.0000 $0.00
Mistral embed $0.10 $0.0000 $0.00
Amazon tital embeddings $0.10 $0.0000 $0.00
Image Generation Models
OpenAI gpt-image-1 (square, low) Apr 2025 1024x1024 (272 Output Tokens) $5.00 $40.00 $0.0134 $0.01
OpenAI gpt-image-1 (landscape, low) Apr 2025 1536x1024 (400 Output Tokens) $5.00 $40.00 $0.0185 $0.02
OpenAI gpt-image-1 (portrait, low) Apr 2025 1024x1536 (408 Output Tokens) $5.00 $40.00 $0.0188 $0.02
OpenAI gpt-image-1 (square, medium) Apr 2025 1024x1024 (1056 Output Tokens) $5.00 $40.00 $0.0447 $0.04
OpenAI gpt-image-1 (landscape, medium) Apr 2025 1536x1024 (1568 Output Tokens) $5.00 $40.00 $0.0652 $0.07
OpenAI gpt-image-1 (portrait, medium) Apr 2025 1024x1536 (1584 Output Tokens) $5.00 $40.00 $0.0659 $0.07
OpenAI gpt-image-1 (square, high) Apr 2025 1024x1024 (4160 Output Tokens) $5.00 $40.00 $0.1689 $0.17
OpenAI gpt-image-1 (landscape, high) Apr 2025 1536x1024 (6208 Output Tokens) $5.00 $40.00 $0.2508 $0.25
OpenAI gpt-image-1 (portrait, high) Apr 2025 1024x1536 (6240 Output Tokens) $5.00 $40.00 $0.2521 $0.25
OpenAI computer-use-preview-2025-03-11 Mar 2025 Computer Vision $3.00 $12.00 $0.0000 $0.00

FAQ about OpenAI GPT API & Other LLMs

Where can I find the official OpenAI & other LLMs pricing?

You can find the official OpenAI pricing here.
For gpt-image-1 pricing, you can find it here.
For Mistral Platform pricing and rate limits, you can find them here.
Claude AI pricing and rate limits can be found here.
Google's AI pricing, or gemini pricing, or palm pricing can be found here.
Amazon's AI pricing, or bedrock pricing, can be found here.

What is an OpenAI token?

A token is a part of a text that can be word, subword, punctuation mark or symbol. It is the unit of account of OpenAI APIs.

What is an OpenAI execution?

An OpenAI execution is the combination of the invite to OpenAI and the response from OpenAI. All text in the prompt and response count for OpenAI billing.

What is an OpenAI prompt?

The OpenAI prompt is the instructions or question you send to OpenAI in order to get a response. It is text written in normal, natural language, for example:
Prompt: "Write a tagline for an ice cream shop".

What is an OpenAI response?

This is the response OpenAI gives you to the prompt you sent, for example:
Prompt: "Write a tagline for an ice cream shop"
Response: "We serve up smiles with every scoop!"

Can I set an OpenAI billing limit?

You can configure a billing limit in the OpenAI billing settings, in order to control your costs.

How to monitor my OpenAI API cost based on usage?

You can review your usage in the OpenAI dashboard usage section. You can easily set a spending limit in the OpenAI dashboard billing section.

How to estimate my token usage for a given prompt?

You can use OpenAI's tokenizer to estimate your token usage for a given prompt. You can find the calculator here.

How does OpenAI calculate tokens for images in vision models like GPT-4.1?

OpenAI vision models process images by dividing them into tiles. For GPT-4.1, images are first resized if they exceed 2048px in any dimension. If the shortest side is larger than 768px, it's scaled down. The image is then divided into 512×512px tiles, with each tile costing 170 tokens. A base cost of 85 tokens is added per request. The total token cost is calculated as: (number of tiles × 170 tokens per tile) + 85 base tokens. You can use our Image Tokens calculator tab to estimate these costs precisely.