POST
/fine_tuning/jobs/{fine_tuning_job_id}/resumeResume a fine-tuning job
Resumes a paused fine-tuning job that supports resuming. Use fine_tuning_job_id to identify the job you want to resume. The response returns the job object and its current status.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
fine_tuning_job_idstringrequired
The ID of the fine-tuning job to resume.
200Returns the fine-tuning job object, including its updated status.
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.
hyperparametersobjectoptional
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 `validating_files`, `queued`, `running`, `pausing`, `paused`, `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.
400Returned when the fine-tuning job cannot be resumed in its current state or does not support resuming.
errorobjectrequired
404Returned when the fine-tuning job was not found or is not accessible, or the operation is unavailable.
errorobjectrequired
429Returned when a request or fine-tuning job limit has been exceeded.
errorobjectrequired
Error handling
A 400 is returned when the job cannot be resumed in its current state or does not support resuming; a 404 is returned when the job is not found, is not accessible, or the operation is unavailable; a 429 is returned when a request or fine-tuning job limit is exceeded. The fine_tuning_job_id path parameter must identify a job you can access.