# Speed and warm-up

What to expect today. These are observations, not a service-level agreement.
Realtime numbers are measured ; the others are estimates.

| Endpoint | Typical response time | Notes |
|---|---|---|
| `GET /models`, `GET /avatars` | under 0.3 s | |
| `POST /speech-to-sign/gloss` | about 0.5–2 s | Grows with text length. |
| `POST /speech-to-sign/realtime` | p50 0.85 s, p95 1.0 s (measured, short sentences) | Clips are pre-rendered; the response is a playlist, not a video. |
| `POST /warmup` | under 1 s when awake; about 13 s when it has to wake the engine | Free. Call it early; you do not need to wait for it. |
| `POST /speech-to-sign/studio` | several seconds to a minute or more | Grows with the length of the video; one MP4 is rendered per call. |
| `POST /speech-to-speech` | about 0.3–1 s | |

**First call after a quiet period** took about 13 s in our measurement while capacity
started up (p50 of later calls: 0.85 s). After `POST /v1/warmup` the first call took about
1.1 s. Later calls are fast again.

## Playing clips quickly

- The first clip can take a moment to start downloading. Preload the next clip while the
  current one plays (see "Quickstart").
- Clip URLs for the same word are identical within a time window, so browsers and CDNs
  can cache common words. Do not add cache-busting query strings.
- Start playing as soon as the first clip is ready instead of waiting for all of them.
- Loop `idle.url` between sentences so the avatar is always visible.

## For live use

- Send text in short chunks (a sentence or phrase) rather than long paragraphs.
- Keep one HTTPS connection alive (HTTP keep-alive) to save connection setup time.
- Call from a server close to your users.

## Warm-up

The signing engine sleeps when nobody is using it. The first call after a quiet period
pays the wake-up time. To hide it:

- **Call `POST /v1/warmup` when your user opens your interpreter view** (free, 6/min per
  key). By the time they finish their first sentence the engine is awake.
- The first live sign call after more than 10 minutes of quiet also starts a wake-up in
  the background (that call itself still waits).
- While any live key is sending sign calls, the engine is kept awake for about 15 minutes
  after the last call. Nothing is charged for warm-up.

## Coming

- Published latency percentiles per endpoint on a status page.
