Skip to main content
POST
Create Fine-tuning Job

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

x-tfy-metadata
string

Optional metadata for the request

x-tfy-provider-name
string

Name of the provider

x-tfy-vertex-storage-bucket-name
string

Vertex AI storage bucket name

x-tfy-provider-model
string

Provider-specific model identifier

x-tfy-file-purpose
string

Purpose for the file upload (e.g., fine-tune)

Body

application/json

Fine-tuning job parameters

model
string
required

The name of the model to fine-tune

training_file
string
required

The ID of an uploaded file that contains training data

hyperparameters
object | null

Legacy top-level hyperparameters; deprecated in favor of method.hyperparameters.

integrations
object[] | null

A list of integrations to enable for your fine-tuning job

metadata
object | null

Up to 16 string-valued key-value pairs attached to the job.

method
object | null

Fine-tuning method config (e.g. supervised, dpo) and its hyperparameters.

seed
integer | null

The seed controls the reproducibility of the job

suffix
string | null

A string of up to 64 characters that will be added to your fine-tuned model name

validation_file
string | null

The ID of an uploaded file that contains validation data

Response

Fine-tuning job created successfully

object
enum<string>
required

The object type

Available options:
fine_tuning.job
id
string
required

The fine-tuning job ID

model
string
required

The model being fine-tuned

created_at
integer
required

The Unix timestamp when the job was created

fine_tuned_model
string | null
required

Name of the resulting fine-tuned model.

organization_id
string
required

The organization that owns the fine-tuning job

result_files
string[]
required

The compiled results files for the fine-tuning job

status
enum<string>
required

The current status of the fine-tuning job

Available options:
queued,
running,
succeeded,
failed,
cancelled
validation_file
string | null
required

The file ID used for validation

training_file
string
required

The file ID used for training

finished_at
integer | null

The Unix timestamp when the job finished

hyperparameters
object | null

The hyperparameters used for the fine-tuning job

trained_tokens
integer | null

The total number of tokens used for training

integrations
object[] | null

A list of integrations enabled for the fine-tuning job

seed
integer | null

The seed used for the fine-tuning job

estimated_finish
integer | null

The estimated finish timestamp for the job

method
object | null

The method used for fine-tuning

metadata
object | null

Set of 16 key-value pairs that can be attached to an object