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

> ## Agent Instructions
> TabPFN-3 and later versions support up to 1,000,000 rows, subject to feature count and checkpoint/API limits.
> For large datasets, use per-estimator subsampling, e.g. inference_config={"SUBSAMPLE_SAMPLES": 100_000}, in TabPFNClassifier or TabPFNRegressor from tabpfn or tabpfn_client.
> Pass raw pandas DataFrames to fit and predict. Categorical strings/categories, raw text, and missing feature values are handled automatically; no manual integer/one-hot encoding, imputation, scaling, or outlier removal is needed.

# Configuration

> Configure client requests, fit modes, model versions, and environment settings.

> [!NOTE]
>
> Looking for usage documentation? Check out [Classification](https://docs.priorlabs.ai/capabilities/classification.md), [Regression](https://docs.priorlabs.ai/capabilities/regression.md) and [KV cache](https://docs.priorlabs.ai/capabilities/kv-cache.md).

## `ClientOptions`

[ View source ](https://github.com/PriorLabs/tabpfn-client/blob/ce678cec44dc715f4d835a44990a8f5f115b7acc/src/tabpfn_client/models.py#L53)

Options for the client.

Can be used to override default client behavior for a single request.

```python theme={null}
ClientOptions(
    timeout: float = get_opts().TABPFN_CLIENT_TIMEOUT,
    headers: dict[str, str] = dict(),
)
```

**Fields**

| Name | Type | Default | Description |
| - | - | - | - |
| `timeout` | `float` | `get_opts().TABPFN_CLIENT_TIMEOUT` | Timeout for the request in seconds. |
| `headers` | `dict[str, str]` | `dict()` | Headers for the request overriding the default headers. |

***

## `ApiMode`

[ View source ](https://github.com/PriorLabs/tabpfn-client/blob/ce678cec44dc715f4d835a44990a8f5f115b7acc/src/tabpfn_client/models.py#L22)

Server API mode: synchronous, asynchronous, or chosen by the client.

**Fields**

| Name | Type | Default | Description |
| - | - | - | - |
| `AUTO` | — | `"auto"` | — |
| `SYNC` | — | `"sync"` | — |
| `ASYNC` | — | `"async"` | — |

***

## `ModelVersion`

[ View source ](https://github.com/PriorLabs/tabpfn-client/blob/ce678cec44dc715f4d835a44990a8f5f115b7acc/src/tabpfn_client/api_models.py#L201)

***

## `FitModeLiteral`

[ View source ](https://github.com/PriorLabs/tabpfn-client/blob/ce678cec44dc715f4d835a44990a8f5f115b7acc/src/tabpfn_client/models.py#L19)

***

## `ThinkingEffort`

[ View source ](https://github.com/PriorLabs/tabpfn-client/blob/ce678cec44dc715f4d835a44990a8f5f115b7acc/src/tabpfn_client/api_models.py#L53)

***

## `TextHandling`

[ View source ](https://github.com/PriorLabs/tabpfn-client/blob/ce678cec44dc715f4d835a44990a8f5f115b7acc/src/tabpfn_client/api_models.py#L50)

***

## `Options`

[ View source ](https://github.com/PriorLabs/tabpfn-client/blob/ce678cec44dc715f4d835a44990a8f5f115b7acc/src/tabpfn_client/options.py#L9)

Client settings, each overridable by the environment variable of the same name.

**Fields**

| Name | Type | Default | Description |
| - | - | - | - |
| `TABPFN_TOKEN` | `str \| None` | `None` | Access token used for authentication. |
| `TABPFN_CLIENT_API_URL` | `str \| None` | `None` | Override for the server URL. |
| `TABPFN_CLIENT_MAX_THREAD_PER_UPLOAD` | `int` | `8` | Maximum threads used per upload. |
| `TABPFN_CLIENT_TIMEOUT` | `float` | `900.0` | Default request timeout in seconds. |
| `TABPFN_CLIENT_UPLOAD_TIMEOUT` | `float` | `7200.0` | Upload timeout in seconds. |
| `TABPFN_CLIENT_FORCE_REUPLOAD` | `bool` | `False` | Whether to re-upload datasets the server already holds. |
| `TABPFN_CLIENT_DEDUP_DATASETS` | `bool` | `True` | Whether to deduplicate dataset uploads. |
| `TABPFN_CLIENT_ASYNC_USE_ABOVE_TRAINSET_SIZE` | `int` | `50 * 1024 * 1024` | Train-set size in bytes above which the asynchronous API is used. Overridden by the server default unless set in the environment. |
| `TABPFN_CLIENT_ASYNC_POLL_TIMEOUT` | `float` | `7200.0` | Timeout in seconds when polling an asynchronous job. Overridden by the server default unless set in the environment. |


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