Tracking AI costs across providers: Anthropic and OpenAI Admin APIs in one Next.js pageBoth expose usage and cost endpoints. Both have gotchas. Here's the wiring that actually worked.May 1, 2026·6 min read·16