Dynamic Media · atomic

Render an Open Graph card (default 1200x630) as SVG

GET /v1/edge-og-svg-generator on media.caelaralabs.com

$0.005USDC per call
GETatomic tier
1 / 10Required params
Parameters

Request parameters

NameInTypeRequiredDescription
titlequerystringyesHeadline
subtitlequerystringnoSupporting line
brandquerystringnoBrand label
themequerystringnodark (default) or light
bgquerystringnoBackground color (hex, with or without #)
fgquerystringnoText color (hex, with or without #)
accentquerystringnoAccent color (hex, with or without #)
widthqueryintegernoWidth in px (200-4000, default 1200)
heightqueryintegernoHeight in px (200-4000, default 630)
formatquerystringnojson (default, includes svg + data URI) or svg (raw image/svg+xml)
cURL

Call it with an API key

Send your key as X-Caelara-Key. Responses are JSON; when an upstream source is unavailable the API still answers HTTP 200 with "partial": true instead of a server error.

curl -s "https://media.caelaralabs.com/v1/edge-og-svg-generator?title=Hello%20world" \ -H "X-Caelara-Key: $CAELARA_KEY"
MCP

Use it as an MCP tool

Tool name edge_og_svg_generator on the remote server https://media.caelaralabs.com/mcp (registry ID com.caelaralabs/media). MCP tool calls need an X-Caelara-Key API key; to pay per call in USDC, use the direct HTTP route in the x402 section below.

{ "mcpServers": { "caelara-media": { "type": "http", "url": "https://media.caelaralabs.com/mcp", "headers": { "X-Caelara-Key": "${CAELARA_KEY}" } } } }
{ "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "edge_og_svg_generator", "arguments": { "title": "Hello world" } } }
x402

Pay per call in USDC on Base

No account needed. An unauthenticated request returns HTTP 402 with an X-Payment-Required: x402 header and a JSON body whose accepts entry carries scheme exact, network base, maxAmountRequired 5000 (0.005 USDC, 6 decimals), the USDC asset and the payTo address. Settlement happens only after a successful response.

# 1. Unpaid call: HTTP 402 with header X-Payment-Required: x402 curl -si "https://media.caelaralabs.com/v1/edge-og-svg-generator?title=Hello%20world" # 2. Pay 0.005 USDC (5000 atomic units) on Base mainnet # asset 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 # payTo see the 402 response: accepts[0].payTo # 3. Retry with the signed payment payload curl -s "https://media.caelaralabs.com/v1/edge-og-svg-generator?title=Hello%20world" \ -H "X-PAYMENT: $X402_PAYMENT_B64"