Skip to main content

Try TabPFN on your data

Get predictions from our most advanced model, TabPFN-3-Plus, no setup required.

How to Use TabPFN

TabPFN can be used in two ways, depending on your workflow and compute setup. Use the API for our hosted service and for production use. For testing and if you have GPUs, install the open-source package from Hugging Face.

OSS Package

Recommended for researchers, ML practitioners, and engineers with GPU availability. TabPFN is available as an open-source Python package on GitHub with the checkpoint for non-commercial use hosted on HuggingFace. It provides the model locally, giving you full control over your data and experimentation.
To get access to the latest features and our TabPFN-3 model, please upgrade the package to the latest version:

GitHub

Check out our TabPFN open-source GitHub repository.
Use the TabPFNClassifier just like any scikit-learn estimator:
The first time you use the model, a browser window will open for you to log in and accept the model license. For more information, see the detailed instructions.
GPU recommended (e.g., NVIDIA T4 at minimum) or A100/H100 for optimal inference speed.

TabPFN API

Recommended for data teams and developers who want TabPFN’s performance without managing infrastructure. The Prior Labs API provides cloud-hosted access to TabPFN and manages GPU compute, scaling, and model versioning. You can use it either through a REST API or the Python SDK.

Using the Python SDK (API Client)

GitHub

Check out our tabpfn-client open-source GitHub repository for a detailed getting-started guide and examples.
Instantiate the hosted TabPFNClassifier for API-backed predictions:
Authentication
To authenticate you can run a prediction, which will prompt you to sign in if needed. To log in programmatically, follow these steps:
To log in on another machine using your access token and skip the interactive flow, use:

Using the REST API

You must sign up and generate an API key before making any requests. Requests without valid authentication headers will be rejected. For more information, visit the API Reference.
The /v1/fit and /v1/predict multipart endpoints used in this quickstart will remain available for a short period of time. New integrations should use the /tabpfn/* JSON flow — see API getting started for the full walkthrough.
First, define your dataset paths and authentication details. This allows you to reuse them across fit and predict calls.
Next, upload your training dataset to the /v1/fit endpoint. The API automatically preprocesses the data.
Once fitted, you can send your test dataset to the /v1/predict endpoint using the returned model_id. You’ll receive predictions and/or probabilities in JSON format.

API Reference

You can follow the step-by-step onboarding instructions in the API Reference, which also includes detailed endpoint descriptions and authentication examples.

Selecting the model version

By default you’ll get the latest TabPFN model. However, you can also specify a particular version. See the details of the available models.

OSS Package

  1. Ensure your installation is up to date: pip install -U tabpfn
  2. Instantiate the classifier or regressor:

API via Python SDK

  1. Ensure your installation is up to date: pip install -U tabpfn-client
  2. Instantiate the classifier or regressor:
Alternatively, a variety of models can be selected using the model_path option:

API via REST

The model is selected using the model_path argument in the payload. The default model paths are as follows:
For example, the payload to specify the TabPFN-3 regression model is
The TabPFN (v1) model is only available through the OSS package, via the tag on GitHub.

FAQ

Have questions? Check out the FAQ for answers to common topics about GPUs, limits, API usage, and more.