Dev builds AI grammar checker extension, learns costly lesson about LLM default settings
A developer built TypoGuard, a Chrome extension that uses AI to correct spelling and grammar in real time across web apps like Gmail, ChatGPT, and Messenger. The extension routes text through a Cloudflare Worker to keep the Gemini API key secure server-side, while per-device usage quotas are tracked via Workers KV without requiring user accounts. During development, the creator noticed API bills running roughly 100 times higher than expected, eventually tracing the cause to Gemini's default 'thinking tokens' being enabled — a feature unnecessary for simple correction tasks. Disabling thinking tokens with a single configuration line immediately brought costs back to normal levels. The project is available as a freemium Chrome extension, with the developer highlighting proxy-first architecture and careful review of API defaults as key lessons learned.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in