URLひとつでOG画像を動的に生成します。
Pass your API key in the Authorization header. Best for server-to-server calls where the key is never exposed to the browser.
# Authorization headercurl "https://api.ogquick.com/v1/og?title=Hello" \ -H "Authorization: Bearer ogquick_sk_..."
A Signed URL embeds an HMAC-SHA256 signature computed from the request parameters and a timestamp. The secret key is never included in the URL. Only the key ID (kid), timestamp (ts), and signature (sig). Safe to embed directly in HTML <meta> tags.
sig = HMAC-SHA256(key_secret, canonical) where canonical = all params (except sig itself) sorted alphabetically and joined as key=value&key=value. Use the raw (not URL-encoded) values. key_secret is your API key (ogquick_sk_…), and kid is the Key ID shown on the API Keys page.import { createHmac } from 'node:crypto'; // params must include: title, kid (key UUID), ts (unix timestamp)function sign(secret, params) { const canonical = Object.entries(params) .filter(([k]) => k !== 'sig') .sort(([a], [b]) => a.localeCompare(b)) .map(([k, v]) => `${k}=${v}`).join('&'); return createHmac('sha256', secret) .update(canonical).digest('hex');} // Or use the dashboard Generator to create Signed URLs without code
Use the OG Generator in your dashboard to create Signed URLs without writing code. The dashboard signs the URL using your selected API key and returns a ready-to-paste <meta> tag.
| Parameter | Type | Description | |
|---|---|---|---|
title | string | 必須 | Main text displayed on the image. Max 200 characters (longer titles are rejected; over 100 are shortened with …). |
subtitle | string | 任意 | Secondary text below the title. Up to 2 lines, max 300 characters. |
theme | string | 任意 | Visual theme: dark (default), light, minimal, vibrant. |
font | string | 任意 | Font: auto (default — picks by script, Korean/Japanese included), pretendard, inter. |
align | string | 任意 | Text alignment: left (default), center, right. |
platform | string | 任意 | Platform preset — sets size, format and quality: og, twitter, twitter_square, kakao, kakao_channel, linkedin, line, whatsapp, naver, instagram, instagram_portrait, instagram_story, youtube, pinterest. Overrides w, h, format and quality. |
format | string | 任意 | Output format: png (default), jpg, webp. |
quality | number | 任意 | JPG/WebP quality 1–100. Default 85. |
w | number | 任意 | Image width in pixels, 200–2400. Default 1200. |
h | number | 任意 | Image height in pixels, 200–2400. Default 630. |
bg | string | 任意 | Background color as hex (1a1a2e), or two hex colors separated by a comma (1a1a2e,16213e) for a diagonal gradient. |
accent | string | 任意 | Accent color (hex). Used for the subtitle text. |
image | string | 任意 | Background image URL. URL-encode the value. |
overlay | number | 任意 | Dark overlay opacity over the background image (0–1). Default 0.5. |
logo | string | 任意 | Logo image URL shown above the title. |
kid | string | 任意 | Key ID for Signed URL authentication. Required with sig. |
ts | number | 任意 | Unix timestamp. Required with sig (included automatically when signing). |
sig | string | 任意 | HMAC-SHA256 signature. Required for Signed URL auth. |
On success: 200 image/png, image/jpeg, or image/webp binary. On rate limit: 429. On invalid signature: 401.
| Response Header | Description |
|---|---|
Content-Type | image/png, image/jpeg, or image/webp |
X-RateLimit-Limit | Maximum requests for your plan this month. |
X-RateLimit-Remaining | Remaining requests this month. |
X-RateLimit-Reset | ISO 8601 timestamp when the counter resets. |
X-OGQuick-Cache | HIT if served from cache, MISS if freshly rendered. |
<!-- ダッシュボードのGeneratorで署名付きURLをコピーして貼り付け --><meta property="og:image" content="https://api.ogquick.com/v1/og ?kid=YOUR_KEY_ID &theme=dark &title=Hello%20World &sig=SIGNATURE" />
| Plan | Monthly Limit | Over Limit |
|---|---|---|
| Free | 50 images | 429 error |
| Hobby | 500 images | 429 error |
| Starter | 3,000 images | 429 error |
| Pro | 15,000 images | 429 error |
| Scale | 100,000 images | 429 error |
Cached images do not count against your quota. The counter resets on the 1st of each month (UTC).