Stable Diffusion
Create Run
Stable Diffusion
Create Run
POST
/stable-diffusion/run
Authorization*
x-api-key*
curl --request POST \
--url https://api.mirageml.com/stable-diffusion/run \
--header 'Authorization: <authorization>' \
--header 'x-api-key: <x-api-key>' \
--data '{
"project-id": "<project-id>",
"prompt": "<prompt>"
}'
Description
Run stable diffusion image generation with the requested parameters
Body Data
project-idrequired
string
The id of the project
promptrequired
string
Input prompt for the run
num-imagesDefault: "9"
string
Must be between 0
and 9
curl -X 'POST' \
'https://api.mirageml.com/stable-diffusion/run' \
-H 'accept: application/json'
{
"statusCode": 200,
"run_id": "6374f405-a7e3-437d-8ad1-bb553d3c28e0"
}
curl -X 'POST' \
'https://api.mirageml.com/stable-diffusion/run' \
-H 'accept: application/json'
{
"statusCode": 200,
"run_id": "6374f405-a7e3-437d-8ad1-bb553d3c28e0"
}