59Design metering and billing for a multi-tenant LLM API charged by tokens. No double-billing on retries, and quotas that actually hold.▼hardOpenAIAnthropicAWS2 replies◆ premiumEvery request emits a usage event worth real money, clients retry on timeouts, and tenants must be stopped at their quota and never overcharged. The hard parts are idempotent usage events and the succeeded-but-confirmation-lost case where the work happened but the client never heard back.Open full answer →
29Implement a GPU credit calculator.▼mediumOpenAICoreWeave1 replies◆ premiumA reported OpenAI phone-screen exercise that looks trivial and is graded on edge cases: money-safe arithmetic, billing increments, unknown SKUs, and the clarifying questions you ask before typing.Open full answer →
28Design token-based metering and billing for an LLM product, and explain why it must be decoupled from the call path.▼hardOpenAIAnthropicSalesforce1 replies◆ premiumThe LLM billing round has three trapdoors: retries double-charging customers, metering latency leaking into inference, and month-end numbers that don't match the provider invoice. The design that survives all three is the answer.Open full answer →