AI Foundations: Tokens & Pricing is like counting how many blocks you use to build a tower, each block is a token, and depending on how many blocks you need, it costs more or less.
Imagine you're playing with building blocks. Each time you stack one up, that's a token. If your tower has 10 blocks, that’s 10 tokens. Now, if you’re using special blocks (like colored ones), they might cost a little more than the regular white ones, just like how some tokens cost more than others in AI.
How Tokens Work
Think of tokens as pieces of a sentence. A word is one token, and sometimes a part of a word counts as one too. So if you say “Hello, world!” that’s two tokens: “Hello,” and “world!”
How Pricing Works
Pricing is like how much it costs to use your blocks. If you’re building with regular blocks, it might cost $0.01 per block. But if you're using glittery ones (like fancy tokens), it could cost more, say $0.10 per block.
So when you ask AI a question or tell it what to do, it breaks your message into tokens, and then the price depends on how many of them you use. Simple!
Examples
- A child uses building blocks to understand how a tower is built, each block representing a word or part of a sentence.
Ask a question
See also
- Are Programmers Obsolete? Will AI Replace Them?
- AI Literacy: How do AI Image Generators Work?
- Beginner's Guide | What is ComfyUI? | What is Stable Diffusion?
- Can AI chatbots secretly insert ads into their responses?
- Can AI be used to fake scientific images and undermine trust?