Generated images

Social preview image

A 1200 by 630 card for og:image and twitter:image: a title (set as large as fits in three lines, cut with an ellipsis beyond that), an optional subtitle of up to two lines, and a site name and tag along the bottom. The same URL always gives the same picture, so it can be used directly in a meta tag.

get/v1/og-image

Request

  • Base URL: https://api.dharun.dev
  • URL: https://api.dharun.dev/v1/og-image
  • Auth: none declared

Query parameters

titlestring required

Up to 200 characters, in any script.

subtitlestring

Up to 300 characters; two lines are shown.

sitestring

Site name, bottom left.

tagstring

Short label, bottom right.

theme'dark' | 'light'

Default dark.

bgstring

Background colour, hex.

fgstring

Title colour, hex.

accentstring

Accent colour, hex.

format'png' | 'svg'

Default png.

Response

Success

Changes

No recorded changes to this operation across all 1 revision of this API.