Dreambooth
Create Project
POST
/
dreambooth
/
project
Header
Body
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"
}
Description
Creates a dreambooth project
Form Data
init-word
string
requiredDescribes the word
train-iterations
number
default: "800"Number of iterations to train
square-func
string
default: "expand"Enum: expand
, crop
, square
prior-preservation
boolean
default: "false"Should be true if working with faces
safety-filter
boolean
default: "false"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"
}