OG Image API Reference

The OG image API reference covers every endpoint, parameter, and template for generating dynamic Open Graph images with FastOG. The API is credit-based — you pay per render — and HMAC-signed URLs keep each request secure. Sign up free for 100 credits, then create your API key and HMAC secret in the dashboard; renders carry a FastOG watermark until your first payment. Copy an example, hit the endpoint, and ship.

Base URL

https://fastog.com/api/v1/og

Authentication

All requests require HMAC-SHA256 signature authentication. See the HMAC Documentation for details.

Endpoint

GET /api/v1/og

Generates a dynamic Open Graph image based on the provided parameters.

Query Parameters

ParameterTypeRequiredDescription
templatestringNoTemplate name (default: default)
titlestringNoMain title text
subtitlestringNoSubtitle or description text
keystringYesFull API key
sstringYesHMAC-SHA256 signature (64 hex chars)
tnumberYesUnix timestamp in seconds

Template-Specific Parameters

Every template accepts the shared parameters below plus its template-specific parameters (see the index table). The template query parameter selects which layout is used (default: default).

Shared parameters (all templates)
ParameterTypeDescription
titlestringMain heading text
subtitlestringSupporting text
tagslistComma-separated tag labels
themestringdark | light | glass
gradient_presetstringNamed gradient preset (e.g. indigo, ocean, sunset, cosmic)
gradient_directionnumberGradient angle in degrees (default 135)
bg_colorhexSolid background color
patternstringBackground pattern (grid, dots, noise, none, …)
pattern_colorhexPattern color
pattern_intensitynumberPattern opacity (1–30)
font_familystringfont-sans, font-jakarta, font-dm, font-outfit, font-space, font-playfair, font-merriweather, font-instrument, font-jetbrains, font-fira
accent_colorhexAccent color for highlights
auto_text_colorboolDerive text color from the background (default true)
title_colorhexOverride title color
subtitle_colorhexOverride subtitle color
brand_namestringBrand/logo text (default FastOG)
brand_logostringBrand logo image URL
layout_modestringsplit | centered | banner (template-specific variants apply)
Template index — 41 templates:
templateTemplateCategoryAdditional parameters
defaultDefaultBrand
blogBlog PostContentauthor, date, domain
ecommerceE-commerceCommerceprice, original_price, rating, rating_total, features, badge, image, domain
companyCompanyBranddomain, logo, tag
launchProduct LaunchBrandkicker, version, tag, cta, domain
saaslaunchSaaS LaunchBrandkicker, cta, domain
devtoolDeveloper ToolDeveloperversion, badge, domain
gameGameContentprice, rating, image, domain
eventEventSociallocation, host, date, domain
quoteQuoteSocialquote, author_name, author_title
jobJob PostingSociallocation, department, salary, job_type, domain
statsStatsDatametric, metric_label, delta
pricingPricingCommerceprice, period, cta
podcastPodcastMediaepisode_number, guest_name, guest_role, duration
videoVideoMediaduration, channel, views
editorialEditorialContentkicker, author, date, domain
minimalMinimalBranddomain
changelogChangelogDeveloperversion, tag
corporateCorporateBrandkicker, tag, domain
heroHeroBrandkicker, cta, status, domain
imagerightImage RightCommercekicker, image, domain
logosLogo WallBrandkicker, brand_logos, domain
noticeNoticeSocialnotice_status, notice_icon, notice_text, date, domain
testimonialTestimonialSocialquote, author_name, author_title, company, author_avatar, rating, rating_total, quote_style
logofocusLogo FocusContentkicker, domain
xheaderX HeaderSocialsize, handle, followers, location, website, avatar
bentoBentoDatakicker, tiles, domain
comparisonComparisonCommercekicker, left_label, left_desc, left_points, right_label, right_desc, right_points, verdict
timelineTimelineContentkicker, milestones, domain
countdownCountdownBrandkicker, target_date, cta, domain
newsNewsContentheadline, byline, author, date, source, image
codeCodeDevelopercode, language, terminal_title, author, domain
testimonialproTestimonial ProSocialquote, author_name, author_title, company, author_avatar, rating, rating_total, cta
productProductCommercebadge, title, price, original_price, rating, rating_total, features, image, layout_mode
promoPromoBrandbrand_name, benefits, title, subtitle, domain, layout_mode
devblogDev BlogContentcategory, title, subtitle, tags, author, author_title, date, read_time, views, likes, comments, code, language, file_path
codepostCode PostContentcategory, date, title, subtitle, author, read_time, code, file_path, language
statsbarStats BarDatakicker, metric, metric_label, delta, stats, domain
changelogproChangelog ProDeveloperversion, tag, title, changes, features, domain
quotectaQuote CTASocialquote, author_name, author_title, company, cta, domain
appscreenshotApp ScreenshotMediabadge, title, subtitle, app_name, rating, screenshot, domain
Structured parameter types
TypeFormatExample
listComma-separated valuesfeatures=Fast,Cheap,Secure
tilesLine-separated label|value pairstiles=Requests|12.4M\nUptime|99.99%
milestonesLine-separated date|title|descriptionmilestones=Q3 2026|Alpha|Invite-only
changesLine-separated type|text (added,fixed,improved,removed)changes=added|Bento templates

Response

  • 200 OK — Returns PNG image data
  • 401 Unauthorized — Invalid or missing authentication
  • 422 Unprocessable — Invalid template parameters

Error Responses

Error CodeHTTP StatusDescription
missing_signature401Missing s, t, or key parameter
invalid_signature_format401Signature not 64 hex characters
expired_timestamp401Timestamp older than 5 minutes
invalid_signature401Signature verification failed
missing_api_key401Missing API key

Example Request

GET /api/v1/og?template=blog&title=Hello%20World&subtitle=A%20test%20post&key=sk_quick_123abc&s=a1b2c3...&t=1722718800

Example cURL

bash
curl "https://fastog.com/api/v1/og?template=blog&title=Hello%20World&key=sk_quick_123abc&s=<signature>&t=<timestamp>"

Pricing & Limits

FastOG is credit-based: each image render costs 1 credit. There is no separate

requests-per-minute cap on the API — your credit balance is the limit.

PackPriceCreditsPer image
Starter$2.001,200~$0.0017
Pro (Popular)$9.006,300~$0.0014
Business$40.0032,000~$0.0013

Per-image cost is price ÷ credits.

Cached images are free: requests served from the Cloudflare edge cache (same template +

params, regardless of the t/s signature) never reach the origin, so they cost 0 credits

only the first render of a given image is charged.

Watermark: until your first completed payment, every rendered image carries a small FastOG

badge (the 100 free signup credits are a trial). After your first credit top-up the watermark is

removed from all future renders. The API sets an X-FastOG-Watermark response header

(1 = watermarked, 0 = clean) so you can detect it programmatically.

Related

Try it free — no signup required

Preview and test dynamic OG images in seconds.

Open the Free OG Image Tester