# The best open-source image generation APIs and tools

Source: https://snapsbrew.com/blog/best-open-source-image-generation-api

For images from code, use Satori or Takumi. For full CSS, use Playwright, Puppeteer or Gotenberg. For a visual template editor with an API on your own server, the options are Snapsbrew and a few very new projects. Browserless is not OSI open source, and imgproxy edits images but does not compose them.

By [Alejandro Medina](https://amedina.me), maintainer of Snapsbrew. Published 27 November 2026. Last updated 27 November 2026.

On this page

- [The short list](#the-short-list)
- [Libraries: images from code](#libraries-images-from-code)
- [Browsers: images from HTML with full CSS](#browsers-images-from-html-with-full-css)
- [Template APIs with a visual editor](#template-apis-with-a-visual-editor)
- [Close, but not a fit](#close-but-not-a-fit)
- [How to choose](#how-to-choose)

I maintain Snapsbrew, so I have a stake in this list. To keep it honest, every fact below comes from the repository, the license file or the docs of each project, checked on 27 November 2026. The star counts and the dates come from the GitHub API on the same day. Snapsbrew is in the list where it fits, not at the top.

"Image generation API" means two different things in 2026. One is an AI model that paints a picture from a prompt. This post is about the other one: software that composes an image from a template, HTML or code, so that the text, the logo and the layout come out exactly as designed. Social cards, certificates, product images, tickets.

## The short list

| Project                                                                  | License           | What it is                          | Renders with               | Visual editor | Last push  | Stars   |
| ------------------------------------------------------------------------ | ----------------- | ----------------------------------- | -------------------------- | ------------- | ---------- | ------- |
| [Satori](https://github.com/vercel/satori)                               | MPL-2.0           | JS library: JSX to SVG              | Own layout engine          | No            | 2026-11-25 | 14,221  |
| [Takumi](https://github.com/kane50613/takumi)                            | MIT or Apache-2.0 | Rust and JS library                 | Own layout engine          | No            | 2026-11-27 | 3,226   |
| [Playwright](https://github.com/microsoft/playwright)                    | Apache-2.0        | Browser automation                  | Chromium, Firefox, WebKit  | No            | 2026-11-27 | 101,173 |
| [Puppeteer](https://github.com/puppeteer/puppeteer)                      | Apache-2.0        | Browser automation                  | Chrome, Firefox            | No            | 2026-11-26 | 95,914  |
| [Gotenberg](https://github.com/gotenberg/gotenberg)                      | MIT               | Docker API for PDFs and screenshots | Chromium                   | No            | 2026-11-26 | 13,674  |
| [node-html-to-image](https://github.com/frinyvonnick/node-html-to-image) | Apache-2.0        | Node library                        | Puppeteer, with Handlebars | No            | 2026-09-11 | 885     |
| [Snapsbrew](https://github.com/amedina068/snapsbrew)                     | AGPL-3.0          | Self-hosted template API            | Headless Chrome            | Yes           | 2026-11-27 | 0       |
| [Canolite](https://github.com/AakashKhambhaliya/canolite)                | MIT               | Self-hosted template API            | Chromium and Sharp         | Yes           | 2026-11-26 | 1       |
| [OG Studio](https://github.com/QuiiBz/ogstudio)                          | MIT               | Visual editor for OG images         | Satori and resvg           | Yes           | 2025-12-06 | 205     |

Stars measure attention, not quality. Two of the three projects with an editor are new: Canolite started in June 2026, and the public repository of Snapsbrew opened on 24 November 2026.

## Libraries: images from code

### Satori

[Satori](https://github.com/vercel/satori) turns JSX into SVG without a browser, which makes it fast and small enough for edge functions. Vercel built it for `@vercel/og`, the engine behind `ImageResponse` in Next.js.

The README is clear about the limits: it "supports a limited subset of HTML and CSS features" and the output may not "100% match the browser-rendered HTML". It writes SVG only, so a PNG needs a second step, usually [resvg-js](https://github.com/thx/resvg-js). Read [Dynamic OG images compared](https://snapsbrew.com/blog/dynamic-og-images-compared.md) for the details and the conflict between the Satori README and the Vercel docs about CSS grid.

**Fits:** a developer who writes the card in JSX and wants no extra service.

### Takumi

[Takumi](https://github.com/kane50613/takumi) is a newer Rust layout engine with bindings for Node.js, Bun, Cloudflare Workers and the browser. Its README says that it renders "JSX, HTML, and CSS to images, SVG, PDFs" without a headless browser, and that its layout "ports Chromium's Blink". It writes PNG, JPEG, WebP, GIF, PDF and more, and it has an `ImageResponse` that follows `next/og`.

**Fits:** the Satori model with more CSS and more output formats. Test it with your own layouts, because it is younger.

## Browsers: images from HTML with full CSS

### Playwright and Puppeteer

Both open a real browser and take a screenshot. [Playwright](https://playwright.dev/docs/api/class-page#page-screenshot) and [Puppeteer](https://pptr.dev/api/puppeteer.screenshotoptions) both write PNG, JPEG or WebP. You get every CSS feature that the browser has.

They are libraries, not an image API. You build the HTTP endpoint, the queue, the browser pool, the font setup and the cache.

**Fits:** a team that already runs servers and wants total control of the HTML.

### Gotenberg

[Gotenberg](https://gotenberg.dev/docs/chromium/screenshot-html) is a Docker API that turns HTML, URLs and office files into PDFs. It also has screenshot routes: send HTML or a URL, and get PNG, JPEG or WebP back. It is MIT-licensed and very active.

It has no templates. You build the finished HTML for each image.

**Fits:** a team that needs PDFs and images from the same HTML, behind one stable API.

### node-html-to-image

[node-html-to-image](https://github.com/frinyvonnick/node-html-to-image) is a small Node library: Puppeteer plus Handlebars templates, with PNG or JPEG output. The templates are HTML with `{{placeholders}}`.

**Fits:** a Node script that makes a batch of images from one HTML template.

## Template APIs with a visual editor

This is the open-source answer to Bannerbear and Placid: a person designs the template in a browser, and code sends the values.

### Snapsbrew

[Snapsbrew](https://github.com/amedina068/snapsbrew) is the project I maintain. It is a Laravel app with a Vue editor. It renders PNG, JPEG, WebP and PDF with headless Chrome. It has a REST API, signed URLs for `og:image` tags, batches of up to 100 renders, a CSV and XLSX import, embedded forms, an MCP server for AI agents, and SDKs for JavaScript, PHP, Python and Ruby. It runs with Docker Compose, with MySQL, Redis and Browserless.

The limits are real: it does no video, it has no Zapier or Make app, and one maintainer answers the issues. Read [When not to use Snapsbrew](https://snapsbrew.com/when-not-to-use-snapsbrew.md).

**Fits:** many images from a few templates, on your own server, with a designer who owns the templates.

### Canolite

[Canolite](https://github.com/AakashKhambhaliya/canolite) calls itself "a self-hosted Bannerbear/Templated.io alternative". It is MIT-licensed, with a Fabric.js editor, a REST API, a CSV import, webhooks and MP4 video output, which Snapsbrew does not have. The repository was created in June 2026 and had 1 star when I checked.

**Fits:** a team that wants video from templates and is happy to adopt a very new project.

### OG Studio

[OG Studio](https://github.com/QuiiBz/ogstudio) is an MIT-licensed, Figma-like editor for OG images, built on Satori and resvg. The README describes the hosted app at ogstudio.app. It does not document a self-hosted render API, and the last push was in December 2025.

**Fits:** designing an OG card visually, then exporting it.

## Close, but not a fit

- **[Browserless](https://github.com/browserless/browserless)** runs pooled headless browsers in Docker, and Snapsbrew can use it as its renderer. It is not OSI open source: the license is the SSPL or a commercial license, and the README says that closed-source commercial use needs a paid license.
- **[Beeroniza](https://github.com/thomaspietschmann/beeroniza)** is a self-hosted template editor with a REST API. Its own license file says: "This is a source-available license. It is not an Open Source license as defined by the Open Source Initiative." It does not allow you to sell it as a paid service.
- **[imgproxy](https://github.com/imgproxy/imgproxy)** resizes, crops and converts existing images from a URL. It does not compose an image from a template. Text watermarks are in the paid Pro edition.

## How to choose

1. **Who edits the design?** If only developers, a library (Satori, Takumi) or a browser (Playwright, Gotenberg) is enough. If a designer edits it, you need an editor.
2. **How much CSS do you need?** Simple flexbox cards work in Satori. Anything that needs the real browser needs Playwright, Puppeteer, Gotenberg or a template API that renders with Chrome.
3. **Do you need video?** Of the self-hosted template APIs here, only Canolite lists MP4.
4. **How much will you run?** A library runs inside your app. A template API is a second app with a database and a queue.
5. **Is the project alive?** Check the last push, the open issues and the release history. Two of the editor projects in this post went public in 2026.

If none of these fit and you would rather not run anything, a hosted API is a fair choice. The [comparison pages](https://snapsbrew.com/compare.md) and the [alternatives pages](https://snapsbrew.com/alternatives.md) cover Bannerbear, Placid, HTML/CSS to Image and others, with sources.

## Questions

What is the most popular open-source tool for OG images?

By GitHub stars on 27 November 2026, Satori, with about 14,200 stars. It is a library, not a server. Playwright and Puppeteer have more stars, but they are general browser automation tools.

Is there an open-source Bannerbear with a visual editor?

Yes, a few. Snapsbrew (AGPL-3.0) has a template editor, a REST API, signed URLs, batches and an MCP server. Canolite (MIT) is a newer project with an editor, an API and MP4 output. Both are young projects, so read their repositories before you depend on them.

Is Browserless open source?

Not in the OSI sense. Its license is the SSPL or a commercial license, and its README says that closed-source commercial use needs a paid license.

Do I need a headless browser to make images?

No. Satori and Takumi lay out the image without a browser. You need a browser when you want full CSS, or when a visual editor and the renderer must show the same result.

## Related pages

- [Dynamic OG images compared: Satori, a headless browser or a template API](https://snapsbrew.com/blog/dynamic-og-images-compared.md)
- [Bannerbear alternatives](https://snapsbrew.com/alternatives/bannerbear.md)
- [Compare Snapsbrew with hosted image APIs](https://snapsbrew.com/compare.md)
- [When not to use Snapsbrew](https://snapsbrew.com/when-not-to-use-snapsbrew.md)

## Run it on your own server

Docker Compose starts the app, the queue, MySQL, Redis and the renderer together.

[Self-host it](https://snapsbrew.com/docs/getting-started/installation-docker.md) [View on GitHub](https://github.com/amedina068/snapsbrew)

```bash
git clone https://github.com/amedina068/snapsbrew.git
cd snapsbrew
cp .env.docker.example .env   # then fill in .env
docker compose up -d --build
```
