Performance
Time to First Token (TTFT)
The latency between submitting a prompt to an LLM and receiving the first output token. Lower TTFT means faster response initiation, critical for interactive chatbot experiences.
What makes up time to first token
TTFT is measured from the moment a request is sent until the first output token arrives. Several stages add up inside it: network transit to the server, time waiting in a queue for a free GPU, loading the model into VRAM if it is not already resident, and the prefill phase. During prefill the model processes every prompt token in parallel and builds the key-value cache. This step is compute bound, so long prompts and large models raise TTFT. After the first token, generation moves into the decode phase, which is measured separately as time per output token.
Time to first token on OpenGPU
For interactive LLM inference on OpenGPU, two TTFT factors are handled by the network: where a request runs and how busy that GPU is. The routing layer weighs VRAM, GPU class, latency, geographic proximity, utilization and node health for each job, and places latency-sensitive work on fast nodes. Relay exposes this through one HTTPS endpoint designed for low-latency inference for agents, chatbots and tools, and it retries or re-routes a job if a provider slows down. The AI workloads page explains the prefill and decode phases in more detail.
What is a good time to first token?
There is no single standard, because the right target depends on the use case. For chat and voice interfaces, users notice delay quickly. Usability research has long treated about one second as the point where a pause starts to break a person's flow of thought, so many teams aim for a first token well inside that. For offline or batch processing jobs, TTFT matters little and total throughput is the better measure. Track TTFT at the 95th or 99th percentile, not only the average, since a few slow responses shape how fast an app feels.
How to reduce TTFT
Keep prompts lean, and reuse cached prefixes such as a fixed system prompt when the serving stack supports prefix caching. Keep models loaded to avoid cold starts, and use quantized or smaller models where quality allows. Stream tokens to the client so users see the first output as soon as it is generated instead of waiting for the full answer. Running the job close to users cuts network latency as well.