Skip to content

Image Generation

Image Generation creates an image from a text description and stores it as an EspoCRM Attachment.

It can be enabled for Image and Attachment Multiple fields, or called from Formula.

Enable it for a field

  1. Open Administration > Entity Manager.
  2. Select an entity and open Fields.
  3. Edit an Image or Attachment Multiple field.
  4. Enable AI Image Generation.
  5. Save.

Image Generation field action

Generate an image

  1. Edit a record.
  2. Select the image-generation action on the enabled field.
  3. Enter a clear description.
  4. Choose Square, Landscape, or Portrait.
  5. Click Generate.
  6. Review the preview and click Use Image.

Image Generation dialog

For an Image field, the generated attachment becomes the field value. For an Attachment Multiple field, it is added to the existing files.

Requirements

The user needs:

  • AI permission
  • Normal access to the record and target field
  • A configured provider and model that implement image generation

A dedicated profile can be selected under AI Settings > AI Features > Image Generation.

Image input support and image generation are separate model capabilities. A model that can understand an attached image does not necessarily generate images.

Formula

eblaAi\generateImage(PROMPT, SIZE, PROFILE_ID)

The formula returns the generated Attachment ID and additionally requires AI Formula permission.

See Formula Functions.