v4

latestOpenAPI 3.1.0MIT2026-08-04193459793.6 KB
Fine-tuning

Get metrics

Retrieves recorded training metrics for a fine-tuning job in chronological order. All query parameters are optional: omit them to retrieve all metrics.

get/fine-tunes/{id}/metrics

Path parameters

idstring required

Fine-tune job ID. A string that starts with ft-.

Query parameters

global_step_frominteger

Return only metrics with global_step >= this value.

global_step_tointeger

Return only metrics with global_step <= this value.

logged_at_fromstring date-time

Return only metrics logged at or after this ISO-8601 timestamp.

logged_at_tostring date-time

Return only metrics logged at or before this ISO-8601 timestamp.

resolutioninteger

Number of (uniformly sampled) train metrics to return.

Response

List of metrics snapshots in chronological order.

metricsobject[]

Example response

{
  "metrics": [
    {
      "train/loss": 0.5,
      "train/learning_rate": 0.0001,
      "train/global_step": 7
    },
    {
      "train/loss": 0.45,
      "train/learning_rate": 0.00009,
      "train/global_step": 14
    }
  ]
}