23:39
2026-05-21
dev.to
artificial-intelligence
Per-user cost attribution for your AI APP
To track AI API costs per individual user by attaching a `userId` tag to every LLM call. It presents three methods: using wrapper SDKs like `@voightxyz/openai` with `withTrace`, leveraging the Vercel โฆ