Dreambooth
Create Run
POST
/dreambooth/run
Authorization*
x-api-key*
Description
Run dreambooth image generation with an optional initial image
Form Data
project-idrequired
string
The id of the project
promptrequired
string
Input prompt for the run. Must include sks
in the prompt for accurate results
num-images
Default: "9"string
Must be between 0
and 9
prompt-strength
Default: "0.8"string
Must be between 0
and 1
width
Default: "512"number
height
Default: "512"number
num-inference-steps
Default: "50"number
Must be between 10
and 50
guidance-scale
Default: "7.5"string
Must be between 0
and 10
files[]
files
curl -X POST \
https://api.mirageml.com/dreambooth/run \
-H 'Authorization: <AUTHORIZATION>' \
-H 'Cache-Control: no-cache' \
-H 'content-type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW' \
-H 'x-api-key: <API_KEY>' \
-F project-id=<PROJECT_ID> \
-F prompt=<PROMPT> \
-F num-images=<NUM_IMAGES> \
-F prompt-strength=<PROMPT_STRENGTH> \
-F width=<WIDTH> \
-F height=<HEIGHT> \
-F num-inference-steps=<NUM_INFERENCE_STEPS> \
-F guidance-scale=<GUIDANCE_SCALE> \
-F 'files[]=<FILES>'
{
"statusCode": 200
"run_id": "15993396-1860-455a-84af-09795b0d3d1e"
}
curl -X POST \
https://api.mirageml.com/dreambooth/run \
-H 'Authorization: <AUTHORIZATION>' \
-H 'Cache-Control: no-cache' \
-H 'content-type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW' \
-H 'x-api-key: <API_KEY>' \
-F project-id=<PROJECT_ID> \
-F prompt=<PROMPT> \
-F num-images=<NUM_IMAGES> \
-F prompt-strength=<PROMPT_STRENGTH> \
-F width=<WIDTH> \
-F height=<HEIGHT> \
-F num-inference-steps=<NUM_INFERENCE_STEPS> \
-F guidance-scale=<GUIDANCE_SCALE> \
-F 'files[]=<FILES>'
{
"statusCode": 200
"run_id": "15993396-1860-455a-84af-09795b0d3d1e"
}