AiPrice is an API to calculate OpenAI API prompt cost and token count.
What is AiPrice?
AiPrice allows anyone using an HTTP client to calculate the cost and number of tokens contained in a tip submitted to the OpenAI API. All models and types are supported and pricing is up to date. This is an API to easily calculate OpenAI token pricing.
How to use AiPrice?
Use any HTTP client to send a POST request to the AiPrice API endpoint, including your OpenAI model and content. The API returns the estimated fee and token amount.
AiPrice’s core features
OpenAI token fee calculation
OpenAI token quantity calculation
Supports all OpenAI models
Latest pricing