AI Code Review Tool Cuts Per-Run Cost from 50 Cents to 4 Cents with Architecture Overhaul

Developer Maneshwar, building an AI code review tool called LiveReview, found that costs reached 50 cents per single run after Gemini File Search's free tier expired, driven largely by a reasoning model being used for retrieval tasks. The core problem was that Gemini 3.5 Flash's reasoning feature billed at $9.00 per million output tokens, meaning the tool was paying a thinking model simply to locate and return relevant text passages. A structural fix — separating the search step so one query could feed multiple draft generations — reduced costs from roughly $0.70 to $0.12 per run, but the underlying issue remained. The team ultimately replaced cloud-based retrieval with a local Chroma vector store using the Qwen3-Embedding-0.6B model, BM25 search, and Reciprocal Rank Fusion, while switching inference to DeepSeek V4 Flash at about one-tenth the token cost. The combined changes brought each run down to approximately 4 cents, a reduction of over 90 percent from the original price.
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