6 billing interview questions, asked at Anthropic, Stripe, Google and 1 more company. Last asked Sep 2026.
Monthly AI token billing with plan switchingCodingYou are building the monthly invoice step for a chat-based AI product that charges by token usage. Each chat session produces one record, given as a comma-separated string with…
Design a token-based rate limiter for AI agentsSystem designAI agents call paid services, and each call spends billing tokens. Design a limiter that caps how many tokens each agent or customer can spend over time, enforces the cap across…
Last asked Aug 2026
Running cost of streamed token usageCodingToken usage for model requests arrives as a stream of usage records rather than all at once. Compute what the usage costs, keeping the totals correct as each new record arrives…
Last asked Jul 2026
Design review: usage billing for an LLM APISystem designYou are reviewing a teammate's design doc before it goes to the wider team. Read it, then lead a critique: what is wrong, how bad each problem is, what you would change, and what…
Cloud usage bill from regional hourly ratesCodingYou are writing the billing step for a cloud platform. A customer's usage report says which region they ran in and how many hours they used each service. A pricing table gives the…