API REFERENCE

OGShot API Reference

Generate OG images dynamically with a single URL.

Authentication

Pass your API key as a query parameter or Authorization: Bearer header.

terminal
# Query parameterhttps://og.planhub.kr/v1/og?title=Hello&api_key=og_live_...# Authorization headercurl https://og.planhub.kr/v1/og?title=Hello \  -H "Authorization: Bearer og_live_..."

Endpoint

GEThttps://og.planhub.kr/v1/og

Parameters

ParameterTypeDescription
titlestringrequiredMain text displayed on the image. Max 120 characters.
subtitlestringoptionalSecondary text below the title.
themestringoptionalVisual theme. Options: dark (default), light, minimal, vibrant.
platformstringoptionalPlatform preset: twitter, kakao, slack, whatsapp. Auto-adjusts size and format.
api_keystringoptionalYour API key. Required for paid plans. Can also be sent as Bearer token.

Response

On success: 200 image/png or image/jpeg binary. On rate limit: 429.

Response HeaderDescription
Content-Typeimage/png or image/jpeg
X-RateLimit-LimitMaximum requests for your plan this month.
X-RateLimit-RemainingRemaining requests this month.
X-RateLimit-ResetISO 8601 timestamp when the counter resets.
X-OGShot-CacheHIT if served from cache, MISS if freshly rendered.

Code Examples

index.html
<!-- og:image meta 태그 하나면 끝 --><meta property="og:image"  content="https://og.planhub.kr/v1/og    ?title=나의 블로그 글 제목    &theme=dark    &api_key=YOUR_KEY" />

Rate Limits

PlanMonthly LimitOverage
Free50 images429 error (no overage)
Hobby500 images$3 / 1,000 images
Starter3,000 images$3 / 1,000 images
Pro15,000 images$3 / 1,000 images
Scale100,000 images$3 / 1,000 images

Cached images do not count against your quota. The counter resets on the 1st of each month (UTC).

Get API Key →← Home