Track and Cap LLM Cost per Customer (With Real Numbers)
Track and Cap LLM Cost per Customer (With Real Numbers)
OpenRouter tested three simulated customers making ten requests each and found the most expensive customer cost 225 times as much as the cheapest ($0.693814 vs $0.0030792), showing request count alone doesn't reflect customer cost. It recommends passing a stable customer ID in the user field, recording usage.cost from each response rather than estimating from token counts, and reconciling totals against generation records and Broadcast. For spending caps, application-level reservations are needed when customers share a key, while per-customer API key limits apply otherwise; a $0.02 key limit blocked the 15th request, and a $0.05 key accumulated $0.067792 before the next request was rejected.
Source: OpenRouter Announcements · openrouter.ai