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

# Introduction

> Base URL, authentication and conventions for every endpoint.

All endpoints live on one base URL:

```
https://api.feyn.ai
```

Every request except `GET /health` needs a workspace API key as a bearer token (see [authentication](https://docs.usefeyn.com/authentication.md)):

```
Authorization: Bearer fn_...
```

Request and response bodies are JSON, except the MultiMatte cutout, which returns a PNG. Request bodies are capped at 8 MB.

Trace and score endpoints also take an `X-Feyn-Project` header with the project's key.

Errors follow the shapes on the [errors](https://docs.usefeyn.com/errors.md) page.


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