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

# Models

> Which models you can use, how they are named, and turning thinking off.

We offer a small set of open-weight models, and it changes over time, so don't hard-code a list. The **Providers** page shows what's on offer, and the API lists what your key can use.

## List the models your key can use

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

The response follows the OpenAI format. Each entry's `id` is the name to send as `model` in your requests. See [GET /models](https://docs.trustqai.com/api-reference/list-models.md).

## Model names

Model names include the provider, so the open-weight models start with `qai/`, for example `qai/qwen3.8-27b`. Send the name exactly as the API lists it.

> [!NOTE]
>
> If a model you used before stops appearing in the list, it has been withdrawn or is temporarily unavailable. Requests to it fail until it is back. Ask in the [Qai Discord](https://discord.gg/T34HuPHMRa) if you are unsure.

## Thinking

Some models, such as the Qwen models, think before they answer. The thinking comes back separately from the answer, in the message's `reasoning_content` field, and the answer is in `content` as usual.

Thinking is on by default for these models. Turn it off for a request with `chat_template_kwargs`:

```json theme={null}
{
  "model": "qai/qwen3.8-27b",
  "messages": [{ "role": "user", "content": "Hello!" }],
  "chat_template_kwargs": { "enable_thinking": false }
}
```

In the OpenAI Python SDK, pass it through `extra_body`:

```python theme={null}
response = client.chat.completions.create(
    model="qai/qwen3.8-27b",
    messages=[{"role": "user", "content": "Hello!"}],
    extra_body={"chat_template_kwargs": {"enable_thinking": False}},
)
```

> [!WARNING]
>
> `max_tokens` covers the thinking as well as the answer. With thinking on and a low limit, a model can use the whole limit thinking and return an empty `content` with `finish_reason` set to `length`. Raise `max_tokens` or turn thinking off.


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