livestream

Livestream OG image template

A glowing LIVE badge, the start time in a monospace face, the stream title and a player frame with your image.

Livestream Open Graph image template rendered by Shareglint
Livestream template at square size (1080×1080)
Livestream template at portrait size (1080×1350)
Livestream template at story size (1080×1920)
Livestream template at pinterest size (1000×1500)
Livestream 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.

For Twitch and YouTube streams, live coding sessions and launch broadcasts. Dark like a control room by default, with scanlines and a glow in your accent colour; the player frame holds a still from the stream or the set. Use badge for UPCOMING or REPLAY.

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
title text Stream title. default: Stream title Building an OG image API from scratch — live coding
badge text Red badge text, e.g. Live. default: Live —
time text When it starts, e.g. Today · 18:00 CET. Today · 18:00 CET
channel text Channel name next to the avatar. Trail Notes Dev
site text Stream address under the channel name. live.trailnotes.dev
image image URL Still shown in the player frame. https://example.com/images/conference.jpg
avatar image URL Square avatar or logo. https://example.com/images/avatar-man2.jpg
accent colour Brand colour as hex, e.g. #6366f1. Drives buttons, highlights and the background glow. default: #a855f7 #a855f7
theme dark | light Colour scheme: dark or 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": "livestream",
    "modifications": {
        "title": "Building an OG image API from scratch — live coding",
        "time": "Today · 18:00 CET",
        "channel": "Trail Notes Dev",
        "site": "live.trailnotes.dev",
        "image": "https://example.com/images/conference.jpg",
        "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/livestream.png?channel=Trail%20Notes%20Dev&site=live.trailnotes.dev&time=Today%20%C2%B7%2018%3A00%20CET&title=Building%20an%20OG%20image%20API%20from%20scratch%20%E2%80%94%20live%20coding&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/livestream/copy" \
  -H "Authorization: Bearer sk_live_YOUR_KEY"

More OG image templates

All templates →