Dreambooth Text to Image API is used to create image from text from trained models or public models
You can make api call to public models as well as your trained models, to get public models id from here
--request POST 'https://stablediffusionapi.com/api/v3/dreambooth' \
Make a POST
request to https://stablediffusionapi.com/api/v3/dreambooth
endpoint and pass the appropriate parameters.
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
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
{
"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",
"safety_checker": "no",
"enhance_prompt": "yes",
"seed": null,
"guidance_scale": 7.5,
"webhook": null,
"track_id": null
}