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

# API overview

> Base URL, authentication and endpoints.

The API follows the OpenAI format, so the OpenAI SDKs work with it.

## Base URL

```text theme={null}
https://api.trustqai.com/v1
```

All requests use HTTPS.

## Authentication

Send your API key as a bearer token in the `Authorization` header:

```bash theme={null}
curl https://api.trustqai.com/v1/models \
  -H "Authorization: Bearer $QAI_API_KEY"
```

Create keys on the **Keys** page of the dashboard; see [API keys](https://docs.trustqai.com/platform/api-keys.md). A missing, wrong, expired or revoked key returns `401`.

## Model names

Send the model as its full name, including the provider, for example `qai/qwen3.8-27b`. [GET /models](https://docs.trustqai.com/api-reference/list-models.md) lists every model your key can use.

## Endpoints

| Method | Path | Purpose |
| - | - | - |
| `GET` | [/models](https://docs.trustqai.com/api-reference/list-models.md) | List the models your key can use |
| `POST` | [/chat/completions](https://docs.trustqai.com/api-reference/chat-completions.md) | Generate a reply to a conversation |

## Errors

Errors return a non-2xx status and a JSON body with an `error` object. See [Errors](https://docs.trustqai.com/api-reference/errors.md).


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