Understand AI and LLMs.
Tokens are small pieces of text“I”, “love”, “cats”, ”!” are all examples of a token. LLMs process text as tokens, analyze them, and then predict the next tokens to generate a response. AI tokens are a complex topic related to all AI apps, not just Bolt. For detailed background on tokens in AI, check out Nvidia blog | Explaining Tokens — the Language and Currency of AI.
Task | Approx. token cost |
---|---|
Simple function (10 lines) | 50-100 tokens |
Medium script (50 lines) | 300-500 tokens |
Complex logic (100+ lines) | 1000+ tokens |
Full application (~1000 lines) | 8000+ tokens |