Suppose you're asked to design a chat assistant serving 10 million daily users. Before choosing a model or designing the architecture, a few estimates can help you understand the scale of the system: how many tokens it needs to process per second, how much a hosted LLM API would cost, and how many GPUs you might need if you host the model yourself.
In traditional system design, capacity estimation focuses on requests per second, storage, and bandwidth. These still matter, but GenAI systems introduce another important factor: token usage, which directly affects cost, latency, and compute requirements. A request with 10,000 input tokens requires significantly more processing than one with just 500, even though both count as a single request.
In this chapter, we'll work through these estimates step by step. We'll start by estimating token counts and throughput, then calculate API costs, GPU memory requirements, and inference capacity for self-hosted models.