A hosted API that renders syntax-highlighted code screenshots — with themes, window decorations, and line numbers — so you never have to run Puppeteer in production.
Code image generators exist. The hard part isn't the HTML — it's keeping the renderer alive in production.
Not for developers tweeting a snippet — for systems generating images at scale, automatically.
Send code, get a WebP image back. That's it.
| FIELD | TYPE | DEFAULT | DESCRIPTION |
|---|---|---|---|
code |
string | required | Source code to render. Max 50 lines. |
lang |
string | required | Language identifier (e.g. typescript, python, rust). |
theme |
string | github-light | One of: github-light, github-dark, nord, dracula, one-dark-pro, catppuccin-mocha. |
decoration |
string | macos | Window chrome style: macos, windows, or plain. |
lineNumbers |
boolean | false | Show line numbers alongside code. |
We've handled the hard parts so you don't have to.
All plans available on RapidAPI. No credit card required for BASIC.
Your first screenshots are free — no setup, no containers, no headaches.