How to find which AI customers are costing you money
Brief
A spreadsheet can reveal which customers are unprofitable after AI costs are counted. The process requires customer-level revenue and token-cost data, followed by invoice reconciliation.
Build a customer-level margin view
- Use actual paid revenue for the last full month from Stripe or RevenueCat; account for discounts and divide annual plan payments by 12.
- Log each AI call’s customer ID, feature, model and token counts, including cached tokens where applicable. Calculate cost using the relevant token prices and keep a record of the price table version.
- Subtract AI cost from revenue per customer, then compare total estimated costs with the provider invoice. Investigate missing logs, outdated prices, cache pricing, volume discounts and shared API keys if the figures do not align.
Diagnose and address losses
- Review cost concentration, margins by plan, and costs by feature and model. Daily cost patterns can help distinguish usage spikes from steady heavy use.
- The article lists five possible causes: heavy legitimate use, loops or bugs, free or trial abuse, an unnecessarily expensive model, and bloated prompts.
- Suggested order: fix loops and add spend caps, then consider caching and model changes with quality checks; adjust pricing last.
Keep the audit current
- Repeat the check weekly, reviewing the ten worst customers, new spikes and differences between tracked costs and invoices.
- The author says Lancelot launched on November 27 and reports a simulated test with about 100 customers and 187,314 calls; the article notes there are no customer results yet.
Generated by AI from the original article. Check the source for full details.