Fine-tuning
List Fine-tuning Jobs
Page through your fine-tuning jobs at /v1/fine_tuning/jobs
GET
/
v1
/
fine_tuning
/
jobs
List jobs
curl --request GET \
--url https://api.morphllm.com/v1/fine_tuning/jobs \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.morphllm.com/v1/fine_tuning/jobs"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.morphllm.com/v1/fine_tuning/jobs', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.morphllm.com/v1/fine_tuning/jobs",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.morphllm.com/v1/fine_tuning/jobs"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.morphllm.com/v1/fine_tuning/jobs")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.morphllm.com/v1/fine_tuning/jobs")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"object": "list",
"data": [
{
"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"
}
],
"has_more": false
}{
"error": {
"code": "invalid_request_error",
"message": "The request body is missing the `model` field."
}
}{
"error": {
"code": "unauthorized",
"message": "Invalid API key provided."
}
}{
"error": {
"code": "rate_limited",
"message": "Too many requests. Retry in 12 seconds."
}
}{
"error": {
"code": "internal_error",
"message": "Something went wrong on our side."
}
}Overview
Lists your fine-tuning jobs, newest first, with cursor pagination.Authorizations
Morph API key, passed as Authorization: Bearer sk-.... Create keys at https://www.morphllm.com/dashboard/api-keys.
Query Parameters
How many jobs to return in this page. Jobs per page. Default 20, max 100.
Required range:
x <= 100Example:
20
Pagination cursor — pass the last id you saw. Job id cursor. Returns jobs created before it.
Example:
"ftjob-a1b2c3d4-5e6f-7a8b-9c0d-1e2f3a4b5c6d"
Response
A page of jobs.
A page of fine-tuning jobs owned by the API key.
Always list for a page of jobs.
Example:
"list"
The page of jobs, newest first.
Show child attributes
Show child attributes
Example:
[
{
"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"
}
]
True when more jobs exist past this page.
Example:
false
⌘I
List jobs
curl --request GET \
--url https://api.morphllm.com/v1/fine_tuning/jobs \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.morphllm.com/v1/fine_tuning/jobs"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.morphllm.com/v1/fine_tuning/jobs', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.morphllm.com/v1/fine_tuning/jobs",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.morphllm.com/v1/fine_tuning/jobs"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.morphllm.com/v1/fine_tuning/jobs")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.morphllm.com/v1/fine_tuning/jobs")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"object": "list",
"data": [
{
"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"
}
],
"has_more": false
}{
"error": {
"code": "invalid_request_error",
"message": "The request body is missing the `model` field."
}
}{
"error": {
"code": "unauthorized",
"message": "Invalid API key provided."
}
}{
"error": {
"code": "rate_limited",
"message": "Too many requests. Retry in 12 seconds."
}
}{
"error": {
"code": "internal_error",
"message": "Something went wrong on our side."
}
}