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

> An OpenAI-compatible chat completions API for open-weight models.

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

| Endpoint | Purpose |
| - | - |
| `GET /v1/models` | List the model IDs available to your key |
| `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"
```

<Columns cols={2}>
  <Card title="Get access" icon="key" href="/docs/access">
    Create an API key and send it with each request.
  </Card>

  <Card title="Quickstart" icon="play" href="/docs/quickstart">
    Create a key and send the first request.
  </Card>

  <Card title="Models" icon="layer-group" href="/docs/models">
    Model IDs, limits and supported features.
  </Card>

  <Card title="Pricing" icon="receipt" href="/docs/pricing">
    Prices per model and what is billed.
  </Card>

  <Card title="API reference" icon="book" href="/apis/api-reference-intro">
    Fields and responses of both endpoints.
  </Card>
</Columns>


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