module
This interface has all the APIs used to embed our editing modules in your own application.
createImageFromText
createImageFromText: (appConfig?: TextToImageAppConfig, exportConfig?: ExportOptions, containerConfig?: ContainerConfig): void
All the properties in this object are optional.
Property
Type
Description
exportConfig
Configure export options. If no export options are specified, the editor falls back to the default layout options.
TextToImageAppConfig
TextToImageAppConfig allows you to pass a prompt into the editor, and configure callback functions.
Property
Type
Description
promptText
string
Optional string to launch the Generate Image module with a prompt
editImage
editImage: (docConfig: EditImageDocConfig, exportConfig?: ExportOptions, containerConfig?: ContainerConfig): void
The only required property is docConfig.
Property
Type
Description
exportConfig
Configure export options. If no export options are specified, the editor falls back to the default layout options.
EditImageDocConfig
Property
Type
Description