Appearance
Meme Generator Template
Create image-based content with bold captions for marketing.
Template ID
template: "meme"Preview
Meme-style layout featuring:
- Full background image
- Bold top caption
- Bold bottom caption
- Impact-style typography
- Optional branding
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
image_url | string | Yes | Background image URL |
caption_top | string | No | Top text (large, bold) |
caption_bottom | string | No | Bottom text (large, bold) |
title | string | No | Alternative to caption_top |
subtitle | string | No | Alternative to caption_bottom |
theme | string | No | dark (default) or light |
logo_url | string | No | Small brand watermark |
Example Request
bash
curl -X POST https://ogimageapi.io/api/generate \
-H "Content-Type: application/json" \
-H "X-API-Key: YOUR_API_KEY" \
-d '{
"image_url": "https://example.com/background.jpg",
"caption_top": "WHEN YOUR CODE WORKS",
"caption_bottom": "ON THE FIRST TRY",
"template": "meme",
"theme": "dark"
}' \
--output meme-og.pngLayout Structure
┌─────────────────────────────────────────┐
│ │
│ WHEN YOUR CODE WORKS │
│ │
│ ┌─────────────────────────────────┐ │
│ │ │ │
│ │ Background Image │ │
│ │ │ │
│ └─────────────────────────────────┘ │
│ │
│ ON THE FIRST TRY │
│ │
│ [Logo] │
└─────────────────────────────────────────┘Theme Variations
Dark Theme
- White text with black outline
- Classic meme look
- Maximum readability
Light Theme
- Dark text with white outline
- Works on bright images
- More subtle appearance
Use Cases
| Content Type | Recommended Setup |
|---|---|
| Marketing memes | Dark theme |
| Social content | Dark theme |
| Relatable posts | Either theme |
| Product humor | Dark + logo |
| Community content | Dark theme |
Best Practices
- Use quality source images — Resolution matters
- Keep text SHORT — All caps, few words
- Match text to image — The combo makes the joke
- Brand subtly — Small logo, if any
- Test readability — Text must be visible
Integration Examples
Marketing Meme Generator
javascript
async function generateMarketingMeme(meme) {
const response = await fetch('https://ogimageapi.io/api/generate', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-API-Key': process.env.OG_IMAGE_API_KEY
},
body: JSON.stringify({
image_url: meme.backgroundImage,
caption_top: meme.topText.toUpperCase(),
caption_bottom: meme.bottomText.toUpperCase(),
template: 'meme',
theme: 'dark',
logo_url: 'https://mycompany.com/small-logo.png'
})
});
return response;
}User-Generated Content
javascript
// Allow users to create memes with your branding
async function createUserMeme(userId, topText, bottomText, imageUrl) {
// Validate inputs
if (topText.length > 50 || bottomText.length > 50) {
throw new Error('Text too long');
}
const response = await fetch('https://ogimageapi.io/api/generate', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-API-Key': process.env.OG_IMAGE_API_KEY
},
body: JSON.stringify({
image_url: imageUrl,
caption_top: topText,
caption_bottom: bottomText,
template: 'meme',
theme: 'dark'
})
});
// Save and return...
}Caption Guidelines
| Do | Don't |
|---|---|
| ALL CAPS | Lowercase |
| Short phrases | Long sentences |
| Punchy words | Complex vocabulary |
| Setup/Punchline | Single thought |
| Clear contrast | Text blending into image |
Image Specifications
| Property | Recommendation |
|---|---|
| Format | JPG or PNG |
| Size | 1200×630 px minimum |
| Aspect ratio | 1.91:1 ideal |
| Content | High contrast areas for text |
| Quality | Clear, not blurry |
Marketing Use Cases
Unlike casual memes, marketing memes should:
- Relate to your audience — Industry-specific humor
- Stay on brand — Appropriate tone
- Drive action — Subtle CTA or brand awareness
- Be shareable — Genuinely funny or relatable
Related Templates
- Social Share — Text-focused social content
- Title + Subtitle — Professional alternative