AI Cost Calculator

Get cost estimates for GPT 3.5, GPT 4, and Claude. Either enter your prompt or type specific input and output tokens.

The machine is working...

This can take a moment. The page will automatically update when it has completed.

Token Breakdown

input and
output tokens

Model Max Context Input Cost Output Cost Total Cost
GPT 3.5 (0125) 16300 $0.0005 $0.0015 $0.002
GPT 4 (0125) 128000 $0.01 $0.03 $0.04
Claude Instant 100000 $0.0008 $0.0024 $0.0032
Claude 2.1 200000 $0.008 $0.024 $0.032

Note: this assumes the output is % of the input.

About this tool

I use the GPT and Claude API’s all the time but I find it hard to understand how much an individual prompt costs. For example...how much is a 1,433 token prompt if the model costs $0.003/1000 tokens?

I wanted a full picture of how much a prompt costs so I could save money and budget well.

This tool calulates the number of tokens required for a given prompt, and explores the cost tradeoffs between various AI models. Please note that this uses the OpenAI Tokenizer library, so other models will have different exact token counts.

If you find this useful, please share it with someone else.

More tools

Made by Stephen Bateman in Columbia, South Carolina.

Copyright © 2024 Simple Machine LLC. All rights reserved.