v52

OpenAPI 3.1.0raw.githubusercontent.com2026-07-311,1941,9384.1 MB
Fine Tuning

Create a fine tuning job

Create a new fine tuning job.

post/ai/fine_tuning/jobs

Request body

modelstring required

The base model that is being fine-tuned.

suffixstring

Optional suffix to append to the fine tuned model's name.

training_filestring required

The storage bucket or object used for training.

Response

Successful Response

created_atinteger required

The Unix timestamp (in seconds) for when the fine-tuning job was created.

finished_atinteger nullable required

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.

idstring required

The name of the fine-tuned model that is being created.

modelstring required

The base model that is being fine-tuned.

organization_idstring required

The organization that owns the fine-tuning job.

status'queued' | 'running' | 'succeeded' | 'failed' | 'cancelled' required

The current status of the fine-tuning job.

trained_tokensinteger nullable required

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_filestring required

The storage bucket or object used for training.