# Microsoft Foundry MAI image generation: Hermes Agent plugin

> Microsoft Foundry MAI text-to-image generation and image editing with up to five reference images as a Hermes image_gen provider (image_gen.provider: azure-mai).

Canonical: https://hermeswatcher.com/plugins/azure-mai-image  
Tier: Community  
Official page (Nous Research): https://hermes-agent.nousresearch.com/docs/plugins/azure-mai-image  
Last updated in catalog: 2026-11-17

Microsoft Foundry MAI text-to-image generation and image editing with up to five reference images as a Hermes image_gen provider (image_gen.provider: azure-mai). Maps Hermes aspect ratios onto MAI width/height presets and exposes the resource's own model list.

## Good to know before installing

Sends your prompt, the optional source images and your MAI_FOUNDRY_API_KEY (read per request through Hermes secret scope for the active profile) over https to your own Azure AI Foundry resource; with the opt-in web_grounding option (MAI-Image-2.6, off by default) the service may send prompt-derived search queries to Bing; every generation bills your Foundry subscription with no Hermes approval prompt before spending. Results are downloaded into the Hermes image cache under $HERMES_HOME/cache/images/. No telemetry, shell commands, background processes, self-updates or extra Python dependencies beyond requests.

From the plugin's catalog listing.

## How to install

1. Install it. Hermes asks for any API keys it needs (this one needs `MAI_FOUNDRY_API_KEY`, `MAI_FOUNDRY_ENDPOINT`), then asks whether to turn it on.

```bash
hermes plugins install azure-mai-image
```

2. Said no? Turn it on later:

```bash
hermes plugins enable azure-mai-image
```

3. Restart Hermes so it loads the plugin.

Some plugins also need a sign-in or settings: see the official page. Memory plugins ask whether to become your memory provider instead. Steps follow the official plugins guide: https://hermes-agent.nousresearch.com/docs/user-guide/features/plugins

## Facts

- Category: Images, video, music & 3D, AI models & providers
- Maintained by: joescars (Community)
- Needs: `MAI_FOUNDRY_API_KEY`, `MAI_FOUNDRY_ENDPOINT` (API keys)
- Requires Hermes: `>=0.21.6`
- Version: 0.2.1
- In the catalog since: 2026-11-17

## Links

- [Full setup and settings (official page)](https://hermes-agent.nousresearch.com/docs/plugins/azure-mai-image)
- [Source code](https://github.com/joescars/hermes-mai-image#readme)
- [All plugins](https://hermeswatcher.com/plugins.md)

---

HermesWatcher is an independent guide. It is not affiliated with or endorsed by Nous Research. The [official Hermes Agent documentation](https://hermes-agent.nousresearch.com/docs) and [repository](https://github.com/NousResearch/hermes-agent) from Nous Research are the authority; each page here lists the official sources it was written from. If this site and the official docs disagree, trust the official docs. Index for agents: https://hermeswatcher.com/llms.txt
