Get Factory Utilization
curl --request GET \
--url https://api.primeintellect.ai/api/v1/factory/utilization \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.primeintellect.ai/api/v1/factory/utilization"
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/utilization', 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/utilization",
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/utilization"
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/utilization")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.primeintellect.ai/api/v1/factory/utilization")
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",
"window": "1h",
"bucket_seconds": 123,
"clusters": [
{
"display_name": "<string>",
"status": "online",
"total_nodes": 123,
"derived_from": "accounting",
"series": [],
"source": {
"kind": "capacity",
"status": "ok",
"observed_at": "2023-11-07T05:31:56Z"
}
}
],
"schema_version": 1
}{
"errors": [
{
"param": "<string>",
"details": "<string>"
}
]
}factory
Get Factory Utilization
The team’s Model Factory utilization curve: Slurm node
allocated/idle counts per bucket, derived from the slurmdbd
accounting record with the live jobs read as the truth for the
current bucket. Per-source freshness travels in sources; gaps
are gaps, never zero-filled.
GET
/
api
/
v1
/
factory
/
utilization
Get Factory Utilization
curl --request GET \
--url https://api.primeintellect.ai/api/v1/factory/utilization \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.primeintellect.ai/api/v1/factory/utilization"
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/utilization', 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/utilization",
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/utilization"
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/utilization")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.primeintellect.ai/api/v1/factory/utilization")
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",
"window": "1h",
"bucket_seconds": 123,
"clusters": [
{
"display_name": "<string>",
"status": "online",
"total_nodes": 123,
"derived_from": "accounting",
"series": [],
"source": {
"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
Curve window; bucket sizes scale with the window (1h->1min, 24h->5min, 7d->hourly, 30d->3h, 90d->daily)
Available options:
1h, 24h, 7d, 30d, 90d Response
Successful Response
Envelope for the cluster utilization curve (public + internal routes).
Was this page helpful?