Skip to main content
tech futures.Introduction to AI

Lesson 6: Behind the Scenes

Costs calculator

The costs of using LLMs for developers is based on the number of tokens in the messages sent to and from the LLM.

You can calculate costs for different numbers on the platform with the cost calculator interactive below.

The BFG (Big Friendly Giant) by Roald Dahl is a short novel that is roughly 50,000 tokens in length. 20 copies of this book would be around 1 million tokens. Most LLMs' pricing is in $ per 1 million tokens (like the last slide).

The calculator includes a "Copies of BFG book" to help you think about how much information you would be able to get for your money.

You can use the calculator below to explore how model selection, and the total number of input and output tokens, affect the overall cost.