params.train_type picks it: full or lora (supervised fine-tuning), dpo (preference pairs) or grpo
(reinforcement fine-tuning).
The request body
POST /v1/training/estimate, POST /v1/training/plan and POST /v1/training/jobs take the same body.
Estimate
POST /v1/training/estimate starts nothing. It runs the checks a job would get and returns the price.
POST /v1/training/plan returns the checks without the price: valid, params, steps, truncated_samples,
warnings, and the dataset’s tokens for the model. For a body a job would refuse it answers 422.
Start a job
POST /v1/training/jobs. The job costs money from here: send the body you estimated. An Idempotency-Key header
makes the request safe to repeat (the same key with the same body returns the same job).
queued. Refusals: 402 when the balance does not cover the hold, 422 for a setting or data
the model does not take, 429 with 10 jobs already queued or running.
The job object
GET /v1/training/jobs/{id} returns one job; GET /v1/training/jobs returns your organisation’s jobs, newest first,
as a list.
timeline, notices, tokens_trained and config come with one job, not with the list. What to look at while a
job runs, and what to do when one fails, is in Monitoring.
Progress
GET /v1/training/jobs/{id}/progress says where the job is in one answer.
phase goes queued → starting → loading → training → saving → checkpoint_queued →
checkpoint_preparing → checkpoint_uploading → done, or failed / cancelled. jobs_ahead counts the queued
jobs that start before this one.
Events
GET /v1/training/jobs/{id}/events?after=&limit= returns what happened, in order. Pass the last seq you saw as
after to read on.
job.state, job.cancel_requested, training.step, training.validation (step, val_loss),
training.rollout (GRPO, one a round) and checkpoint.stage (queued, converting, hashing, transferring,
ready).
Metrics
GET /v1/training/jobs/{id}/metrics returns one point per step so far, as a list.
real_tokens is every token of the step’s samples, which is what is billed; trained_tokens is the assistant tokens
the loss is computed on. val_loss appears on the steps where the validation set ran. A GRPO job adds the reward
fields (Reinforcement fine-tuning).
Logs
GET /v1/training/jobs/{id}/logs?cursor=&limit= returns {"lines": [{"seq", "ts", "line"}], "next_cursor"}. Pass
next_cursor back as cursor to read on.
Billing
GET /v1/training/jobs/{id}/billing shows what the job held and what it was charged.
billing is held while the job runs, then settled, released (nothing charged) or not_metered. A failed job is
free; a cancelled one pays for the tokens trained before it stopped. The charge is rounded up to a whole cent.
Cancel
POST /v1/training/jobs/{id}/cancel. A queued job is cancelled at once; a running one stops soon after and leaves no
checkpoint.
Download the checkpoint
The checkpoint uploads after training succeeds and stays for 30 days.GET /v1/training/jobs/{id}/checkpoint lists
its files, each with a link that works for 24 hours.
The job’s record
In the SDK:
jobs.manifest(id), jobs.export(id, dest), jobs.trace(id), jobs.telemetry(id); on the command line
nextron-cloud jobs export ID DEST.