Simple web app to estimate LLM spend from tokens per call and request volume. State is shareable via URL params.
llmcosts.vercel.app
LLM features look cheap at prototype scale and expensive at production scale.
llmcosts gives quick order-of-magnitude clarity.
Cost per call = (input_tokens / 1e6 * input_price_per_1M) + (output_tokens / 1e6 * output_price_per_1M)
Billable calls/day = calls/day * (1 - cache_hit_rate)
Edit src/lib/pricing.ts. Values are placeholders.
npm install
npm run dev