Skip to main content
POST
/
tabpfn
/
fit
Fit (TabPFN JSON API)
curl --request POST \
  --url https://api.priorlabs.ai/tabpfn/fit \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "train_set_upload_id": "123e4567-e89b-12d3-a456-426614174000",
  "task": "classification",
  "tabpfn_systems": [
    "preprocessing",
    "text"
  ],
  "thinking_effort": "medium"
}
'
{
  "fitted_train_set_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}

Authorizations

Authorization
string
header
required

Bearer token for authentication, obtained after signing up and generating an API key.

Body

application/json
train_set_upload_id
string<uuid>
required
task
enum<string>
required

Specifies the type of task to perform — either classification or regression.

Available options:
classification,
regression
tabpfn_systems
enum<string>[]
Available options:
preprocessing,
text,
thinking
tabpfn_config
Tabpfn Config · object
thinking_effort
enum<string> | null
Available options:
medium,
high
thinking_timeout_s
number | null
thinking_effort_metric
string | null
force_refit
boolean
default:false

Whether to force the fitting of the train set even if a fittedtrain set and transform states already exist.

Response

Fitted train set id (JSON; may be streamed with leading whitespace on long fits).

fitted_train_set_id
string<uuid>
required