Skip to main content
GET
/
fine_tuning
/
jobs
/
{id}
/
metrics
curl "https://api.u1.archetypeai.app/v0.6/fine_tuning/jobs/your-job-id/metrics?kind=train&limit=20" \
  -H "Authorization: Bearer $ATAI_API_KEY"
{
  "object": "list",
  "data": [
    {
      "id": "your-metric-id",
      "created_at": 1765201323,
      "kind": "train",
      "step": 1000,
      "metrics": {
        "loss": 0.123,
        "learning_rate": 0.0001
      }
    }
  ],
  "has_more": false
}
Requires version 1.1.5 or later of the Archetype platform.

Overview

Returns per-step training and evaluation metrics for the job (e.g. the loss curve). This list is cursor-paginated and is sorted newest-first. You can filter the list to a single series using the kind parameter.

Request

id
string
required
The fine-tuning job ID for whicch to return metrics. This is a TypeID-encoded identifier with the FineTuningJobId prefix.
kind
string
Filters the results to a single series: train (per-step), eval (held-out passes), or train_summary (end-of-run aggregate). Omit this parameter to return all metrics.
after
string
Forward cursor: return points older than the one with this ID. Mutually exclusive with before.
before
string
Backward cursor: return points newer than the one with this ID. Mutually exclusive with after.
limit
integer
The maximum number of points to return (1–100).

Response

Returns a page of metric datapoints.
object
string
The object type of a list response. Always list.
data
array
The training/evaluation metric datapoints. Each datapoint is represented by a FineTuningMetric record.
has_more
boolean
Whether or not more datapoints exist beyond this page.
curl "https://api.u1.archetypeai.app/v0.6/fine_tuning/jobs/your-job-id/metrics?kind=train&limit=20" \
  -H "Authorization: Bearer $ATAI_API_KEY"
{
  "object": "list",
  "data": [
    {
      "id": "your-metric-id",
      "created_at": 1765201323,
      "kind": "train",
      "step": 1000,
      "metrics": {
        "loss": 0.123,
        "learning_rate": 0.0001
      }
    }
  ],
  "has_more": false
}