Iterations
curl --request GET \
--url https://{host}/api/projects/iterations \
--header 'Authorization: Bearer <token>'import requests
url = "https://{host}/api/projects/iterations"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{host}/api/projects/iterations', 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://{host}/api/projects/iterations",
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://{host}/api/projects/iterations"
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://{host}/api/projects/iterations")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{host}/api/projects/iterations")
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{
"project": "<string>",
"iterations": [
{
"started_at": "<string>",
"ended_at": "<string>",
"open": false,
"accepted_run_id": "",
"elapsed_seconds": 0,
"runs": 0,
"failed_runs": 0,
"stopped_runs": 0,
"retries": 0,
"gpu_hours": 0,
"failed_gpu_hours": 0,
"stopped_gpu_hours": 0,
"evaluation_gpu_hours": 0,
"queue_hours": 0,
"history_runs": 0,
"platform_queue_hours": 123,
"backend_pending_hours": 123,
"preemptions": 123,
"launch_failures": 123
}
],
"closed": 0,
"truncated": false
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}What each qualified iteration of this project cost, in time and card-hours.
An iteration ends when a training run passes its evaluation gates. The hours are the ledger’s, under the usage page’s attribution rule; this only draws the boundaries.
GET
/
api
/
projects
/
iterations
Iterations
curl --request GET \
--url https://{host}/api/projects/iterations \
--header 'Authorization: Bearer <token>'import requests
url = "https://{host}/api/projects/iterations"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{host}/api/projects/iterations', 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://{host}/api/projects/iterations",
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://{host}/api/projects/iterations"
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://{host}/api/projects/iterations")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{host}/api/projects/iterations")
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{
"project": "<string>",
"iterations": [
{
"started_at": "<string>",
"ended_at": "<string>",
"open": false,
"accepted_run_id": "",
"elapsed_seconds": 0,
"runs": 0,
"failed_runs": 0,
"stopped_runs": 0,
"retries": 0,
"gpu_hours": 0,
"failed_gpu_hours": 0,
"stopped_gpu_hours": 0,
"evaluation_gpu_hours": 0,
"queue_hours": 0,
"history_runs": 0,
"platform_queue_hours": 123,
"backend_pending_hours": 123,
"preemptions": 123,
"launch_failures": 123
}
],
"closed": 0,
"truncated": false
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
project key, e.g. @alice/my-proj or experiments/grpo_demo_v1