GET
/
fine_tuning
/
jobs
/
{fine_tuning_job_id}
/
checkpoints
curl https://api.portkey.ai/v1/fine_tuning/jobs/ftjob-abc123/checkpoints \
  -H "x-portkey-api-key: $PORTKEY_API_KEY" \
  -H "x-portkey-virtual-key: $PORTKEY_PROVIDER_VIRTUAL_KEY"
{
  "data": [
    {
      "id": "<string>",
      "created_at": 123,
      "fine_tuned_model_checkpoint": "<string>",
      "step_number": 123,
      "metrics": {
        "step": 123,
        "train_loss": 123,
        "train_mean_token_accuracy": 123,
        "valid_loss": 123,
        "valid_mean_token_accuracy": 123,
        "full_valid_loss": 123,
        "full_valid_mean_token_accuracy": 123
      },
      "fine_tuning_job_id": "<string>",
      "object": "fine_tuning.job.checkpoint"
    }
  ],
  "object": "list",
  "first_id": "<string>",
  "last_id": "<string>",
  "has_more": true
}

Authorizations

x-portkey-api-key
string
header
required
x-portkey-virtual-key
string
header
required

Path Parameters

fine_tuning_job_id
string
required

The ID of the fine-tuning job to get checkpoints for.

Example:

"ft-AF1WoRqd3aJAHsqc9NY7iL8F"

Query Parameters

after
string

Identifier for the last checkpoint ID from the previous pagination request.

limit
integer
default:
10

Number of checkpoints to retrieve.

Response

200 - application/json
OK
data
object[]
required

The fine_tuning.job.checkpoint object represents a model checkpoint for a fine-tuning job that is ready to use.

object
enum<string>
required
Available options:
list
has_more
boolean
required
first_id
string | null
last_id
string | null