POST
/
fine_tuning
/
jobs

Authorizations

Authorization
string
headerrequired

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

Body

application/json
model
string
required

The name of the model to fine-tune. Options: 'llama-3.1-8b' or 'llama-3.1-70b'.

base_model
string
required

The name of the base model whose output will be styled. Options: 'gpt-4o', 'gpt-4o-2024-05-13', 'gpt-4o-2024-08-06', 'claude-3-5-sonnet-20240620', 'claude-3-opus-20240229', 'other'. Use 'other' for any other model.

training_files
string[]
required

Array of IDs of uploaded files to use for training. All files must be text-only.

suffix
string | null

A string of up to 16 characters that will be added to your fine-tuned model name. For example, a suffix of 'custom-model-name' would produce a model name like 'ftm:llama-3.1-70b:custom-model-name:0b5ace7e-ffb2-43cf-8a4d-0af17bc2b1d1'.

num_examples
default: auto

The number of training examples to use for training. Can be an integer or 'auto'. Higher numbers increase quality, but also increase cost.

maintain_length
boolean
default: true

If true, the model will be trained to maintain consistency of length, where the styled output is approximately the same length as the input.

Response

200 - application/json
object
string

The type of the object, always 'fine_tuning.job'.

id
string

The ID of the fine-tuning job.

model
string

The model being fine-tuned.

base_model
string

The name of the base model whose output is to be styled.

created_at
integer

The Unix timestamp for when the job was created.

fine_tuned_model
string | null

The name of the fine-tuned model.

organization_id
string

The organization ID associated with this fine-tuning job.

status
string

The current status of the job.

training_files
string[]

Array of file IDs used for training.