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¶
- Open Administration > Entity Manager.
- Select an entity and open Fields.
- Edit an Image or Attachment Multiple field.
- Enable AI Image Generation.
- Save.
Generate an image¶
- Edit a record.
- Select the image-generation action on the enabled field.
- Enter a clear description.
- Choose Square, Landscape, or Portrait.
- Click Generate.
- Review the preview and click Use Image.
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.

