Self-hosted vs API: the actual math at 1M / 10M / 100M tokens/month
API pricing is per-token and scales linearly. On-prem cost is mostly fixed. The crossover depends on usage, but it's lower than most people think. Here's the math at three usage tiers, with assumptions disclosed.