AiPrice: Token and Pricing calculation for OpenAI LLM models

Calculate your OpenAI API prompt token count and get accurate pricing. Get started now, no credit card needed.

* By entering your email you agree to our terms of use

+ API Requests

+ Developers

AI Models

curl -X POST 'https://api.aiprice.dev/chat' \
  -H 'X-API-KEY: Api token here' \
  -d '{"model": "text-curie-001", "content": "Hello"}' \
  -H "Content-Type: application/json"
AiPrice - API for calculating OpenAI LLM tokens and pricing | Product Hunt

Calculate your prompt

Please select a model.

Pricing

Frequently Asked Questions

AiPrice is an API service that allows you to calculate the estimated cost of your prompt that will be sent to the OpenAI API. Our calculator counts the tokens and applies the pricing according to the OpenAI pricing plans. All costs are just an estimate.

The calculating method is based on the latest available pricing data released by OpenAI at https://openai.com/pricing. However, please note that actual costs may vary and we cannot guarantee the price.

AiPrice has a free version providng 50 credits a month. You can sign up with your email and instantly recieve your API key and start using it.

If you are using OpenAI's API and would like to have an estimate cost of your prompt before making the API call, then AiPrice is a perfect fit for you.

We support all models provided by OpenAI. You can check out our supported models by visiting our docs.