> ## Documentation Index
> Fetch the complete documentation index at: https://docs.heyaskr.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Rate limits

> Request limits and retry guidance.

Requests are rate limited to keep the service fast for everyone. If you exceed a
limit you'll receive `429 Too Many Requests`.

## Handling 429

Retry with exponential backoff, waiting a little longer between each attempt:

```python theme={null}
import time, requests

def with_retry(fn, retries=4):
    for i in range(retries):
        r = fn()
        if r.status_code != 429:
            return r
        time.sleep(2 ** i)   # 1s, 2s, 4s, 8s
    return r
```

<Note>
  Need higher limits? Contact [ask@heyaskr.ai](mailto:ask@heyaskr.ai).
</Note>
