Documentation
Jobs and results
View .mdOpenAPI

Read job results

GEThttps://weights.fyi/run/v1/jobs/{job_id}/resultsscope: read
text
GET https://weights.fyi/run/v1/jobs/<job_id>/results[?after=<seq>][&limit=<1 to 1,000>]
Authorization: Bearer <token>                    scope: read
Available since
2026-10-08, when the service went live on weights.fyi/run, training jobs included. finished rows only with complete, and the trained model's artifact.
Answer time
synchronous: the answer holds the results written so far and never waits for more.

Returns what a job produced: for a page job one row per page in the order sent, with its label and probabilities; for a training job the record of the training, with every epoch's metrics, the model, the resumes and the checkpoints. You can read at any moment. A page job's answer holds only finished rows, as an unbroken run from your cursor: it stops before the first page that is still waiting or with the model, so a page that finishes out of order is returned once the pages before it have finished.

A page job pages by seq: at most 1,000 rows (or limit) after after, and next_after to ask after next, null at the job's last page. Each page is answered exactly once, through moves to new hardware too, and its text is deleted once its result is written, so these rows are the only record (Jobs, progress and results). input_sha is the SHA-256 of the text you sent, so you can match and prove results without ids; in Python, hashlib.sha256(text.encode("utf-8")).hexdigest().

Request

NameWhereRequiredMeaning
AuthorizationheaderyesBearer and your token. The token needs the read scope. Reads are not counted against the token's request rate.
job_idpathyesThe job whose results you read.
afterquerynoFor a page job: list the rows after this seq, a whole number from 0 to the job's number of pages. The default is 0, the beginning.
limitquerynoFor a page job: list at most this many rows, from 1 to 1,000. The default is 1,000.

Return value

200 OK with one object.

A page job

FieldMeaning
job_idThe job's identifier.
statusThe job's status at the moment of reading: QUEUED, RUNNING, SUCCEEDED, FAILED or CANCELLED.
resultsThe finished rows after after, in seq order without a gap, at most limit of them. Never a waiting or running page.
results[].seqThe page's sequence number, 1 for the first page you sent.
results[].idYour own identifier for the page, as text, or null when you sent none.
results[].input_shaThe SHA-256 of the page's UTF-8 text, 64 hexadecimal characters.
results[].labelThe role the model gives the page: detail, listing, landing, not_vacancy or unresolved; null on a failed or cancelled page.
results[].probabilitiesThe model's calibrated probability for each of the five labels, as an object from label to number; null on a failed or cancelled page.
results[].statusdone, failed or cancelled (stopped before it was sent). A row is returned only once it holds one of these three; pages still queued or leased are never listed.
results[].errorWhy a page failed: page_too_large (did not fit one call), the model's own code when it refused the page, or max_tries: and the last fault's code after 3 failures on our side; otherwise null.
next_afterThe seq of the last row returned, to send as after next; unchanged from your after when no further row has finished. null once the job has ended and this answer reaches its last page.
completetrue once the job has finished and this answer reached its last row; until then next_after stays a number, Retry-After: 1 is sent, and results holds only an unbroken run of finished rows from your cursor, stopping before the first unfinished one. An unmoved cursor means: wait and ask again.

A training job

