---
title: "Speed · Tempo AI Platform"
description: "Live tokens per second and time to first token by provider and model, timed on every model call the Tempo gateway serves: Workers AI, Boundless, Vercel AI Gateway, OpenRouter and the inference auction's sellers."
url: "https://gateway.tempo-dev.workers.dev/speed"
---

> Every page of the Tempo AI Platform is Markdown at its URL with .md, or with Accept: text/markdown. The index of every page is https://gateway.tempo-dev.workers.dev/llms.txt, the API https://gateway.tempo-dev.workers.dev/openapi.json and the MCP server https://gateway.tempo-dev.workers.dev/mcp.

# Speed

Tokens per second by provider, live from every model call the gateway serves.

Every model call the gateway makes is timed where its answer arrives: how long the first token took, and how many tokens a second came after it. A call shows up here the moment it finishes. Nothing about who made it is kept. The same numbers are JSON at [/api/speed](https://gateway.tempo-dev.workers.dev/api/speed?minutes=60), and each call streams over a WebSocket at `/api/speed/live`.

## Right now

Output tokens a second across the gateway over the last minute, counted as each call finishes and spread over the time it streamed. The page draws it live; GET /api/speed has the totals per provider.

## By provider

tok/s is the median speed of streamed calls after their first token, with the 10th to 90th percentile beside it. First token is the median time from the gateway sending a call to its first token. The flow is each provider's output tokens a second over the last 5 minutes. The table is JSON at GET /api/speed, under providers.

## By model

The same model on different providers, fastest first. The table is JSON at GET /api/speed, under models.

## Live

The last calls to finish, newest first.

## How it is measured

- The clock starts when the gateway sends the call to the provider, after payment, so first token includes the provider's queue, the prompt's prefill and the network between them. For Boundless it also includes the MPP voucher the call pays with.
- A first or last token is a chunk carrying text, reasoning or tool call input. tok/s is the output tokens the provider reported over the time from the first token to the last. Reasoning a provider counts but does not stream is left out of tok/s, since it came before the first token.
- Only streamed calls with at least 32 output tokens over at least 100 ms count toward tok/s. Shorter answers, and calls answered whole, count as calls and tokens only.
- A provider is whoever served the tokens. Each inference seller in the auction is its own provider, marked seller, under the name it registered with, and its clock starts when the gateway sends it the call, so a seller that refused first adds nothing. A call through Vercel AI Gateway or OpenRouter counts for the provider the router says it went to, such as anthropic via Vercel, or for the router when it does not say.
- A call that fails before its answer, or whose client leaves before the provider's usage arrives, is not counted.
- The gateway keeps the provider, model, tokens and timings of each call for 24 hours, and never who made it.

**Every provider and model over the last hour**

```sh
curl 'https://gateway.tempo-dev.workers.dev/api/speed?minutes=60'
```

**Every call as it finishes, in a browser or Node 22**

```ts
const socket = new WebSocket("wss://gateway.tempo-dev.workers.dev/api/speed/live?minutes=5");
socket.onmessage = event => console.log(JSON.parse(event.data));
```

The socket first sends `snapshot` with the calls of the window, then `samples` as calls finish. Each is `[id, at, provider, model, output, span, tps, ttft, name]`: when it finished, who served it, its output tokens, the milliseconds they streamed over, its tok/s, its first token in milliseconds and a seller's name. The provider is `workers-ai`, `boundless`, `vercel` or `openrouter`, the router and the provider it went to such as `vercel:anthropic`, or `auction:` and the seller's bidder id, as in `Gateway-Provider`. Send `ping` every 30 seconds to keep it open.
