GET
/fine_tuning/jobs/{fine_tuning_job_id}Retrieve a fine-tuning job
Retrieves a fine-tuning job by its identifier. Use this endpoint to inspect the job's status, model configuration, source files, result files, and training metadata. The response includes nullable completion and error fields when the job is still running or has not completed.
- RetriesRetries up to 2×, 500ms backoff, 30s timeout.
fine_tuning_job_idstringrequired
The identifier of the fine-tuning job to retrieve.
200Returns the fine-tuning job object with its identifier, base model, status, training and validation files, result files, organization, and lifecycle timestamps.
idstringrequired
The object identifier, which can be referenced in the API endpoints.
created_atintegerrequired
The Unix timestamp (in seconds) for when the fine-tuning job was created.
errorobjectrequired
For fine-tuning jobs that have `failed`, this will contain more information on the cause of the failure.
fine_tuned_modelstringrequired
The name of the fine-tuned model that is being created. The value will be null if the fine-tuning job is still running.
finished_atintegerrequired
The Unix timestamp (in seconds) for when the fine-tuning job was finished. The value will be null if the fine-tuning job is still running.
hyperparametersobjectrequired
The hyperparameters used for the fine-tuning job. This value will only be returned when running `supervised` jobs.
modelstringrequired
The base model that is being fine-tuned.
objectstringrequired
The object type, which is always "fine_tuning.job".
organization_idstringrequired
The organization that owns the fine-tuning job.
result_filesarray<string>required
The compiled results file ID(s) for the fine-tuning job. You can retrieve the results with the [Files API](https://developers.openai.com/api/reference/resources/files/methods/content).
statusstringrequired
The current status of the fine-tuning job, which can be either `validating_files`, `queued`, `running`, `succeeded`, `failed`, or `cancelled`.
trained_tokensintegerrequired
The total number of billable tokens processed by this fine-tuning job. The value will be null if the fine-tuning job is still running.
training_filestringrequired
The file ID used for training. You can retrieve the training data with the [Files API](https://developers.openai.com/api/reference/resources/files/methods/content).
validation_filestringrequired
The file ID used for validation. You can retrieve the validation results with the [Files API](https://developers.openai.com/api/reference/resources/files/methods/content).
integrationsarray<FineTuningJobIntegration>optional
A list of integrations to enable for this fine-tuning job.
seedintegerrequired
The seed used for the fine-tuning job.
estimated_finishintegeroptional
The Unix timestamp (in seconds) for when the fine-tuning job is estimated to finish. The value will be null if the fine-tuning job is not running.
methodobjectoptional
The method used for fine-tuning.
metadataobjectoptional
Set of 16 key-value pairs that can be attached to an object. This can be
useful for storing additional information about the object in a structured
format, and querying for objects via API or the dashboard.
Keys are strings with a maximum length of 64 characters. Values are strings
with a maximum length of 512 characters.
Error handling
fine_tuning_job_id must identify an existing fine-tuning job. Use the returned status value to distinguish validating_files, queued, running, succeeded, failed, and cancelled jobs.