v1

latestOpenAPI 3.1.02026-07-2673250.3 KB
Prediction

Run Predictions

Deprecated: Prefer tabpfn-client or POST /tabpfn/predict. See the TabPFN-3 changelog.

Run inference using a previously fitted TabPFN model. Upload your test dataset and specify the model ID from your previous /v1/fit call. The endpoint returns predicted probabilities or values depending on the task type.

post/v1/predict

Response

Prediction completed successfully — returns predicted values or probabilities depending on the task.

duration_secondsinteger required

Time taken (in seconds) to complete the prediction.

task'classification' | 'regression' required

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

used_creditsinteger required

The number of credits consumed by this API call.

remaining_quotainteger required

Your remaining credit balance after this request.

Example response

{
  "duration_seconds": 15,
  "prediction": [
    0.1,
    0.9,
    0.3,
    0.7
  ],
  "task": "classification",
  "params": {
    "average_before_softmax": false,
    "categorical_features_indices": null,
    "ignore_pretraining_limits": true,
    "inference_config": null,
    "inference_precision": "auto",
    "model_path": "auto",
    "n_estimators": 8,
    "n_preprocessing_jobs": 4,
    "random_state": 42,
    "softmax_temperature": 0.2
  },
  "used_credits": 10,
  "remaining_quota": 90
}