curl --request POST \
--url https://gateway.omnia-voice.com/v1/fine_tuning/jobs \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"baseModel": "<string>",
"training": {
"providerDatasetId": "<string>",
"version": "<string>",
"mapping": {},
"fileId": "<string>"
},
"validation": {},
"trainingFileId": "<string>",
"validationFileId": "<string>",
"name": "<string>",
"suffix": "<string>",
"seed": 1073741823,
"method": "supervised",
"hyperparameters": {
"n_epochs": 50,
"learning_rate": 123,
"batch_size": 512,
"context_length": 131136,
"warmup_ratio": 0.5,
"weight_decay": 0.5,
"packing": true,
"max_grad_norm": 123,
"lora": true,
"lora_r": 256,
"lora_alpha": 512,
"lora_dropout": 0.5
},
"specDraftHyperparameters": {
"n_epochs": 50,
"learning_rate": 123,
"batch_size": 512,
"context_length": 131136,
"architecture": "<string>",
"num_decoding_heads": 8,
"loss": "<string>"
},
"integrations": "<array>"
}
'import requests
url = "https://gateway.omnia-voice.com/v1/fine_tuning/jobs"
payload = {
"baseModel": "<string>",
"training": {
"providerDatasetId": "<string>",
"version": "<string>",
"mapping": {},
"fileId": "<string>"
},
"validation": {},
"trainingFileId": "<string>",
"validationFileId": "<string>",
"name": "<string>",
"suffix": "<string>",
"seed": 1073741823,
"method": "supervised",
"hyperparameters": {
"n_epochs": 50,
"learning_rate": 123,
"batch_size": 512,
"context_length": 131136,
"warmup_ratio": 0.5,
"weight_decay": 0.5,
"packing": True,
"max_grad_norm": 123,
"lora": True,
"lora_r": 256,
"lora_alpha": 512,
"lora_dropout": 0.5
},
"specDraftHyperparameters": {
"n_epochs": 50,
"learning_rate": 123,
"batch_size": 512,
"context_length": 131136,
"architecture": "<string>",
"num_decoding_heads": 8,
"loss": "<string>"
},
"integrations": "<array>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
baseModel: '<string>',
training: {
providerDatasetId: '<string>',
version: '<string>',
mapping: {},
fileId: '<string>'
},
validation: {},
trainingFileId: '<string>',
validationFileId: '<string>',
name: '<string>',
suffix: '<string>',
seed: 1073741823,
method: 'supervised',
hyperparameters: {
n_epochs: 50,
learning_rate: 123,
batch_size: 512,
context_length: 131136,
warmup_ratio: 0.5,
weight_decay: 0.5,
packing: true,
max_grad_norm: 123,
lora: true,
lora_r: 256,
lora_alpha: 512,
lora_dropout: 0.5
},
specDraftHyperparameters: {
n_epochs: 50,
learning_rate: 123,
batch_size: 512,
context_length: 131136,
architecture: '<string>',
num_decoding_heads: 8,
loss: '<string>'
},
integrations: '<array>'
})
};
fetch('https://gateway.omnia-voice.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://gateway.omnia-voice.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 => "POST",
CURLOPT_POSTFIELDS => json_encode([
'baseModel' => '<string>',
'training' => [
'providerDatasetId' => '<string>',
'version' => '<string>',
'mapping' => [
],
'fileId' => '<string>'
],
'validation' => [
],
'trainingFileId' => '<string>',
'validationFileId' => '<string>',
'name' => '<string>',
'suffix' => '<string>',
'seed' => 1073741823,
'method' => 'supervised',
'hyperparameters' => [
'n_epochs' => 50,
'learning_rate' => 123,
'batch_size' => 512,
'context_length' => 131136,
'warmup_ratio' => 0.5,
'weight_decay' => 0.5,
'packing' => true,
'max_grad_norm' => 123,
'lora' => true,
'lora_r' => 256,
'lora_alpha' => 512,
'lora_dropout' => 0.5
],
'specDraftHyperparameters' => [
'n_epochs' => 50,
'learning_rate' => 123,
'batch_size' => 512,
'context_length' => 131136,
'architecture' => '<string>',
'num_decoding_heads' => 8,
'loss' => '<string>'
],
'integrations' => '<array>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://gateway.omnia-voice.com/v1/fine_tuning/jobs"
payload := strings.NewReader("{\n \"baseModel\": \"<string>\",\n \"training\": {\n \"providerDatasetId\": \"<string>\",\n \"version\": \"<string>\",\n \"mapping\": {},\n \"fileId\": \"<string>\"\n },\n \"validation\": {},\n \"trainingFileId\": \"<string>\",\n \"validationFileId\": \"<string>\",\n \"name\": \"<string>\",\n \"suffix\": \"<string>\",\n \"seed\": 1073741823,\n \"method\": \"supervised\",\n \"hyperparameters\": {\n \"n_epochs\": 50,\n \"learning_rate\": 123,\n \"batch_size\": 512,\n \"context_length\": 131136,\n \"warmup_ratio\": 0.5,\n \"weight_decay\": 0.5,\n \"packing\": true,\n \"max_grad_norm\": 123,\n \"lora\": true,\n \"lora_r\": 256,\n \"lora_alpha\": 512,\n \"lora_dropout\": 0.5\n },\n \"specDraftHyperparameters\": {\n \"n_epochs\": 50,\n \"learning_rate\": 123,\n \"batch_size\": 512,\n \"context_length\": 131136,\n \"architecture\": \"<string>\",\n \"num_decoding_heads\": 8,\n \"loss\": \"<string>\"\n },\n \"integrations\": \"<array>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://gateway.omnia-voice.com/v1/fine_tuning/jobs")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"baseModel\": \"<string>\",\n \"training\": {\n \"providerDatasetId\": \"<string>\",\n \"version\": \"<string>\",\n \"mapping\": {},\n \"fileId\": \"<string>\"\n },\n \"validation\": {},\n \"trainingFileId\": \"<string>\",\n \"validationFileId\": \"<string>\",\n \"name\": \"<string>\",\n \"suffix\": \"<string>\",\n \"seed\": 1073741823,\n \"method\": \"supervised\",\n \"hyperparameters\": {\n \"n_epochs\": 50,\n \"learning_rate\": 123,\n \"batch_size\": 512,\n \"context_length\": 131136,\n \"warmup_ratio\": 0.5,\n \"weight_decay\": 0.5,\n \"packing\": true,\n \"max_grad_norm\": 123,\n \"lora\": true,\n \"lora_r\": 256,\n \"lora_alpha\": 512,\n \"lora_dropout\": 0.5\n },\n \"specDraftHyperparameters\": {\n \"n_epochs\": 50,\n \"learning_rate\": 123,\n \"batch_size\": 512,\n \"context_length\": 131136,\n \"architecture\": \"<string>\",\n \"num_decoding_heads\": 8,\n \"loss\": \"<string>\"\n },\n \"integrations\": \"<array>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://gateway.omnia-voice.com/v1/fine_tuning/jobs")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"baseModel\": \"<string>\",\n \"training\": {\n \"providerDatasetId\": \"<string>\",\n \"version\": \"<string>\",\n \"mapping\": {},\n \"fileId\": \"<string>\"\n },\n \"validation\": {},\n \"trainingFileId\": \"<string>\",\n \"validationFileId\": \"<string>\",\n \"name\": \"<string>\",\n \"suffix\": \"<string>\",\n \"seed\": 1073741823,\n \"method\": \"supervised\",\n \"hyperparameters\": {\n \"n_epochs\": 50,\n \"learning_rate\": 123,\n \"batch_size\": 512,\n \"context_length\": 131136,\n \"warmup_ratio\": 0.5,\n \"weight_decay\": 0.5,\n \"packing\": true,\n \"max_grad_norm\": 123,\n \"lora\": true,\n \"lora_r\": 256,\n \"lora_alpha\": 512,\n \"lora_dropout\": 0.5\n },\n \"specDraftHyperparameters\": {\n \"n_epochs\": 50,\n \"learning_rate\": 123,\n \"batch_size\": 512,\n \"context_length\": 131136,\n \"architecture\": \"<string>\",\n \"num_decoding_heads\": 8,\n \"loss\": \"<string>\"\n },\n \"integrations\": \"<array>\"\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"provider_job_id": "<string>",
"name": "<string>",
"base_model": "<string>",
"method": "supervised",
"status": "VALIDATING_FILES",
"fine_tuned_model": "<string>",
"deployed_model_name": "<string>",
"deploy_status": "<string>",
"deploy_error": "<string>",
"trained_tokens": "<string>",
"trained_steps": 123,
"total_steps": 123,
"rate_per_m_token_usd": 123,
"billed_cost_usd": 123,
"error": "<string>",
"created_at": "<string>"
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>"
}
}{
"error": {
"message": "Insufficient balance: deploying this endpoint requires at least 1h of runway. Top up and try again.",
"type": "insufficient_quota",
"code": "insufficient_balance"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>"
}
}{
"error": "<string>",
"type": "<string>"
}Create fine-tuning job
Start a fine-tuning job. Requires an owner/admin key. Billing is per trained token, charged once on completion.
curl --request POST \
--url https://gateway.omnia-voice.com/v1/fine_tuning/jobs \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"baseModel": "<string>",
"training": {
"providerDatasetId": "<string>",
"version": "<string>",
"mapping": {},
"fileId": "<string>"
},
"validation": {},
"trainingFileId": "<string>",
"validationFileId": "<string>",
"name": "<string>",
"suffix": "<string>",
"seed": 1073741823,
"method": "supervised",
"hyperparameters": {
"n_epochs": 50,
"learning_rate": 123,
"batch_size": 512,
"context_length": 131136,
"warmup_ratio": 0.5,
"weight_decay": 0.5,
"packing": true,
"max_grad_norm": 123,
"lora": true,
"lora_r": 256,
"lora_alpha": 512,
"lora_dropout": 0.5
},
"specDraftHyperparameters": {
"n_epochs": 50,
"learning_rate": 123,
"batch_size": 512,
"context_length": 131136,
"architecture": "<string>",
"num_decoding_heads": 8,
"loss": "<string>"
},
"integrations": "<array>"
}
'import requests
url = "https://gateway.omnia-voice.com/v1/fine_tuning/jobs"
payload = {
"baseModel": "<string>",
"training": {
"providerDatasetId": "<string>",
"version": "<string>",
"mapping": {},
"fileId": "<string>"
},
"validation": {},
"trainingFileId": "<string>",
"validationFileId": "<string>",
"name": "<string>",
"suffix": "<string>",
"seed": 1073741823,
"method": "supervised",
"hyperparameters": {
"n_epochs": 50,
"learning_rate": 123,
"batch_size": 512,
"context_length": 131136,
"warmup_ratio": 0.5,
"weight_decay": 0.5,
"packing": True,
"max_grad_norm": 123,
"lora": True,
"lora_r": 256,
"lora_alpha": 512,
"lora_dropout": 0.5
},
"specDraftHyperparameters": {
"n_epochs": 50,
"learning_rate": 123,
"batch_size": 512,
"context_length": 131136,
"architecture": "<string>",
"num_decoding_heads": 8,
"loss": "<string>"
},
"integrations": "<array>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
baseModel: '<string>',
training: {
providerDatasetId: '<string>',
version: '<string>',
mapping: {},
fileId: '<string>'
},
validation: {},
trainingFileId: '<string>',
validationFileId: '<string>',
name: '<string>',
suffix: '<string>',
seed: 1073741823,
method: 'supervised',
hyperparameters: {
n_epochs: 50,
learning_rate: 123,
batch_size: 512,
context_length: 131136,
warmup_ratio: 0.5,
weight_decay: 0.5,
packing: true,
max_grad_norm: 123,
lora: true,
lora_r: 256,
lora_alpha: 512,
lora_dropout: 0.5
},
specDraftHyperparameters: {
n_epochs: 50,
learning_rate: 123,
batch_size: 512,
context_length: 131136,
architecture: '<string>',
num_decoding_heads: 8,
loss: '<string>'
},
integrations: '<array>'
})
};
fetch('https://gateway.omnia-voice.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://gateway.omnia-voice.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 => "POST",
CURLOPT_POSTFIELDS => json_encode([
'baseModel' => '<string>',
'training' => [
'providerDatasetId' => '<string>',
'version' => '<string>',
'mapping' => [
],
'fileId' => '<string>'
],
'validation' => [
],
'trainingFileId' => '<string>',
'validationFileId' => '<string>',
'name' => '<string>',
'suffix' => '<string>',
'seed' => 1073741823,
'method' => 'supervised',
'hyperparameters' => [
'n_epochs' => 50,
'learning_rate' => 123,
'batch_size' => 512,
'context_length' => 131136,
'warmup_ratio' => 0.5,
'weight_decay' => 0.5,
'packing' => true,
'max_grad_norm' => 123,
'lora' => true,
'lora_r' => 256,
'lora_alpha' => 512,
'lora_dropout' => 0.5
],
'specDraftHyperparameters' => [
'n_epochs' => 50,
'learning_rate' => 123,
'batch_size' => 512,
'context_length' => 131136,
'architecture' => '<string>',
'num_decoding_heads' => 8,
'loss' => '<string>'
],
'integrations' => '<array>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://gateway.omnia-voice.com/v1/fine_tuning/jobs"
payload := strings.NewReader("{\n \"baseModel\": \"<string>\",\n \"training\": {\n \"providerDatasetId\": \"<string>\",\n \"version\": \"<string>\",\n \"mapping\": {},\n \"fileId\": \"<string>\"\n },\n \"validation\": {},\n \"trainingFileId\": \"<string>\",\n \"validationFileId\": \"<string>\",\n \"name\": \"<string>\",\n \"suffix\": \"<string>\",\n \"seed\": 1073741823,\n \"method\": \"supervised\",\n \"hyperparameters\": {\n \"n_epochs\": 50,\n \"learning_rate\": 123,\n \"batch_size\": 512,\n \"context_length\": 131136,\n \"warmup_ratio\": 0.5,\n \"weight_decay\": 0.5,\n \"packing\": true,\n \"max_grad_norm\": 123,\n \"lora\": true,\n \"lora_r\": 256,\n \"lora_alpha\": 512,\n \"lora_dropout\": 0.5\n },\n \"specDraftHyperparameters\": {\n \"n_epochs\": 50,\n \"learning_rate\": 123,\n \"batch_size\": 512,\n \"context_length\": 131136,\n \"architecture\": \"<string>\",\n \"num_decoding_heads\": 8,\n \"loss\": \"<string>\"\n },\n \"integrations\": \"<array>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://gateway.omnia-voice.com/v1/fine_tuning/jobs")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"baseModel\": \"<string>\",\n \"training\": {\n \"providerDatasetId\": \"<string>\",\n \"version\": \"<string>\",\n \"mapping\": {},\n \"fileId\": \"<string>\"\n },\n \"validation\": {},\n \"trainingFileId\": \"<string>\",\n \"validationFileId\": \"<string>\",\n \"name\": \"<string>\",\n \"suffix\": \"<string>\",\n \"seed\": 1073741823,\n \"method\": \"supervised\",\n \"hyperparameters\": {\n \"n_epochs\": 50,\n \"learning_rate\": 123,\n \"batch_size\": 512,\n \"context_length\": 131136,\n \"warmup_ratio\": 0.5,\n \"weight_decay\": 0.5,\n \"packing\": true,\n \"max_grad_norm\": 123,\n \"lora\": true,\n \"lora_r\": 256,\n \"lora_alpha\": 512,\n \"lora_dropout\": 0.5\n },\n \"specDraftHyperparameters\": {\n \"n_epochs\": 50,\n \"learning_rate\": 123,\n \"batch_size\": 512,\n \"context_length\": 131136,\n \"architecture\": \"<string>\",\n \"num_decoding_heads\": 8,\n \"loss\": \"<string>\"\n },\n \"integrations\": \"<array>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://gateway.omnia-voice.com/v1/fine_tuning/jobs")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"baseModel\": \"<string>\",\n \"training\": {\n \"providerDatasetId\": \"<string>\",\n \"version\": \"<string>\",\n \"mapping\": {},\n \"fileId\": \"<string>\"\n },\n \"validation\": {},\n \"trainingFileId\": \"<string>\",\n \"validationFileId\": \"<string>\",\n \"name\": \"<string>\",\n \"suffix\": \"<string>\",\n \"seed\": 1073741823,\n \"method\": \"supervised\",\n \"hyperparameters\": {\n \"n_epochs\": 50,\n \"learning_rate\": 123,\n \"batch_size\": 512,\n \"context_length\": 131136,\n \"warmup_ratio\": 0.5,\n \"weight_decay\": 0.5,\n \"packing\": true,\n \"max_grad_norm\": 123,\n \"lora\": true,\n \"lora_r\": 256,\n \"lora_alpha\": 512,\n \"lora_dropout\": 0.5\n },\n \"specDraftHyperparameters\": {\n \"n_epochs\": 50,\n \"learning_rate\": 123,\n \"batch_size\": 512,\n \"context_length\": 131136,\n \"architecture\": \"<string>\",\n \"num_decoding_heads\": 8,\n \"loss\": \"<string>\"\n },\n \"integrations\": \"<array>\"\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"provider_job_id": "<string>",
"name": "<string>",
"base_model": "<string>",
"method": "supervised",
"status": "VALIDATING_FILES",
"fine_tuned_model": "<string>",
"deployed_model_name": "<string>",
"deploy_status": "<string>",
"deploy_error": "<string>",
"trained_tokens": "<string>",
"trained_steps": 123,
"total_steps": 123,
"rate_per_m_token_usd": 123,
"billed_cost_usd": 123,
"error": "<string>",
"created_at": "<string>"
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>"
}
}{
"error": {
"message": "Insufficient balance: deploying this endpoint requires at least 1h of runway. Top up and try again.",
"type": "insufficient_quota",
"code": "insufficient_balance"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>"
}
}{
"error": "<string>",
"type": "<string>"
}Authorizations
Your workspace API key, e.g. sk_sovereign_..., sent as Authorization: Bearer <key>.
Body
This body is camelCase (baseModel, trainingFileId, providerDatasetId), unlike the snake_case loop endpoints; hyperparameter keys inside are snake_case. Training data is required: pass training or the legacy trainingFileId.
A model id from the fine-tunable catalog.
Training data source. Either {kind: "dataset", providerDatasetId, mapping, version?} or {kind: "file", fileId}.
Show child attributes
Show child attributes
Optional validation source, same shape as training.
Legacy direct file id (a provider_file_id). Prefer training.
Legacy validation file id.
300A label appended to the resulting model name.
120For reproducibility.
0 <= x <= 2147483647supervised = SFT/LoRA. spec-draft = a speculative-decoding drafter for a model you serve on a dedicated endpoint.
supervised, spec-draft Supervised hyperparameters. All optional; keys are snake_case inside this object. Wizard defaults: epochs 3, batch 8, lr 1e-5, ctx 8192, LoRA r/alpha 8. Out-of-bounds values fail with a named field before any money gate runs.
Show child attributes
Show child attributes
Spec-draft hyperparameters (method spec-draft). Shares the common bounds; adds architecture, num_decoding_heads, loss.
Show child attributes
Show child attributes
Only wandb and hf are supported; anything else is rejected rather than forwarded with someone's credentials. Shapes: {type: "wandb", wandb: {project, api_key, name?, entity?, tags?}} and {type: "hf", hf: {output_repo_name, api_token}}.
10Response
The created job.
Opaque upstream job id.
supervised, spec-draft VALIDATING_FILES, QUEUED, RUNNING, SUCCEEDED, FAILED, CANCELLED Output model id once the job succeeds.
The servable model name after deployment; null until deployed.
Deploy pipeline progress ("queued", "staging", "relaying", "converting", "provisioning", "serving", "failed"); null = never deployed. Stages evolve with the pipeline.
Failure reason when deploy_status is "failed".
Tokens trained, as a string (drives billing).
Your price per 1M trained tokens.
Final billed training cost once the job reaches a terminal status.
Failure reason when status is FAILED.