List jobs

Answers the org's jobs, newest first, narrowed by ?status=.

GET /v1/train/jobs

Addresshttps://api.hanzo.ai/v1/train/jobs
MethodGET
Operationget_train_jobs
AuthAuthorization: Bearer $HANZO_API_KEY

Answers the org's jobs, newest first, narrowed by ?status=.

Request

2 fields.

FieldInTypeRequiredDescription
statusquerystring—Status narrows to one status.
limitqueryinteger—Limit bounds the answer; default 50, at most 500.

Response

StatusBodyMeaning
200train.jobsOutok
defaultproblem-detailsrefused

200 body — 79 fields.

FieldInTypeAlwaysDescription
databodytrain.Job[]—Data is the org's jobs, newest first.
data[].adaptationbodytrain.Adaptation—
data[].adaptation.alphabodynumber (double)—Alpha is an adapter's scale.
data[].adaptation.basisbodystring—Basis is a basis artifact, by sha256 or basis://<base>/<name>.
data[].adaptation.chosebodytrain.Chose—
data[].adaptation.chose.modebodystring—Mode is the mode the job runs.
data[].adaptation.chose.whybodystring—Why says what decided it.
data[].adaptation.modebodystring—Mode is full, readout (the head alone, over the frozen base), lora, qlora, basis or auto.
data[].adaptation.rankbodyinteger (int64)—Rank is an adapter's rank, or how many of a basis's directions are used.
data[].adaptation.residual_rankbodyinteger (int64)—ResidualRank is the rank of an orthonormal residual learned beside a basis's coefficients; 0 trains the coefficients alone.
data[].adaptation.sourcesbodystring[]—Sources are lora artifacts (sha256) a basis is built from, in place of Basis.
data[].adaptation.targetsbodystring[]—Targets are the modules an adapter or a basis attaches to.
data[].artifactsbodytrain.artifact[]—Artifacts are its outputs.
data[].artifacts[].createdbodyinteger (int64)—Created is when it was registered, unix seconds.
data[].artifacts[].jobbodystring—Job is the job that produced it; empty for an upload.
data[].artifacts[].kindbodystring—Kind is checkpoint, lora, capability, basis or merged, or dataset for an upload.
data[].artifacts[].metabodyany—Meta describes it: its base and revision, its modules, a basis's address.
data[].artifacts[].namebodystring—Name labels it.
data[].artifacts[].sha256bodystring—SHA256 is the hex digest of its bytes, and its name in the object store.
data[].artifacts[].sizebodyinteger (int64)—Size is its byte count.
data[].artifacts[].statebodystring—State is pending until its bytes are read back, then stored; deleted once the org deleted it or it outlived its retention unpublished.
data[].base_modelbodystring—
data[].createdbodyinteger (int64)—Created, Started and Ended are unix seconds; 0 is not yet.
data[].created_bybodystring—CreatedBy is the principal that created it.
data[].datasetbodytrain.Dataset—
data[].dataset.splitsbodyobject—Splits maps a role (train, validation) to the dataset's own split name.
data[].dataset.splits.*bodystring—
data[].dataset.uribodystring—URI names the data.
data[].endedbodyinteger (int64)—
data[].errorbodystring—Error says why a job failed or stopped.
data[].evaluationbodytrain.Evaluation—
data[].evaluation.suitesbodystring[]—Suites are the suites the job is meant to improve.
data[].frombodystring—
data[].idbodystring—ID names the job.
data[].objectivebodytrain.Objective—
data[].objective.lossbodystring—Loss is cross_entropy.
data[].objective.termsbodytrain.Term[]—Terms are added to each row's loss.
data[].objective.terms[].kindbodystring—Kind names the term.
data[].objective.terms[].marginbodynumber (double)—Margin is a hinge's margin, in logits.
data[].objective.terms[].weightbodynumber (double)—Weight scales it; 0 is off.
data[].outputbodytrain.Output—
data[].output.kindbodystring—Kind is checkpoint, lora, capability, basis or merged.
data[].output.namebodystring—Name labels it.
data[].projectbodystring—Project is the creator's project scope.
data[].protectbodytrain.Protect—
data[].protect.budgetbodytrain.Budget—
data[].protect.budget.accuracybodynumber (double)—Accuracy is the largest accuracy drop allowed.
data[].protect.budget.ecebodynumber (double)—ECE is the largest calibration-error rise allowed.
data[].protect.capabilitiesbodystring[]—Capabilities are capability artifacts, by sha256.
data[].protect.distillationbodyboolean—Distillation adds KL to the base's answers on a preservation set drawn from the suites.
data[].protect.projectionbodytrain.Projection—
data[].protect.projection.strengthbodynumber (double)—Strength is λ in [0, 1]; absent is 1, the whole of P g removed.
data[].protect.suitesbodystring[]—Suites are capabilities the base already has, by suite.
data[].publishedbodyany—Published is the publish record, once published.
data[].resourcesbodytrain.Resources—
data[].resources.budgetbodyinteger (int64)—Budget bounds what the job's compute costs, in US cents; 0 is none beyond the payer's balance.
data[].resources.devicesbodystring[]—Devices are the accelerator kinds the job may run on — cuda, rocm, metal, vulkan, cpu; none named is any its base runs.
data[].resources.machinesbodystring[]—Machines are the org's linked machines by name; the first leads.
data[].resources.max_secondsbodyinteger (int64)—MaxSeconds bounds the device-seconds the job's tasks use together; 0 is none.
data[].resources.stepsbodyinteger (int64)—Steps bounds optimizer steps; 0 runs the plan.
data[].resultbodyany—Result is the lead's evaluation and verdict, once reported.
data[].revisionbodystring—
data[].startedbodyinteger (int64)—
data[].statusbodystring—Status is queued, running, evaluating, succeeded, rejected, failed, cancelled or stopped.
data[].tasksbodytrain.TaskView[]—Tasks are its units of execution.
data[].tasks[].devicebodystring—Device is the accelerator class it runs on — gpu or cpu — and Devices how many.
data[].tasks[].devicesbodyinteger (int64)—
data[].tasks[].heldbodyinteger (int64)—
data[].tasks[].hostbodystring—Host is the machine that claimed it.
data[].tasks[].idbodystring—ID names the task.
data[].tasks[].machinebodystring—Machine is the machine it was placed on, or empty for any.
data[].tasks[].rolebodystring—Role is lead or join.
data[].tasks[].secondsbodyinteger (int64)—Seconds are the device-seconds its reports metered, and Held those held for it.
data[].tasks[].seenbodyinteger (int64)—Seen is its last report, unix seconds.
data[].tasks[].statusbodystring—Status is open, claimed, done or lost.
data[].usagebodytrain.Usage—
data[].usage.cost_micro_usdbodyinteger (int64)—CostMicroUSD is what Seconds were charged, in micro-USD: 0 on the org's own machines.
data[].usage.heldbodyinteger (int64)—Held are the device-seconds held beyond Seconds; 0 once it ended.
data[].usage.secondsbodyinteger (int64)—Seconds are the device-seconds used.

