social-post

Social post OG image template

A post card with avatar, name, handle, text and reply, repost and like counts.

Social post Open Graph image template rendered by Shareglint
Social post template at square size (1080×1080)
Social post template at portrait size (1080×1350)
Social post template at story size (1080×1920)
Social post template at pinterest size (1000×1500)
Social post template at youtube size (1280×720)

These are real renders from the API with the example values in the table below. Switch the size above: the same template lays itself out for all 6 sizes — send size or sizes with the request.

Turn a post into an image that reads anywhere: a clean card on a gradient in your accent colour, with the author, the text (line breaks kept) and the counts. No third-party logos, so it works for any network and for your own community.

Fields

Every field is optional. Long text shrinks to fit instead of overflowing; an image field takes a public URL that we fetch on our side.

Field Type Description Example
text text The post itself. Line breaks are kept. default: Post text We shipped dynamic OG images for every docs page this morning. Click-through from Slack and LinkedIn is up 41% in the first week.
name text Author's display name. Daniel Okafor
handle text Social handle, e.g. @mayacodes. @danokafor
verified text Any value shows a check mark next to the name; leave it empty to hide. yes
date text Time and date as you want them printed. 9:41 AM · Oct 22, 2026
replies text Reply count, e.g. 86. 86
reposts text Repost count, e.g. 312. 312
likes text Like count, e.g. 2.4k. 2.4k
avatar image URL Author's avatar. Without it, the first letter of the name. https://example.com/images/avatar-man2.jpg
accent colour Brand colour as hex, e.g. #6366f1. Drives buttons, highlights and the background glow. default: #7c3aed #7c3aed
theme dark | light Colour scheme: dark or light. default: light —

Render it with one request

Use the slug as template. The response holds the URL of the finished PNG; ?wait=true keeps the connection open until it is ready.

curl -X POST "https://shareglint.com/v1/images?wait=true" \
  -H "Authorization: Bearer sk_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "template": "social-post",
    "modifications": {
        "text": "We shipped dynamic OG images for every docs page this morning.\n\nClick-through from Slack and LinkedIn is up 41% in the first week.",
        "name": "Daniel Okafor",
        "handle": "@danokafor",
        "verified": "yes",
        "date": "9:41 AM · Oct 22, 2026",
        "replies": "86",
        "reposts": "312",
        "likes": "2.4k",
        "avatar": "https://example.com/images/avatar-man2.jpg"
    }
}'

Or paste a signed URL into og:image

For static sites, Webflow, Shopify and no-code tools: put the fields in the query string and sign it with your signing secret. The first request renders the image, every later one is a redirect to the cached file. How to compute the signature.

<meta property="og:image" content="https://shareglint.com/i/acc_YOUR_ACCOUNT_ID/social-post.png?date=9%3A41%20AM%20%C2%B7%20Oct%2022%2C%202026&handle=%40danokafor&likes=2.4k&name=Daniel%20Okafor&replies=86&reposts=312&text=We%20shipped%20dynamic%20OG%20images%20for%20every%20docs%20page%20this%20morning.%0A%0AClick-through%20from%20Slack%20and%20LinkedIn%20is%20up%2041%25%20in%20the%20first%20week.&verified=yes&s=YOUR_SIGNATURE">

Make it yours

accent and theme change per request. For anything more, copy the template into your account: you get an ordinary HTML template with the same fields that you can edit in the dashboard or through the API. If the slug is free on your account, the copy takes it — your integrations switch to your version without changing a line.

curl -X POST "https://shareglint.com/v1/templates/library/social-post/copy" \
  -H "Authorization: Bearer sk_live_YOUR_KEY"

More OG image templates

All templates →