# HTML to Image

HTML to Image is a service that converts HTML and CSS into images or captures screenshots of web pages.

This is a first-class FlyMyAI MCP. Agents **discover it automatically** via tool search and call the actions below on demand - you never wire it up by hand. See the [Composio catalog](https://docs.flymy.ai/mcp/composio.md) for how discovery works.

## Connect

**HTML to Image** authenticates with an API key. Generate the credential in your HTML to Image account, then paste it into FlyMyAI the first time an agent uses a HTML to Image action.

[Get your HTML to Image credential →](https://html2img.com/docs/quick-start)

### Fields to fill in FlyMyAI

| Field | Details |
| --- | --- |
| `HTML to Image API Key` | Your unique API key for authenticating requests to the HTML to Image API. _(required)_ |

## Actions

Every action this integration exposes. Agents pick the right one from the task; you do not call them by name.

| Action | What it does | Required inputs |
| --- | --- | --- |
| `HTML_TO_IMAGE_GET_IMAGE` | Tool to retrieve a generated image by its ID. Use when you need to fetch, resize, or download an existing HTML to image asset. | `image_id` |
| `HTML_TO_IMAGE_HTML_TO_IMAGE_CHECK_USAGE` | Tool to retrieve account usage statistics including hourly, daily, and monthly image creation counts. Use after authenticating to review current usage limits and billing periods. | - |
| `HTML_TO_IMAGE_HTML_TO_IMAGE_CONVERT_TO_IMAGE` | Tool to convert HTML content into an image. Returns either a downloadable file or a JSON payload containing id and url, depending on the upstream API behavior. | `html` |

## Links

- [HTML to Image website](https://html2img.com/)
- [Get API key / credential](https://html2img.com/docs/quick-start)
- [Browse the full Composio catalog](https://docs.flymy.ai/mcp/composio.md)
