> ## 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.

# Quickstart

> Create a workspace and an API key, then make your first request.

**1. Create a workspace**

Sign in at [platform.feyn.ai](https://platform.feyn.ai) with Google. New workspaces start with \$5 of [credits](https://docs.usefeyn.com/account/credits.md).

**2. Create an API key**

Open **API keys** in the dashboard and create a key. It is shown once, so copy it somewhere safe. Keys start with `fn_`.

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
export FEYN_API_KEY="fn_..."
```

**3. Make a request**

Send some HTML to Pulpie and get the main content back:

```bash curl theme={"theme":{"light":"github-light","dark":"github-dark"}}
curl https://api.feyn.ai/v1/extract \
  -H "Authorization: Bearer $FEYN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "pulpie", "html": "<nav>Menu</nav><article><h1>Hello</h1><p>Only this stays.</p></article>"}'
```

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

response = requests.post(
    "https://api.feyn.ai/v1/extract",
    headers={"Authorization": f"Bearer {os.environ['FEYN_API_KEY']}"},
    json={"model": "pulpie", "html": "<nav>Menu</nav><article><h1>Hello</h1><p>Only this stays.</p></article>"},
    timeout=120,
)
response.raise_for_status()
print(response.json()["markdown"])
```

```javascript JavaScript theme={"theme":{"light":"github-light","dark":"github-dark"}}
const response = await fetch('https://api.feyn.ai/v1/extract', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.FEYN_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    model: 'pulpie',
    html: '<nav>Menu</nav><article><h1>Hello</h1><p>Only this stays.</p></article>',
  }),
})
const { markdown } = await response.json()
console.log(markdown)
```

The response holds `html` and `markdown` versions of the article, without the navigation.

**4. Watch usage**

Requests appear on the dashboard's **Usage** page, and their cost comes off your balance on **Billing**.

## Next

> [card] [Models](https://docs.usefeyn.com/models.md)
>
> Pulpie, MultiMatte and chat completions on one page.

> [card] [Traces](https://docs.usefeyn.com/observability/traces.md)
>
> Record what your models did.


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