⚡ Inference Latency Estimator

Estimate total LLM response latency from time-to-first-token, output tokens per second, and network round-trip time. Compare Small/Fast, Medium, Large, and Frontier Reasoning model speed tiers side by side for the same response length.

⚡ Latency Inputs
500 tok
📈 Latency Estimate
Total Estimated Latency
Time to First Token
Generation Time
Network Round-Trip
Total Latency (seconds)
Effective Throughput
Tokens per Second Used
Total Latency by Speed Tier (same output length)
⚠️ Formula: total latency = TTFT + (output tokens ÷ tokens/sec × 1000) + network round-trip. Tokens-per-second is treated as constant for simplicity; real-world throughput can vary with server load, batching, and hardware contention.
📊

Enter your details and click Calculate to see results

Guide

About the Inference Latency Estimator

The time a user waits for an AI response is made up of three distinct pieces: time-to-first-token (TTFT), the generation time for the rest of the output, and network round-trip time between the client and server. Different models trade these off very differently — a small fast model might have a low TTFT and high tokens-per-second, while a frontier reasoning model can have a much higher TTFT (due to internal reasoning steps) and a slower generation rate. This calculator breaks down and totals all three components so you can estimate real end-to-end latency for a given model and response length.

How It Works

Select a model speed tier — Small/Fast (~120 tok/s), Medium (~60 tok/s), Large (~25 tok/s), Frontier Reasoning (~15 tok/s), or enter a custom tokens-per-second figure — then set your expected time-to-first-token, the number of output tokens you expect the model to generate, and the network round-trip time between your client and the inference server. The calculator computes generation time as output tokens divided by tokens-per-second (converted to milliseconds), adds that to TTFT and network round-trip, and reports the total estimated latency in both milliseconds and seconds, along with effective throughput (total tokens divided by total time).

Why It Matters

Latency directly shapes how an AI feature feels to use — a chatbot with sub-second TTFT and streaming output feels instantaneous even if the full response takes several seconds, while a non-streaming API call with 5+ seconds of total latency can feel sluggish regardless of output quality. Understanding which component (TTFT, generation, or network) dominates your total latency tells you where to invest engineering effort: a slow TTFT points to server-side queuing or prompt processing bottlenecks, a slow generation rate points to model choice or hardware, and a large network component points to deployment region or connection quality.

Tips for Accurate Results

  • Measure your actual TTFT and tokens-per-second from real API calls or benchmarks rather than relying purely on published averages, since actual performance varies by provider, load, and prompt length.
  • For chat-style applications, streaming tokens to the UI means users perceive latency closer to TTFT rather than total latency — factor this into your user experience design, not just the raw total.
  • Network round-trip time depends heavily on physical distance and connection quality between your users and the serving region — measure it for your actual user base rather than assuming a fixed value.
  • Reasoning-heavy models often generate a large number of hidden reasoning tokens before the visible answer, which inflates effective output token count well beyond what the user sees — account for this when estimating total latency for such models.
  • Re-benchmark periodically — inference optimizations (better serving frameworks, speculative decoding, hardware upgrades) frequently improve tokens-per-second for a given model over time.
About

Understanding LLM Latency

⏱️

Time to First Token

TTFT covers request queuing, prompt processing, and the model's initial computation before any output appears. It's the delay users perceive as "thinking time" and is critical for perceived responsiveness.

📝

Generation Time

Once the first token arrives, remaining tokens stream out at the model's tokens-per-second rate. Larger, more capable models generally generate more slowly per token than smaller, faster models.

🌐

Network Round-Trip

The physical time for a request and response to travel between client and server. Small for nearby, well-connected users; can dominate total latency for distant or poor-connection users on short responses.

FAQ

Frequently Asked Questions

Common questions about LLM inference latency

What is time-to-first-token (TTFT) and why does it matter?
TTFT is the delay between sending a request and receiving the first generated token back, covering request queuing, prompt processing, and initial model computation. It matters because it's the part of latency a user notices as "the app is thinking" before any text starts streaming in.
Why do reasoning models have much higher total latency?
Frontier reasoning models generate many internal reasoning tokens before producing a final answer, and often run at lower tokens-per-second than smaller models due to larger parameter counts. Both factors compound: more total tokens at a slower per-token rate results in significantly higher end-to-end latency, sometimes 10x or more versus a small fast model.
Does network round-trip time really make a meaningful difference?
For short responses, yes — a 50-100ms round trip can be a significant fraction of total latency when TTFT and generation time are both fast. For long responses from slower models, network round-trip becomes a smaller relative contributor since generation time dominates.
How can I reduce perceived latency for end users?
Stream tokens to the UI as they're generated rather than waiting for the full response, use a faster/smaller model for latency-sensitive interactions, cache or pre-compute common responses, deploy inference servers closer to your users, and consider speculative decoding or other optimizations that increase effective tokens per second.
Is tokens-per-second constant throughout a response?
Not exactly — real-world throughput can vary with batching load on the server, output length, and hardware contention from concurrent requests. This calculator uses a constant average tokens-per-second for simplicity, a reasonable approximation for lightly loaded or dedicated inference.

Related Calculators

Explore other AI & infrastructure tools