Social preview card generator
Make a 1200×630 social preview (Open Graph) card as SVG with a wrapped title, subtitle and site name.
Input
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
| Name | Type | Required | What 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.
Related tools
- Placeholder image generatorMake an SVG placeholder image of any size with a centred label, for mock-ups and layouts.
placeholder-image - Gradient image generatorMake an SVG image filled with a linear or radial gradient from your colour stops, plus the matching CSS.
gradient-image - Emoji favicon generatorMake an SVG favicon from an emoji or one or two letters, with the ready-to-paste link tag for your page head.
emoji-favicon - .gitignore generatorBuild a .gitignore for the languages, editors and operating systems you use, merged without duplicates.
gitignore-generate - ASCII banner text generatorTurn short text into large five-line banner letters for terminals, READMEs, logs and code comments.
ascii-banner - ASCII table generatorRender headers and rows as a box-drawing or plain ASCII table for terminals, logs and code comments.
ascii-table