1. Dreambooth
  2. Create Project
POST

/dreambooth/project

Authorization*
x-api-key*

Description

Creates a dreambooth project

Form Data

init-wordRequired
string

Describes the word

train-iterationsDefault: 800
number

Number of iterations to train

square-funcDefault: expand
string

Enum: expand, crop, square

prior-preservationDefault: false
boolean

Should be true if working with faces

safety-filterDefault: false
boolean

Automatically filters NSFW images

links
string

JSON object of links to images to download. Example:

{"0": "https://sabe.io/images/saturn.png", "1": "https://sabe.io/images/mars.png", "2": "https://sabe.io/images/earth.png"}
files[]
files
curl -X POST \
  https://api.mirageml.com/dreambooth/project \
  -H 'Authorization: <AUTHORIZATION>' \
  -H 'Cache-Control: no-cache' \
  -H 'content-type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW' \
  -H 'x-api-key: <API_KEY>' \
  -F init-word=<INIT_WORD> \
  -F train-iterations=<TRAIN_ITERATIONS> \
  -F square-fun=<SQUARE_FUNC> \
  -F prior-preservation=<PRIOR_PRESERVATION> \
  -F safety-filter=<SAFETY_FILTER> \
  -F 'files[]=<FILES>' \
  -F 'links={"0": "https://sabe.io/images/saturn.png", "1": "https://sabe.io/images/saturn.png"}'
{
  "statusCode": 200,
  "project_id": "047b6913-fd3d-4b0d-8dca-349f786a40a9"
}