Shotfly

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.

your.site/blog/hello-world
Social card “Hello, world”, rendered by Shotfly at 1200 × 630
og:image1200 × 630
Real render of a card template · device_scale_factor=2 · 2026-11-30 UTC
  1. 01

    Point og:image at a Shotfly URL with viewport_width=1200 and viewport_height=630; selector captures just the card element, and device_scale_factor=2 makes it sharper.

  2. 02

    Signed URLs use your public key (pk_…) and an HMAC signature, so the secret never appears in your HTML. See signing.

  3. 03

    cache_ttl keeps 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 use fresh=true after you change the design.

  4. 04

    One credit per card actually rendered; failed renders cost nothing.

One request.

Every option is a parameter; see the parameter reference.

Example
<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=…" />