Send HTML. Get an image.
HopShot turns static HTML into a PNG, JPG, or WebP in one request. Call the API from anything that speaks HTTP, or connect your AI agent over MCP. No account or API key needed.
<div class="flex h-full w-full
items-center justify-center
bg-[#ff8fb1] text-[#231942]
text-9xl font-bold">
Hello!
</div>
Hello!
Try it now
Paste this into a terminal. It sends the HTML above and saves the image as hello.png.
Terminal
curl 'https://hopshot.dev/api/v1/render' \
--fail-with-body \
--header 'Content-Type: application/json' \
--output hello.png \
--data-binary @- <<'JSON'
{
"html": "<div class=\"flex h-full w-full\n items-center justify-center\n bg-[#ff8fb1] text-[#231942]\n text-9xl font-bold\">\n Hello!\n</div>",
"format": "png"
}
JSON
PNG is the default. For JPG or WebP, change format to "jpg" or "webp" and save as hello.jpg or hello.webp. The same option works over MCP.
- API
- POST JSON with your HTML and chosen format. The response is the image itself.
- MCP
- Add
https://hopshot.dev/mcpto your agent and call render_image. - Limits
- 3 renders a minute per IP. HopShot doesn’t keep your images.