Dreambooth
Create Run
Dreambooth
Create Run
POST
/dreambooth/run
Authorization*
x-api-key*
curl --request POST \
--url https://api.mirageml.com/dreambooth/run \
--header 'Authorization: <authorization>' \
--header 'x-api-key: <x-api-key>' \
--data '{
"project-id": "<project-id>",
"prompt": "<prompt>"
}'
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-imagesDefault: "9"
string
Must be between 0
and 9
prompt-strengthDefault: "0.8"
string
Must be between 0
and 1
widthDefault: "512"
number
heightDefault: "512"
number
num-inference-stepsDefault: "50"
number
Must be between 10
and 50
guidance-scaleDefault: "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"
}