DALL-E light module
Edition |
Incubator (services) |
||
Git |
|||
Latest |
|
The DALL-E light module makes DALL-E’s public API accessible and usable through Magnolia. The following functions are provided:
-
Generating and storing images based on text (see Create image)
-
Creating image variants (see Create image variation)
-
Creating modified images (see Create image edit)
Prerequisites
-
You must have a DALL-E account.
-
You should have already installed the JavaScript UI module.
This light module is at the INCUBATOR level. |
License
@magnolia-services/dall-e
is open source software licensed as MIT.
Installing the light module
Installing the DALL-E light module light module is very simple.
-
You need to make sure the light module is integrated as part of your Magnolia project. This typically means you have this light module saved under your Magnolia project’s
light-modules
directory.For more on light modules in Magnolia, see here. -
Next, you’ll need to generate an API key via your DALL-E account.
-
You’ll need to copy that API key as you’ll need it in the following places in this light module:
Replacement spotsIn the following files in this light module, replace
DALL_E_TOKEN
with your newly-generated DALL-E API key.-
/dialogs/generateAsset.yaml Ln 24, Col 33
-
/dialogs/generateEdit.yaml Ln 34, Col 33
-
/dialogs/generateVariation.yaml Ln 26, Col 33
-