Social preview card generator

Make a 1200×630 social preview (Open Graph) card as SVG with a wrapped title, subtitle and site name.

Input

The headline. It wraps to at most three lines and shrinks to fit.
A smaller line under the title.
Your site or author name, shown at the bottom.
Accent colour: hex or a basic colour name.
Dark or light background.

Result

Fill in the input and press Run.

Your input is processed in memory and then discarded. It is not stored or logged. Even so, don't paste live passwords or keys into any online tool.

Use it from code or an agent

curl -s https://setget.net/v1/tools/og-card \
  -H 'Content-Type: application/json' \
  -d '{"input":{"title":"How we cut our build time from 14 minutes to 90 seconds","subtitle":"Notes from a year of small fixes","site_name":"example.com"}}'
import json, urllib.request

body = {'input': {'title': 'How we cut our build time from 14 minutes to 90 seconds', 'subtitle': 'Notes from a year of small fixes', 'site_name': 'example.com'}}
request = urllib.request.Request("https://setget.net/v1/tools/og-card", json.dumps(body).encode(),
                                 {"Content-Type": "application/json"})
print(json.load(urllib.request.urlopen(request))["result"])
const response = await fetch("https://setget.net/v1/tools/og-card", {
  method: "POST",
  headers: {"Content-Type": "application/json"},
  body: JSON.stringify({"input":{"title":"How we cut our build time from 14 minutes to 90 seconds","subtitle":"Notes from a year of small fixes","site_name":"example.com"}}),
});
console.log((await response.json()).result);
Tool: run_tool
Arguments:
{
  "slug": "og-card",
  "input": {
    "title": "How we cut our build time from 14 minutes to 90 seconds",
    "subtitle": "Notes from a year of small fixes",
    "site_name": "example.com"
  }
}
{
  "input": {
    "title": "How we cut our build time from 14 minutes to 90 seconds",
    "subtitle": "Notes from a year of small fixes",
    "site_name": "example.com"
  }
}

Endpoint: POST /v1/tools/og-card. Over MCP: run_tool with slug: "og-card". Machine-readable: input schema, Markdown. Connect an agent.

Inputs

NameTypeRequiredWhat it does
title string yes The headline. It wraps to at most three lines and shrinks to fit.
subtitle string no A smaller line under the title.
site_name string no Your site or author name, shown at the bottom.
accent string no Accent colour: hex or a basic colour name. Default: "#2a78d6".
theme string no Dark or light background. One of: dark, light. Default: "dark".

Examples

Input
{
  "title": "How we cut our build time from 14 minutes to 90 seconds",
  "subtitle": "Notes from a year of small fixes",
  "site_name": "example.com"
}
Result

Different every time. Press the example button above to see one.

A short title on a light card

Input
{
  "title": "Release 2.0",
  "theme": "light",
  "accent": "#eb6834"
}
Result

Different every time. Press the example button above to see one.

Questions

Can I use the SVG directly as og:image?
Most social networks need PNG or JPEG. Convert the SVG to PNG (1200×630) before using it in an og:image tag.