Docs

API reference

Base URL: https://ogkit-api.dsbotz.workers.dev. All endpoints are plain GET requests, CORS-enabled, and return cached results.

GET /og

Render a 1200×630 PNG from parameters.

https://ogkit-api.dsbotz.workers.dev/og?template=blog&title=Hello%20world&site=example.com

GET /auto

Fetches the page at url, reads its title/description/site name, and renders the image. Ideal for CMSs where you can’t template the title.

<meta property="og:image" content="https://ogkit-api.dsbotz.workers.dev/auto?url=https://yoursite.com/page&template=minimal">

GET /inspect

Returns the page’s title, description, Open Graph and Twitter tags as JSON (powers the preview checker).

Caching

Images are cached at the edge for 7 days per unique URL. Change any parameter (e.g. add &v=2) to bust the cache.

Limits (free beta)

Free renders include a small badge. Please keep under ~1,000 new unique images/day during beta. API keys and badge-free plans are coming — join the waitlist.