Sample - OpenAI API
POST/fine_tuning/jobs/{fine_tuning_job_id}/pause

Pause a fine-tuning job

Pauses a fine-tuning job. Supply the identifier of the job whose training process you want to pause. The response returns the updated job record so you can inspect its current status and continue managing it.

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.

1 parameter
fine_tuning_job_idstringrequired
The identifier of the fine-tuning job to pause.

1 status code
200Returns the updated fine-tuning job object, including its identifier, status, model, files, result files, and lifecycle details.
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".
Allowed: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`.
Allowed:validating_filesqueuedrunningsucceededfailedcancelled
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 the fine-tuning job to pause. Inspect the returned status to verify the job's state after the pause request.