Tokencost is a tool that helps calculate the cost of using Large Language Model (LLM) APIs by estimating the cost of prompts and completions. It provides easy integration and the ability to count prompt tokens before sending OpenAI requests. The post also includes a table listing various LLM models and their prompt and completion costs.

21m read timeFrom github.com
Post cover image
Table of contents
InstallationUsageCost tableRunning testsContributingLicense

Sort: