curl --request GET \
--url https://api.primeintellect.ai/api/v1/factory/nodes \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.primeintellect.ai/api/v1/factory/nodes"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.primeintellect.ai/api/v1/factory/nodes', 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.primeintellect.ai/api/v1/factory/nodes",
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.primeintellect.ai/api/v1/factory/nodes"
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.primeintellect.ai/api/v1/factory/nodes")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.primeintellect.ai/api/v1/factory/nodes")
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{
"as_of": "2023-11-07T05:31:56Z",
"clusters": [
{
"display_name": "<string>",
"status": "online",
"nodes": [
{
"name": "<string>",
"state": "ready",
"gpu_type": "<string>",
"gpus_total": 123,
"gpus_used": 123,
"assigned_to": "training"
}
]
}
],
"sources": [
{
"kind": "capacity",
"status": "ok",
"observed_at": "2023-11-07T05:31:56Z"
}
],
"schema_version": 1
}{
"errors": [
{
"param": "<string>",
"details": "<string>"
}
]
}Get Factory Nodes
Per-cluster GPU node tables for the caller’s team (the sinfo): node name, coarse state (ready / cordoned / offline / unknown), GPU type and total/used counts, and which allocation the node is assigned to (“slurm” for a claimed node, null otherwise).
Node names are the team’s own hardware and are shown to the team only; data of other teams is never returned. Unusable capacity snapshots surface as a per-cluster capacity source with an error status, never as a silent empty node list.
curl --request GET \
--url https://api.primeintellect.ai/api/v1/factory/nodes \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.primeintellect.ai/api/v1/factory/nodes"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.primeintellect.ai/api/v1/factory/nodes', 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.primeintellect.ai/api/v1/factory/nodes",
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.primeintellect.ai/api/v1/factory/nodes"
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.primeintellect.ai/api/v1/factory/nodes")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.primeintellect.ai/api/v1/factory/nodes")
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{
"as_of": "2023-11-07T05:31:56Z",
"clusters": [
{
"display_name": "<string>",
"status": "online",
"nodes": [
{
"name": "<string>",
"state": "ready",
"gpu_type": "<string>",
"gpus_total": 123,
"gpus_used": 123,
"assigned_to": "training"
}
]
}
],
"sources": [
{
"kind": "capacity",
"status": "ok",
"observed_at": "2023-11-07T05:31:56Z"
}
],
"schema_version": 1
}{
"errors": [
{
"param": "<string>",
"details": "<string>"
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Team whose Model Factory fleet to read
Response
Successful Response
Envelope for the nodes drill-down (public + internal routes).
sources carries one capacity entry per cluster, in the same
order as clusters, so a degraded snapshot stays visible (never a
silent empty node list).
Was this page helpful?