Why Firefly? Not Midjourney or DALL-E
The question always comes up in client meetings: “Can we use Midjourney or DALL-E instead?” Technically yes. Commercially, no….at least not without significant legal risk. Adobe Firefly is trained exclusively on Adobe Stock (licensed), openly licensed content, and public domain material. Adobe indemnifies enterprise customers against copyright claims on Firefly-generated content.
Three things make Firefly the right choice for enterprise AEM deployments: commercially safe training data with Adobe indemnification, Custom Style References to lock brand visual identity, and native Adobe ecosystem integration via App Builder and AEM Assets.
Part 1 – The Architecture
The integration has four layers:
- Layer 1 – Creative Brief: Author writes brief in AEM Sidekick panel, selects style reference from AEM Assets, configures channel and variant count
- Layer 2 – Firefly Generation: App Builder action calls Firefly Images API with style reference, generates N variants in parallel, returns signed URLs
- Layer 3 – AEM Assets Review: Variants ingested as drafts, automated compliance check via Claude API, human review in AEM inbox, auto-tagging on approval
- Layer 4 – EDS Delivery: Author selects approved image, AEM EDS converts to WebP/AVIF, Fastly CDN caches at edge, Lighthouse score stays at 100
Part 2 – App Builder Action: Calling Firefly API
All API keys live in App Builder environment variables never in client-side code, never in AEM content. The action receives a brief from the Sidekick panel and returns image URLs back to AEM Assets. Key environment variables: FIREFLY_API_KEY, FIREFLY_CLIENT_ID, IMS_ORG_ID.
The App Builder action builds a Firefly API request with the text prompt, style reference image URL, target size per channel, and number of variants. After generation, all image URLs are ingested into AEM Assets as draft assets with source:firefly metadata.
Part 3 – AEM Sidekick Panel UI
A custom AEM Sidekick v6+ extension adds a “Generate Image” panel. Authors fill in a text prompt, select a style reference from their AEM Assets library, choose the target channel and variant count, then click Generate. The panel shows real-time progress while App Builder calls Firefly.
The Sidekick panel calls the App Builder API endpoint never Firefly directly. This ensures all API keys remain server-side at all times.
Part 4 – AEM Assets Review Workflow
Generated images land in AEM Assets as drafts with metadata status:draft and source:firefly, triggering a review workflow automatically.
Workflow steps:
- Ingest trigger – Workflow Launcher fires on new asset with source:firefly
- Automated compliance check – Claude API checks brand brief match and prohibited content
- Human review – Brand team sees all variants side by side in AEM inbox
- Auto-tagging – Adobe Sensei tags approved images with subject, colour, mood, composition
- Status update – Approved images get status:approved and appear in page editor asset picker
Part 5 – Bulk Campaign Generation
For campaign launches requiring 50+ image variants, a scheduled App Builder action reads a campaign brief from an AEM Content Fragment and generates all variants in a single batch job. A campaign brief for four channels at four variants each produces 16 images in roughly 8 seconds all ingested into AEM Assets and tagged with campaign metadata.
Part 6 – Edge Delivery: Serving AI Images at 100 Lighthouse
AEM Edge Delivery Services handles image optimisation automatically. Fastly serves Firefly images as WebP or AVIF at the correct responsive size with lazy loading. Always reference the AEM Assets rendition URL never raw Firefly output URLs so EDS can apply resizing and format conversion.
Part 7 – Style References: Locking Brand Visual Identity
Style references are the most important Firefly capability for enterprise use. Select 5–10 of your best on-brand images, upload to /content/dam/brand/style-references/, tag by use case (hero, product, lifestyle, team), and restrict the Sidekick panel style reference picker to this folder.
Measuring the Impact
- Time from brief to approved image typically drops from 2-3 days to under 2 hours
- Image variant count per campaign grows from 2-4 to 16-20 variants for A/B testing
- Adobe Stock spend 40-60% reduction after six months of Firefly adoption
- Page Lighthouse score must stay at 100 after publishing Firefly images


