Start a Replicate fine-tune / training run
replicate_create_trainingKick off a fine-tuning run on a trainable base model with your dataset and hyperparameters. Returns a training ID for status polling.
Instructions
Kick off a fine-tuning (training) run on a trainable base model — e.g. a Flux LoRA trainer — with your dataset and hyperparameters. Returns immediately with a training ID; poll it with replicate_get_training.
Args:
model: BASE trainer "owner/name" (or "owner/name:version" to pin the trainer version inline). e.g. "ostris/flux-dev-lora-trainer".
version (optional): trainer version id. Required unless pinned inline on model.
destination: "owner/name" the trained weights are pushed to. The destination model must already exist on your account.
input: training inputs as a JSON object (dataset URL + hyperparameters). Call replicate_get_model_schema on the trainer to see its exact inputs.
Returns structuredContent: TrainingSummary { id, status, model, version, destination, created_at, completed_at, output_version, error }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | No | Training inputs as a JSON object (dataset URL + hyperparameters). The exact keys depend on the trainer — call replicate_get_model_schema on the trainer model to see them. | |
| model | Yes | The BASE trainer model as "owner/name" (or "owner/name:version" to pin the trainer version inline). Example: "ostris/flux-dev-lora-trainer". | |
| version | No | Trainer version id. Required unless you pinned it inline on `model` as "owner/name:version". | |
| destination | Yes | Where the trained weights are pushed, as "owner/name". The destination model must already exist on your account. |