---
title: "Train a dreambooth model with instance images"
method: POST
path: "/dreambooth/train"
tags: ["Dreambooth"]
---

# Train a dreambooth model with instance images

`POST /dreambooth/train`

Train a new model using the provided local images and prompts. The model will be trained asynchronously and the response will contain a job_id. The status of the job can be checked using the job_id.

## Request body

- DreamboothTrainRequest
  - `training_params` TrainingParams, required
    - `model` Model
      - `name` string
      - `revision` string
      - `sdxl` boolean
    - `images_url` string[], required
    - `max_train_steps` integer
    - `class_name` string, required
    - `class_images_url` string[], nullable
    - `instance_name` string
  - `inference_request` InferenceRequest
    - `model` Model
      - `name` string
      - `revision` string
      - `sdxl` boolean
    - `prompts` RoutersDreamboothPrompt[], required
      - `complete` string, required
      - `negative` string, nullable
      - `count` integer
      - `id` string, nullable
    - `inference_params` InferenceParams
      - `steps` integer
      - `seed` integer
      - `cfg_scale` number
      - `width` integer
      - `height` integer
    - `enable_safe_mode` boolean
    - `img2img` Img2Img
      - `image_url` string, required
      - `denoising_strength` number
    - `inpaint` InPaint
      - `image_url` string, required
      - `mask_url` string, required
      - `denoising_strength` number
    - `controlnets` ControlNet[], nullable
      - `model` 'canny' | 'ip2p' | 'inpaint' | 'mlsd' | 'depth' | 'normalbae' | 'seg' | 'lineart' | 'lineart_anime' | 'openpose' | 'scribble' | 'softedge' | 'shuffle' | 'tile', required
      - `image_url` string, required
      - `scale` number
      - `preprocessor` 'HED' | 'midas' | 'MLSD' | 'openpose' | 'openpose_face' | 'openpose_face_only' | 'openpose_full' | 'openpose_hand' | 'pidi_net' | 'normal_bae' | 'lineart' | 'lineart_anime' | 'canny' | 'content_shuffle' | 'zoe' | 'mediapipe_face' | 'sam'
      - `params` object, nullable
    - `callback` string, nullable
  - `callback` string, nullable

## Response `201`

Successful Response

- DreamboothResponse
  - `job_id` string, required
  - `status` string, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/texel/apis/texel-api.md) · [All operations](https://skmtc.dev/texel/apis/texel-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/texel/texel-api/revisions/b728014efdc8/schema)
