# Limits and caching

> Request limits, how the cache works, and what to expect from response times.

Source: https://docs.invariant-ai.com/limits

## Request limits

| Limit | Value |
| --- | --- |
| Fields per request | 1 to 50 |
| Locations per request | 1 |
| Coordinate bounds | lat 18 to 72, lng -180 to -65 |
| New keys per network | 5 per hour |
| Active keys per email | 5 |

## Caching

Successful answers (`ok` and `absent`) are cached for each field's `ttl_seconds`, 24 hours for elevation. The cache key is the field plus the coordinate rounded to 5 decimal places, about 1.1 m, so two requests a few centimetres apart share an answer.

- Cached responses have `cached: true` and keep the original `fetched_at`.
- `failed` answers are never cached; the next request tries the source again.

## Response times

Each field's sources are called in parallel, and each source is called once per request, however many fields read it. So a request takes about as long as its slowest source. On 2026-11-22, an uncached point took these times:

| Request | Typical | Slowest seen |
| --- | --- | --- |
| one fast field, such as `elevation` or `tract_geoid` | 0.2–1.1 s | about 2 s |
| `nearest_flowline_name` (USGS National Map) | 1–6 s | about 9 s |
| a cached point | under 0.1 s |  |

**Request deadline: 12 seconds.** Any field without an answer by then comes back as `failed` with `retryable: true`. The other fields are returned as normal, so one slow provider never holds up the whole response. Retry the failed field a little later.

When a provider is down, the API also skips it for 60 seconds after three failures in a row (see [Responses](https://docs.invariant-ai.com/responses)).

Set your client timeout to at least 20 seconds.
