Use case
Open Graph image API
Design the social card as a normal page on your site, for example a template route per post, and let Shotfly turn it into the image that shows up when the link is shared. No image pipeline, no headless browser in your build.

- 01
Point
og:imageat a Shotfly URL withviewport_width=1200andviewport_height=630;selectorcaptures just the card element, anddevice_scale_factor=2makes it sharper. - 02
Signed URLs use your public key (
pk_…) and an HMAC signature, so the secret never appears in your HTML. See signing. - 03
cache_ttlkeeps a rendered card for up to 30 days and cache hits are free; open the URL once after publishing so the first social crawler gets the cached image, and usefresh=trueafter you change the design. - 04
One credit per card actually rendered; failed renders cost nothing.
One request.
Every option is a parameter; see the parameter reference.
<meta property="og:image"
content="https://api.shotfly.dev/v1/screenshot?url=https%3A%2F%2Fyour.site%2Fog%2Fhello-world&viewport_width=1200&viewport_height=630&format=png&access_key=pk_your_public_key&signature=…" />