Blog
Practical notes on building Claude-powered SaaS: metering, billing, agent loops, MCP and evals.
- How to meter Claude API costs per user in a Next.js SaaS (with code)
Record every Claude API call per user, convert tokens to dollars with the official Claude 5.5 prices, enforce plan caps, and show a usage page. Drizzle + Postgres + the Anthropic TypeScript SDK.
- Claude API pricing calculator: monthly, per-request and per-user cost in 30 seconds
A free calculator for Claude Opus 5.5, Sonnet 5.5 and Haiku 5.5 costs. Enter requests, tokens and cache hit rate, get monthly and per-user cost, share the result by link.