fine-tuning
Train a Reflex
Start a training job. OpenAI fine-tuning-compatible, with two differences: training data is inline (training_data, no Files API) and there are no hyperparameters. model selects the base to train from — omit it for a from-scratch cold start, or pass any custom or default reflex to warm-start from its weights. A small Reflex trains in about 30 seconds. Provide exactly one input mode — training_data, generate, or label_data.
post/v1/fine_tuning/jobs
Request body
Example request
{
"suffix": "support-classifier",
"training_data": [
{
"text": "I need a refund for my order",
"label": "billing"
},
{
"text": "Charged me twice this month",
"label": "billing"
},
{
"text": "The app crashed on launch",
"label": "bug"
},
{
"text": "Submit button does nothing",
"label": "bug"
}
]
}Response
The created job.
Example response
{
"id": "ftjob-a1b2c3d4-5e6f-7a8b-9c0d-1e2f3a4b5c6d",
"object": "fine_tuning.job",
"model": "guardrail",
"created_at": 1780107000,
"finished_at": 1780107148,
"fine_tuned_model": "support-classifier",
"status": "succeeded",
"labels": [
"billing",
"bug"
],
"trained_examples": 10,
"hyperparameters": {
"n_epochs": 3,
"batch_size": "auto",
"learning_rate_multiplier": "auto"
},
"result": {
"accuracy": 0.95,
"f1_score": 0.94
},
"error": null,
"suffix": "support-classifier"
}