
- Tanga
- Gemini
- AI
- Optimizatsiya
80% of the AI bill came from one kind of question
73
Tanga has been on Gemini for two days, and the first bill appeared in Google's console: $0.27. A small number, but I wanted to know where it went.
The bot records the tokens and cost of every AI call itself. The result was a surprise: 80% of the spend came from questions. A text entry costs a tenth of a cent, while a single question like "what did I spend the most on this month?" costs a cent and a half.
The cause was input size. Every question carried the latest 150 entries as JSON, with the same seven keys repeated on every row. That list made up 83% of 13,950 tokens.
I didn't cut the data — I changed its shape. Entries are now sent as a table: column names once, then only values. Input dropped to 7,550 tokens.
Accuracy couldn't be sacrificed, so I tested both formats on five questions with known answers: old 5/5, new 5/5. A single question became 35% cheaper.
Takeaway: measure what you send to the AI — it isn't the request that costs, it's what you attach to it.