SEO & Publishing

Social card generator

Social card generator: POST {title, subtitle, domain, theme, accent} and receive a finished 1200x630 OpenGraph card — PNG (base64) plus the source SVG. Three themes (dark, light, midnight), custom accent color, automatic text wrapping. Pairs with /api/og/check: check the page, then generate the missing card.

Price: $0.02 per call, paid in USDC via the x402 protocol (see the x402 security scheme).

post/api/og/card

Request

  • Base URL: https://api.webbersites.com
  • URL: https://api.webbersites.com/api/og/card
  • Auth: API key in header X-PAYMENT

Request body

titlestring required

Card headline (required, wraps to 3 lines, max 140 chars)

subtitlestring

Smaller supporting line (optional)

domainstring

Shown bottom-left in accent color (optional)

themestring

dark (default), light, or midnight

accentstring

Hex accent color override, e.g. #ff6b35

Response

Success

widthnumber
heightnumber
svgstring
png_base64string
data_uristring

Changes

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