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

> ## Agent Instructions
> Call https://api.feyn.ai only; the hosts behind it are not public.
> Authenticate with a workspace API key in the Authorization header: `Authorization: Bearer fn_...`. Keep keys server-side.
> For chat completions, use the official OpenAI SDK with base_url https://api.feyn.ai/v1 and a model ID from GET /v1/models.
> On 429, wait for the Retry-After header before retrying. Failed requests are not charged.

# Rate limits

> Per-workspace limits on each model, and what to do when you hit them.

| Model | Requests per second | Concurrent requests |
| - | - | - |
| Pulpie | 1 | 5 |
| MultiMatte | 0.25 | 2 |
| Jiffy | 2 | 8 |

Limits apply per workspace, across all of its keys. Self-serve traffic also shares GPU capacity, so at busy times you can be limited below these numbers.

Over the limit, the API answers `429` with a `rate_limit_error` and a `Retry-After` header in seconds. Wait that long and retry:

```python theme={"theme":{"light":"github-light","dark":"github-dark"}}
import time, requests

def extract(html, key):
    while True:
        response = requests.post(
            "https://api.feyn.ai/v1/extract",
            headers={"Authorization": f"Bearer {key}"},
            json={"model": "pulpie", "html": html},
            timeout=120,
        )
        if response.status_code != 429:
            response.raise_for_status()
            return response.json()
        time.sleep(int(response.headers.get("Retry-After", "1")))
```

Need more throughput? Contracts come with their own limits; contact us at [feyn.ai](https://feyn.ai).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.