DALL-E light module

Generative AI Incubator

Edition

Incubator (services)

Git

Git

Latest

latest

Compatible with Magnolia 6.2.

The DALL-E light module makes DALL-E’s public API accessible and usable through Magnolia. The following functions are provided:

Prerequisites

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.

  1. 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.
  2. Next, you’ll need to generate an API key via your DALL-E account.

  3. You’ll need to copy that API key as you’ll need it in the following places in this light module:

    Replacement spots

    In the following files in this light module, replace DALL_E_TOKEN with your newly-generated DALL-E API key.

  4. Register an imaging configuration

Since Dall-E expects a rectangular image in the tested version, the module currently uses the following imaging endpoint to always send the images delivered to DAll-E in the same format.

/modules/imaging/config/generators/
'dall-e':
  'class': 'info.magnolia.imaging.operations.ImageOperationChain'
  'mgnl:checksum': '8B158E9B3DD455A0D53D4ED03E9F4FB1'
  'outputFormat':
    'formatName': 'png'
    'quality': 100
  'operations':
    'load':
      'class': 'info.magnolia.imaging.operations.load.FromBinaryNode'
    'resize':
      'class': 'info.magnolia.imaging.operations.cropresize.AutoCropAndResize'
      'targetHeight': '800'
      'targetWidth': '800'
  'parameterProviderFactory':
    'class': 'info.magnolia.imaging.parameters.BinaryJcrNodePathParameterProviderFactory'

Changelog

Version Notes

1.0

Initial release of the light module.

Feedback

Incubators

×

Location

This widget lets you know where you are on the docs site.

You are currently perusing through the DALL-E light module docs.

Main doc sections

DX Core Headless PaaS Legacy Cloud Incubator modules