Time to First Byte (TTFB)
What is Time to First Byte (TTFB)?
In one sentence: Time to First Byte is how long it takes from sending a request until the first bit of data comes back.
It is a general web measurement. For AI APIs, the first byte might be a header or setup message, so it can be shorter than time to first token.
What does Time to First Byte (TTFB) look like?
An API might send headers after 100 ms but the first real token after 400 ms.
Why does Time to First Byte (TTFB) matter?
TTFB helps find delays in networks and servers.
Last updated · Fact-checked by The AI Math
Linking to this page from a lesson or article? <a href="https://getaimath.com/dictionary/time-to-first-byte-ttfb/">Time to First Byte (TTFB), explained simply</a> (The AI Math Dictionary)