Generate high-quality images using Stable Diffusion and SDXL models
Generate stunning images from text prompts using advanced AI models including Stable Diffusion and SDXL. Kelly AI provides access to multiple pre-trained models optimized for different styles and use cases.
Describes what you don’t want in the image. The default value excludes common unwanted elements like distorted anatomy, bad art, blurriness, and NSFW content.
image_data = await kelly.generate( prompt="Modern wireless headphones on a clean white background, product photography, studio lighting", width=1024, height=1024)
The generate() method returns raw image data as bytes. Save it to a file or convert it to a PIL Image object for further processing.
For best results, use detailed prompts with specific descriptors like lighting conditions, art styles, and quality indicators (e.g., “highly detailed”, “sharp focus”, “professional photography”).