The Stability AI AddOn is only available for Superpowers and Enterprise plans.
The Stability AI AddOn converts text to images. This feature allows your end users to submit descriptions of what they would like to see in their AI-generated images, and to also submit negative prompts of what they do not want to see in their image. Once they submit the prompt and negative prompt, they'll receive an AI-generated image that they can use directly within their designs. Visit the AI-generated white label end user guide to learn more about how this feature works for your application's end users.
This section discusses the prerequisites and steps you need to take to get started with this feature.
Prerequisites
Stability AI API key
Stability AI addOn installed in the Beefree SDK Developer Console
Take the following steps to activate this feature:
Log in to the Beefree SDK Developer Console.
Navigate to the application you'd like install the addOn in.
Install the Stability AI addOn.
Provide the requested details.
Save your changes.
The addOn is now activated.
The Stability AI text-to-image AddOn uses a new handle.
This handle is ai-image-generation
.
Consider the following settings when configuring this feature in your code:
This section includes sample code you can use to configure this AddOn.
Parameter | Type | Description | Additional Information |
---|---|---|---|
imagesAvailable
number
Images available.
If not provided images are not counted and the user can generate an infinite number of images.
imagesUsed
number
The images used.
isGenerationDisabled
boolean
Disable the generation.
False by default.
upsellTrigger
number
Represents the number of remaining images that will show the upsell CTA.
Default is 3.
isUpsellEnabled
boolean
Enable or disable the upsell.
Default is false.
folderName
string
The name of the folder where the images will be saved.
Default is “AI Generated Images".