FieldMeaning
job_id, statusAs for a page job.
kindfinetune.
stateWhere the training is: queued, preparing, training, moving, finishing, or done once the job is finished.
stop_reasonWhy the training stopped: epoch_limit, validation_patience, cancelled, failed, or another word from the training; null while it runs.
errorThe code a failed job ended with; otherwise null.
modelThe trained model, or null before there is one: id (ft_ followed by the job's 24 hexadecimal characters), base (the model it was trained from), best_epoch and best_step (where it came from), macro_f1 (its validation score), can_run (false for now) and note (one sentence on running it). artifact, with path (the address of GET /v1/jobs/{job_id}/model.safetensors), sha256 (the weights' digest) and format (safetensors), and a note that says to load the weights with the base model's configuration and tokenizer.
epochsOne entry per finished epoch, in order: epoch; the validation accuracy, brier score, ece (expected calibration error), f1 per label, macro_f1, nll (negative log-likelihood) and pages; confusion, the confusion matrix over the five labels; improved, whether it beat every earlier epoch; elapsed_seconds; and recorded_at, when the service recorded it.
coverageHow many pages the training used: train_pages and validation_pages, as the training reported them.
resumesOne entry per resume after a move: at, when it happened; from_step, the step it resumed from; last_step_seen and last_checkpoint_step, the last step the service had seen and the checkpoint the training resumed from; lost_steps and lost_steps_seen, the steps done again; taken_back, whether the hardware was taken back; source, where the checkpoint was read from; and node_attempt, the count of the training's restarts, under the name the service gives it.
steps_lost_totalThe steps done again over every resume.
checkpoints.bestThe epoch and step of the checkpoint the model was made from, or null.
checkpoints.latestThe step of the last checkpoint saved and when (at), or null.
(paging)A training job's results are one object: after and limit are ignored, and the fields grow epoch by epoch, model staying null until the end.

Errors

StatusCodeWhen it happensWhat to do
400invalid_parameterafter or limit is not a whole number.Send whole numbers.
400parameter_out_of_rangeafter is below 0 or above the job's number of pages, or limit is outside 1 to 1,000; low and high give the bounds.Stay inside them. Note that after above the job's size is refused rather than answered with an empty list.
401unauthorized, invalid_token, token_revoked, token_expiredNo token, or one that does not work (any more).Use a valid token.
403scope_required, account_suspendedThe token lacks read, or the account is suspended.Use a token with read; for a suspended account, talk to us.
404job_not_foundThe job does not exist or belongs to another account.Check the id.

Examples

The first two rows of a five-page job, from a test copy of the service:

sh
curl -s "https://weights.fyi/run/v1/jobs/JOB_ID/results?after=0&limit=2" -H "Authorization: Bearer $WEIGHTS_API_KEY"
json
{
  "job_id": "job_5e7c50ca2489d324a215b0ba",
  "status": "SUCCEEDED",
  "results": [
    {"seq": 1, "id": "page-000001", "input_sha": "809f756b65c64bed8fc568254ad4604343a41d876d22f6334503ea587cb1ffc0",
     "label": "listing",
     "probabilities": {"detail": 0.04, "listing": 0.88, "landing": 0.05, "not_vacancy": 0.02, "unresolved": 0.01},
     "status": "done", "error": null},
    {"seq": 2, "id": "page-000002", "input_sha": "9de63a8f1489ec0fd159882d2e10e8ed92177a667f42e3d3284a7a86485fb6a2",
     "label": "detail",
     "probabilities": {"detail": 0.91, "listing": 0.03, "landing": 0.02, "not_vacancy": 0.03, "unresolved": 0.01},
     "status": "done", "error": null}
  ],
  "next_after": 2
}

Patterns

Reading results exactly once

Store each batch of rows together with the new cursor, so a crash cannot skip or repeat a page:

sh
after=0
while [ "$after" != "null" ]; do
  curl -s "https://weights.fyi/run/v1/jobs/JOB_ID/results?after=$after" -H "Authorization: Bearer $WEIGHTS_API_KEY" > page.json
  jq -c '.results[]' page.json >> results.ndjson
  next=$(jq -r .next_after page.json)
  [ "$next" = "$after" ] && sleep 1   # no further row has finished yet: the answer's Retry-After
  after=$next
done

It is safe while the job still runs: every row returned is final, so append them all. When next_after comes back unchanged the loop waits the answer's Retry-After, one second, and it ends when next_after is null. For a whole job as one file, use results.ndjson.

History

  • 2026-10-08: live: rows by seq with after, limit and next_after, each page answered once across a move (checked on 200,000 pages in the live drill); a training job's record.
  • 2026-10-10 implementation review: finished rows only, complete, Retry-After: 1; the model's artifact.
  • 2026-11-16: removed the claim that waiting and running rows are listed; the answer is the unbroken run of finished rows.

See also

GET /v1/jobs/{job_id}, GET /v1/jobs/{job_id}/model.safetensors, Fine-tune a model.