curl --request GET \
--url https://api.openai.com/v1/fine_tuning/jobs/{fine_tuning_job_id} \
--header 'Authorization: Bearer <token>'
{
"id": "<string>",
"created_at": 123,
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>"
},
"fine_tuned_model": "<string>",
"finished_at": 123,
"hyperparameters": {
"batch_size": "auto",
"learning_rate_multiplier": "auto",
"n_epochs": "auto"
},
"model": "<string>",
"object": "fine_tuning.job",
"organization_id": "<string>",
"result_files": [
"file-abc123"
],
"status": "validating_files",
"trained_tokens": 123,
"training_file": "<string>",
"validation_file": "<string>",
"integrations": [
{
"type": "wandb",
"wandb": {
"project": "my-wandb-project",
"name": "<string>",
"entity": "<string>",
"tags": [
"custom-tag"
]
}
}
],
"seed": 123,
"estimated_finish": 123,
"method": {
"type": "supervised",
"supervised": {
"hyperparameters": {
"batch_size": "auto",
"learning_rate_multiplier": "auto",
"n_epochs": "auto"
}
},
"dpo": {
"hyperparameters": {
"beta": "auto",
"batch_size": "auto",
"learning_rate_multiplier": "auto",
"n_epochs": "auto"
}
}
},
"metadata": {}
}
Get info about a fine-tuning job. Learn more about fine-tuning
curl --request GET \
--url https://api.openai.com/v1/fine_tuning/jobs/{fine_tuning_job_id} \
--header 'Authorization: Bearer <token>'
{
"id": "<string>",
"created_at": 123,
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>"
},
"fine_tuned_model": "<string>",
"finished_at": 123,
"hyperparameters": {
"batch_size": "auto",
"learning_rate_multiplier": "auto",
"n_epochs": "auto"
},
"model": "<string>",
"object": "fine_tuning.job",
"organization_id": "<string>",
"result_files": [
"file-abc123"
],
"status": "validating_files",
"trained_tokens": 123,
"training_file": "<string>",
"validation_file": "<string>",
"integrations": [
{
"type": "wandb",
"wandb": {
"project": "my-wandb-project",
"name": "<string>",
"entity": "<string>",
"tags": [
"custom-tag"
]
}
}
],
"seed": 123,
"estimated_finish": 123,
"method": {
"type": "supervised",
"supervised": {
"hyperparameters": {
"batch_size": "auto",
"learning_rate_multiplier": "auto",
"n_epochs": "auto"
}
},
"dpo": {
"hyperparameters": {
"beta": "auto",
"batch_size": "auto",
"learning_rate_multiplier": "auto",
"n_epochs": "auto"
}
}
},
"metadata": {}
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
The ID of the fine-tuning job.
"ft-AF1WoRqd3aJAHsqc9NY7iL8F"
OK
The fine_tuning.job
object represents a fine-tuning job that has been created through the API.
Was this page helpful?