Generate dreambooth image
generate dreambooth image command generates an image based on a text prompt using the Stability API and saves it to a file.
Parameters
File Name: The name of the file to save the generated image to.
Text Prompt: The text prompt that the command will use to generate the image.
Engine Name: (Optional) The name of the image generation engine to use. Default is "Stable Diffusion XL Beta v2.2.2".
Height: (Optional) The height of the generated image in pixels. Default is 512.
Width: (Optional) The width of the generated image in pixels. Default is 512.
Example
connect to dreambooth("your dreambooth api key") generate dreambooth image("myImage.jpg", "A city skyline at sunset", "Stable Diffusion XL Beta v2.2.2", 512, 512)
In this script, we first connect to the Dreambooth API with the connect to dreambooth command. "your dreambooth api key" should be replaced with your actual API key.
Then we use the generate dreambooth image command to generate an image of "A city skyline at sunset", using the "Stable Diffusion XL Beta v2.2.2" engine, and a size of 512 pixels high and broad. The image is saved as "myImage.jpg". If successful, this script will create a new file called "myImage.jpg" in your project file's directory.