Create fine-tuning job
POST
https://api.openai.com/v1/fine_tuning/jobs
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.openai.com/v1/fine_tuning/jobs' \
--header 'Authorization: Bearer $OPENAI_API_KEY' \
--header 'Content-Type: application/json' \
--data-raw '{
"training_file": "file-BK7bzQj3FfZFXr7DbL6xJwfo",
"model": "gpt-4o-mini"
}'
Response Response Example
{
"object": "fine_tuning.job",
"id": "ftjob-abc123",
"model": "gpt-4o-mini-2024-07-18",
"created_at": 1721764800,
"fine_tuned_model": null,
"organization_id": "org-123",
"result_files": [],
"status": "queued",
"validation_file": null,
"training_file": "file-abc123",
}
Request
Header Params
Content-Type
stringΒ
required
Example:
application/json
Authorization
stringΒ
required
Example:
Bearer $OPENAI_API_KEY
Body Params application/json
Responses
Modified atΒ 2025-01-23 10:32:41