V1 — Image API

Synchronous image generation via GET request. Returns a PNG stream directly. No API key required for basic usage.

GET/api/og

Authentication

V1 works without an API key for quick prototyping and embedding. Anonymous requests are rate limited to 10 renders per day per IP.

Authenticated requests (with x-api-key header) get higher rate limits and render tracking in the dashboard.

Parameters

ParameterTypeRequiredDescription
templatestringYesTemplate name or custom_* ID. See Templates.
titlestringYesMain heading text. 1–200 characters.
descriptionstringNoSubheading or description. Max 500 characters.
tagstringNoCategory/tag label. Max 50 characters.
authorstringNoAuthor name. Max 100 characters.
avatarURLNoAuthor avatar image. Must be HTTPS.
logoURLNoBrand logo image. Must be HTTPS.
fontstringNoGoogle Font name. Default: Inter.

Color Parameters

All color values are 6-character hex codes without the# prefix.

ParameterAliasDefaultDescription
bgColorbg0a0a0fBackground color
textColortextf0f0f8Primary text color
accentColoraccent6366f1Accent/highlight color
surfaceColor13131aSurface/card background
palettePreset: midnight, paper, forest, sunset, ocean
Note
If palette is specified, individual color params override palette defaults.

Response

HeaderValue
Content-Typeimage/png
Cache-Controlpublic, max-age=86400, s-maxage=86400

The image is 1200×630 px PNG, optimized for social media platforms.

Error Responses

StatusMeaning
400Invalid parameters (JSON with error and details)
401Invalid API key
404Custom template not found
429Rate limit exceeded
500Internal server error

Example

cURL
curl -o og-image.png \
  "https://ogmint.app/api/og?template=blog&title=Hello+World&author=Jane&palette=sunset"