API Documentation
Generate beautiful OG images with a simple API call.
Quick Start
1
Create an account
Sign up and get 100 free credits
2
Generate an API key
Go to Dashboard → API Keys → Create Key
3
Make your first request
Use the examples below
Code Examples
curl -o og-image.png \
-H "x-api-key: og_your_api_key" \
"https://ogshot.cc/api/og?title=Hello%20World&template=gradient"Endpoints
GET
/api/ogGenerate an OG image
Headers
x-api-keyYour API keyrequiredQuery Parameters
titlestringrequiredMain heading text
subtitlestringoptionalSecondary text below title
templatestringoptionalTemplate name: minimal, gradient, glass, bold, neon Default: minimal
widthnumberoptionalImage width in pixels (max 2400) Default: 1200
heightnumberoptionalImage height in pixels (max 1260) Default: 630
Response Codes
| Code | Description |
|---|---|
200 | Success — returns PNG image |
400 | Bad request — invalid parameters |
401 | Unauthorized — invalid or missing API key |
402 | Payment required — insufficient credits |
429 | Rate limit exceeded |
Available Templates
minimalMinimal
Clean and simple
gradientGradient
Vibrant gradient orbs
glassGlass
Frosted glass effect
boldBold
Large typography
neonNeon
Glowing cyberpunk