A PRACTICAL LITTLE TOOL

Know the cost before the call.

Estimate API text token costs using your provider's current rates. Your entries stay in your browser.

Your usage

Enter tokens per request. Use your provider's tokenizer for an exact count.

The provider's rates

Example rates are shown below for illustration. Replace them with current official rates.

USD
USD

How the estimate works

For each request, multiply the input token count by the input price per million, then add the output token count multiplied by the output price per million. Divide by one million, and multiply by the number of requests.

A token is a piece of text, not necessarily a word. Token counts vary by language and model. Use the provider's usage logs or official tokenizer when accuracy matters.