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

# Fortytwo API

> OpenAI-compatible chat completions on open-weight models, with zero data retention by default.

The Fortytwo API is compatible with the OpenAI Chat Completions API. It has two endpoints:

| Endpoint | Purpose |
| - | - |
| `GET /v1/models` | List the available model IDs |
| `POST /v1/chat/completions` | Generate a response |

Base URL: `https://api.fortytwo.network/v1`. Every request needs an API key.

```bash theme={null}
curl https://api.fortytwo.network/v1/models \
  -H "Authorization: Bearer $FORTYTWO_API_KEY"
```

> **[Get access](https://docs.fortytwo.network/docs/access.md)**
>
> Create an API key and send it with each request.

> **[Quickstart](https://docs.fortytwo.network/docs/quickstart.md)**
>
> Create a key and send the first request.

> **[Models](https://docs.fortytwo.network/docs/models.md)**
>
> Model IDs, limits and supported features.

> **[Pricing](https://docs.fortytwo.network/docs/pricing.md)**
>
> Prices per model and what is billed.

> **[API reference](https://docs.fortytwo.network/apis/api-reference-intro.md)**
>
> Fields and responses of both endpoints.


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