---
title: "Create Sft Training Job"
method: POST
path: "/v1/preview/sft-training-jobs"
tags: ["training-jobs"]
---

# Create Sft Training Job

`POST /v1/preview/sft-training-jobs`

Create a new SFT (Supervised Fine-Tuning) training job.

## Request body

- CreateSFTTrainingJob — Schema for creating a new SFT (Supervised Fine-Tuning) TrainingJob. The client should upload the training data (trajectories.jsonl and metadata.json) to W&B Artifacts and provide the artifact URL.
  - `model_id` string, uuid, required
  - `training_data_url` string, required — W&B artifact path for training data (e.g., 'wandb-artifact:///entity/project/artifact-name:version')
  - `config` SFTTrainingConfig — Schema for SFT training config.
    - `batch_size` union
      - integer
      - 'auto'
    - `learning_rate` union
      - number
      - number[]
    - `metric_logging` object, nullable
  - `experimental_config` object, nullable

## Response `200`

Successful Response

- TrainingJobResponse — Schema for TrainingJob response.
  - `id` string, uuid, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/wandb/apis/serverless-training.md) · [All operations](https://skmtc.net/wandb/apis/serverless-training/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/wandb/serverless-training/revisions/8d8d96fc0fd3/schema)
