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

# Exceptions

> Handle missing fitted models, interactive login failures, and Foundry errors.

<Info>
  Looking for usage documentation? Check out [Classification](/capabilities/classification) and [Regression](/capabilities/regression).
</Info>

<div className="python-reference-heading">
  <h2 id="fittedmodelnotfounderror">
    `FittedModelNotFoundError`
  </h2>

  <a className="python-reference-source" href="https://github.com/PriorLabs/tabpfn-client/blob/5f8aee56ad2a788458704c342347e9bc282cebe9/src/tabpfn_client/errors.py#L16" aria-label="View source for FittedModelNotFoundError"><span aria-hidden="true">\</></span> View source <span aria-hidden="true">↗</span></a>
</div>

The server has no fitted model for the id the estimator refers to.

Raised by `predict` when `model_id_` -- set by `fit()`, restored by
`load_model()` or assigned directly -- is unknown to the server: the fitted
model was deleted (for instance through [`UserDataClient`](/api-reference/python/tabpfn-client/user-data#user-data-client)), or it belongs to
a different account. Call `fit()` again to create a new one.

***

<div className="python-reference-heading">
  <h2 id="interactiveloginerror">
    `InteractiveLoginError`
  </h2>

  <a className="python-reference-source" href="https://github.com/PriorLabs/tabpfn-client/blob/5f8aee56ad2a788458704c342347e9bc282cebe9/src/tabpfn_client/interactive_auth.py#L51" aria-label="View source for InteractiveLoginError"><span aria-hidden="true">\</></span> View source <span aria-hidden="true">↗</span></a>
</div>

Raised when an interactive login cannot be completed.

***

<div className="python-reference-heading">
  <h2 id="foundryendpointerror">
    `foundry.FoundryEndpointError`
  </h2>

  <a className="python-reference-source" href="https://github.com/PriorLabs/tabpfn-client/blob/5f8aee56ad2a788458704c342347e9bc282cebe9/src/tabpfn_client/foundry/estimator.py#L41" aria-label="View source for foundry.FoundryEndpointError"><span aria-hidden="true">\</></span> View source <span aria-hidden="true">↗</span></a>
</div>

A non-2xx answer from the Foundry endpoint, with its error payload.

Subclasses [`httpx.HTTPStatusError`](https://www.python-httpx.org/exceptions/#httpx.HTTPStatusError), so callers that already catch that
keep working. The endpoint reports failures as a JSON body carrying
`error_code` and `trace_id`; both are surfaced on the exception (and in
its message) because the `trace_id` is what the endpoint provider needs
in order to look the failure up server-side.

```python theme={null}
foundry.FoundryEndpointError(
    message: str,
    *,
    request: Any,
    response: Any,
    error_code: Optional[str] = None,
    trace_id: Optional[str] = None,
)
```

**Parameters**

<div className="python-reference-table">
  | Parameter | Type | Default | Description |
  | - | - | - | - |
  | <span id="foundryendpointerror-message" /><code className="python-reference-parameter">message</code> | <code className="python-reference-type">str</code> | Required | — |
  | <span id="foundryendpointerror-request" /><code className="python-reference-parameter">request</code> | <code className="python-reference-type">Any</code> | Required | — |
  | <span id="foundryendpointerror-response" /><code className="python-reference-parameter">response</code> | <code className="python-reference-type">Any</code> | Required | — |
  | <span id="foundryendpointerror-error-code" /><code className="python-reference-parameter">error\_<wbr />code</code> | <code className="python-reference-type">Optional\[str]</code> | `None` | — |
  | <span id="foundryendpointerror-trace-id" /><code className="python-reference-parameter">trace\_<wbr />id</code> | <code className="python-reference-type">Optional\[str]</code> | `None` | — |
</div>


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