Dreambooth Text to Image

Use dreambooth text2img API to generate images from any custom trained model or from any publicly available model.

You can also pass scheduler in API

possible values for scheduler are


--request POST 'https://stablediffusionapi.com/api/v4/dreambooth' \

Make a POST request to https://stablediffusionapi.com/api/v4/dreambooth endpoint.

Click HERE to watch a how to video.

key : Your API Key
prompt : Your Prompt
model_id : public or your trained Model id
samples : number of images you want in response
negative_prompt : Items you don't want in the image
scheduler : scheduler to use in image generation
width : Width of output image. Maximum size is 1024x768 or 768x1024 because of memory limits
height : Height of output image. Maximum size is 1024x768 or 768x1024 because of memory limits
prompt_strength : Prompt strength when using init image. 1.0 corresponds to full destruction of information in init image
num_inference_steps : Number of denoising steps (minimum: 1; maximum: 50)
guidance_scale : Scale for classifier-free guidance (minimum: 1; maximum: 20)
seed : Random seed. Leave blank to randomize the seed
enhance_prompt : Enhance prompts for better results, default : yes, option : yes/no
webhook : webhook to call when image generation is completed
upscale : upscale generated image. yes/no, Default : no
track_id : tracking id to track this api call

Request Body

Body Raw
 "key": "",
 "model_id": "your_model_id",
 "prompt": "actual 8K portrait photo of gareth person, portrait, happy colors, bright eyes, clear eyes, warm smile, smooth soft skin, big dreamy eyes, beautiful intricate colored hair, symmetrical, anime wide eyes, soft lighting, detailed face, by makoto shinkai, stanley artgerm lau, wlop, rossdraws, concept art, digital painting, looking into camera",
 "negative_prompt": "painting, extra fingers, mutated hands, poorly drawn hands, poorly drawn face, deformed, ugly, blurry, bad anatomy, bad proportions, extra limbs, cloned face, skinny, glitchy, double torso, extra arms, extra hands, mangled fingers, missing lips, ugly face, distorted face, extra legs, anime",
 "width": "512",
 "height": "512",
 "samples": "1",
 "num_inference_steps": "30",
 "scheduler": "UniPCMultistepScheduler",
 "seed": null,
 "guidance_scale": 7.5,
 "webhook": null,
 "track_id": null
Example Response
  "status": "success",
  "generationTime": 10.171663284301758,
  "id": 32401,
  "output": [