Failure carries the platform error shape — see Errors.

Examples

hanzo has no subcommand for this operation — the CLI serves only what cloud's live route table confirms. Use HTTP or an SDK.

import { Configuration, TrainApi } from 'hanzoai';

const api = new TrainApi(new Configuration({ accessToken: process.env.HANZO_API_KEY }));
const { data } = await api.getTrainJobs();
from hanzoai.cloud import ApiClient, Configuration
from hanzoai.cloud.api import TrainApi

client = ApiClient(Configuration(access_token=os.environ["HANZO_API_KEY"]))
result = TrainApi(client).get_train_jobs()
cfg := hanzoai.NewConfiguration()
cfg.AddDefaultHeader("Authorization", "Bearer "+os.Getenv("HANZO_API_KEY"))
client := hanzoai.NewAPIClient(cfg)

resp, _, err := client.TrainAPI.GetTrainJobs(context.Background()).Execute()
if err != nil {
	return err
}
use hanzo_client::apis::{configuration::Configuration, train_api};

let mut cfg = Configuration::new();
cfg.bearer_access_token = std::env::var("HANZO_API_KEY").ok();

let result = train_api::get_train_jobs(&cfg, Default::default()).await?;
import ai.hanzo.cloud.ApiClient;
import ai.hanzo.cloud.api.TrainApi;

ApiClient client = new ApiClient();
client.setBearerToken(System.getenv("HANZO_API_KEY"));

var result = new TrainApi(client).getTrainJobs();
curl https://api.hanzo.ai/v1/train/jobs \
  -H "Authorization: Bearer $HANZO_API_KEY"

MCP declares no tool for train — tools/list on https://api.hanzo.ai/v1/mcp names the products it does reach. Use HTTP or an SDK.


Train API · All Hanzo APIs · Interactive reference

Was this page useful?