Overview
Allows you to generate and edit AI images with simple SAMMI commands.
Features
Generating images
- Generate new image(s) based on a prompt with DALL-E 2 or DALL-E 3 models
- Generate image variation(s) based on a provided image
- Generate image edit(s) based on a provided image and mask.
Saving Images
- Saves the generated image(s) to URL or to a file.
Verifying Prompts
- Verify the prompt is safe before generating an image (0 cost)
User friendly
- Lots of checks implemented to avoid sending invalid parameters to Open API
- Automatically generates new file names to prevent overwriting old files
- Saves image URLs or file paths in an array within the button for easy access
- All image URLs are also saved in a text file to prevent loss in case of crashes
Important information
- DALL-E is a paid service, it requires an OpenAI account and a credit card
- See pricing info here: https://openai.com/pricing
- You must monitor your own usage and set usage limits (described in the setup guide)
By installing this extension you’re agreeing to be monitoring your own usage and cost, and NOT using the extension (i.e. uninstalling it from Bridge) if you notice a high usage. In that case, please report it to Christina on Itch or Discord.
Icon generated by OpenAI
Special thanks goes to:
My amazing Patrons.
Thank you so much!
If you would like to support me developing SAMMI itself and my extensions, you can join my Patreon, which will give you access to all my upcoming creations for completely free and priority help on any of my extensions.
DISCLAIMER: The extension is provided as is. The developer has no obligation to provide maintenance and support services or handle any bug reports.
Feel free to edit the extension for your own use. You may not distribute, sell or publish it without the author’s permission.
Setup
- Install the extension. You can follow the Extension Install Guide.
- Setup your INIT button
API Key
:- Navigate to https://platform.openai.com
- Login or create a new account
- Navigate to API Keys
- Create a new secret key
- Copy paste the key in the Open AI API box in the INIT button
- Set up your payment method in the Billing section and add credits to your balance or enable auto-recharge
- Set your usage limits
DALL-E Generate
Generates a new image based on a prompt, uses DALL-E 2 model.
Box Name | Description |
---|---|
Prompt | The image description, the more detailed the better, max 1000 characters |
Amount | Amount of images to generate, between 1-10 |
Size | Size of the generated image |
Response | Save the image as a file or as a URL. If saving it as a file, it will be saved in your SAMMI folder/Ext/image generations. To prevent files from being accidentally overridden, the filename is automatically generated in the following format: DALL·E {timestamp} - {truncated prompt}_{index}.png |
Save As Variable | Variable to save the result into, won’t be set at all if generating failed. If saving the image as a file, it will be an array containing all image file paths. If saving the image as a URL, it will be an array containing all image URLs |
Save as Variable (status) | Variable to save the status result into. If the request succeeds, it will be set to 1 , if not, it will be set to 0 |
DALL-E 3 Generate
Generates a new image based on a prompt, uses DALL-E 3 model.
Box Name | Description |
---|---|
Prompt | The image description, the more detailed the better, max 1000 characters |
Amount | Amount of images to generate. Currently only 1 image is supported |
Quality | The quality of the image. Hd creates images with finer details and greater consistency across the image. |
Size | Size of the generated image |
Style | Vivid causes the model to lean towards generating hyper-real and dramatic images. Natural causes the model to produce more natural, less hyper-real looking images. |
Response | Save the image as a file or as a URL. If saving it as a file, it will be saved in your SAMMI folder/Ext/image generations. To prevent files from being accidentally overridden, the filename is automatically generated in the following format: DALL·E {timestamp} - {truncated prompt}_{index}.png |
Save As Variable | Variable to save the result into, won’t be set at all if generating failed. If saving the image as a file, it will be an array containing all image file paths. If saving the image as a URL, it will be an array containing all image URLs |
Save as Variable (status) | Variable to save the status result into. If the request succeeds, it will be set to 1 , if not, it will be set to 0 |
DALL-E Variations
Generates image variations based on the supplied image. Uses DALL-E 2 model.
Box Name | Description |
---|---|
Image File Path | The image to use as the basis for the variation(s). Must be a valid PNG file, less than 4MB, and square |
Amount | Amount of images to generate, between 1-10 |
Size | Size of the generated image |
Response | Save the image as a file or as a URL. If saving it as a file, it will be saved in your SAMMI folder/Ext/image generations. To prevent files from being accidentally overridden, the filename is automatically generated in the following format: DALL·E Variations {timestamp} - {filename}_{index}.png |
Save As Variable | Variable to save the result into. If saving the image as a file, it will be an array containing all image file paths. If saving the image as a URL, it will be an array containing all image URLs |
Save as Variable (status) | Variable to save the status result into. If the request succeeds, it will be set to 1 , if not, it will be set to 0 |
DALL-E Edit
Creates an edited or extended image given an original image and a prompt. Uses DALL-E 2 model.
Box Name | Description |
---|---|
Image File Path | The image to edit, must be a valid PNG file, less than 4MB, and square |
Mask File Path | An additional image whose fully transparent areas indicate where the image should be edited. Must be a valid PNG file, less than 4MB, and square |
Prompt | The desired image description, max 1000 characters |
Amount | Amount of images to generate, between 1-10 |
Size | Size of the generated image |
Response | Save the image as a file or as a URL. If saving it as a file, it will be saved in your SAMMI folder/Ext/image generations. To prevent files from being accidentally overridden, the filename is automatically generated in the following format: DALL·E {timestamp} - {originalFileName}_{index}.png |
Save As Variable | Variable to save the result into. If saving the image as a file, it will be an array containing all image file paths. If saving the image as a URL, it will be an array containing all image URLs |
Save as Variable (status) | Variable to save the status result into. If the request succeeds, it will be set to 1 (succeeded), if not, it will be set to 0 (failed) |
DALL-E Verify Prompt
Verifies the prompt is safe before attempting to generate an image. This is a free endpoint.
The response will contain an object with detailed categories and their scores.
The easiest way to see if the prompt has been tagged is to check the flagged
key.
Box Name | Description |
Prompt | The prompt to verify |
Save As Variable | Variable names to save the result into |
Save as (result) | Variable name to save the status of the response. If the request succeeds, it will be set to 1 (succeeded), if not, it will be set to 0 (failed) |
Privacy Policy
This developer declares that your data is:
- Not being sold to third parties.
- Not being used or transferred for purposes that are unrelated to the extension's core functionality
- Not being used or transferred to determine creditworthiness or for lending purposes
Reviews
Coming soon!