Get model limits
curl --request GET \
--url https://api.priorlabs.ai/tabpfn/get_model_limits \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.priorlabs.ai/tabpfn/get_model_limits"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.priorlabs.ai/tabpfn/get_model_limits', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.priorlabs.ai/tabpfn/get_model_limits",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.priorlabs.ai/tabpfn/get_model_limits"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.priorlabs.ai/tabpfn/get_model_limits")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.priorlabs.ai/tabpfn/get_model_limits")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"max_model_limit": {
"train_set_max_rows": 123,
"train_set_max_cells": 123,
"test_set_max_rows": 123,
"max_classes": 123,
"test_set_max_cells": 123,
"max_cols": 2000,
"test_set_max_rows_w_full_regression_output": 400
},
"model_limits": {},
"dataset_max_size_bytes": 123
}Endpoints
Get model limits
Recommended: Use tabpfn-client (TabPFNClassifier / TabPFNRegressor). It calls these routes for you.
Returns default_model_version, per-version model_limits (rows, cells, classes, cols), and dataset_max_size_bytes. The client calls this to size-check before upload.
GET
/
tabpfn
/
get_model_limits
Get model limits
curl --request GET \
--url https://api.priorlabs.ai/tabpfn/get_model_limits \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.priorlabs.ai/tabpfn/get_model_limits"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.priorlabs.ai/tabpfn/get_model_limits', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.priorlabs.ai/tabpfn/get_model_limits",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.priorlabs.ai/tabpfn/get_model_limits"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.priorlabs.ai/tabpfn/get_model_limits")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.priorlabs.ai/tabpfn/get_model_limits")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"max_model_limit": {
"train_set_max_rows": 123,
"train_set_max_cells": 123,
"test_set_max_rows": 123,
"max_classes": 123,
"test_set_max_cells": 123,
"max_cols": 2000,
"test_set_max_rows_w_full_regression_output": 400
},
"model_limits": {},
"dataset_max_size_bytes": 123
}Authorizations
Bearer token for authentication, obtained after signing up and generating an API key.
Was this page helpful?
⌘I