📖 Step 9: AI/LLM#350 / 498
Token Economy
Token Economy
📖One-line summary
The cost structure where LLM API usage is billed per token.
💡Easy explanation
The cost model where LLM API bills are charged per token. Longer prompts and longer answers cost more, so efficient design matters.
✨Example
토큰 = API 비용 단위
입력 토큰1,200 tk × $0.003$0.0036
출력 토큰800 tk × $0.015$0.012
합계$0.0156
프롬프트가 길수록 비용 증가!
⚡Vibe coding prompt examples
>_
Estimate our chatbot's monthly API cost, comparing models, assuming 1,000 daily users, 10 turns per user, and an average of 800 input / 300 output tokens.
>_
Write TypeScript middleware that tracks token usage per user and blocks requests once they exceed their plan's limit.
>_
List ways to cut token costs (prompt caching, conversation summarization, output length limits, routing to cheaper models) ordered by savings.
Try these prompts in your AI coding assistant!