From Dev.to
Tracking LLM cost per customer in Node.js with AsyncLocalStorage
Your OpenAI invoice tells you what you spent. It doesn't tell you which customer you spent it on. If you sell a flat-price plan on top of an LLM, that second number is the one that decides whether a c...
