Recipe Image Generator API
Generate beautiful Pinterest-style recipe card images dynamically via API
API Endpoint
GET /api/generate?template=template-modern-3&title=Your+Recipe&websiteUrl=example.com
Parameters
- template - Template name (e.g., template-modern-3, template-corner-5) (required)
- title - Recipe title (required)
- tagline - Subtitle/tagline text (optional)
- websiteUrl - Your website URL to display (required)
- topImage - URL for main image (optional)
- bottomImage - URL for bottom image (for 2-image templates) (optional)
- width - Image width in pixels (default: 1000)
- height - Image height in pixels (default: 1500)
Examples
Modern Template with Custom Content:
GET /api/generate?template=template-modern-3&title=Chicken+Spaghetti&tagline=EASY+DELICIOUS&websiteUrl=MyRecipes.com
Corner Template with Custom Image:
GET /api/generate?template=template-corner-5&title=Chocolate+Cake&websiteUrl=Bakery.com&topImage=https://images.unsplash.com/photo-1578985545062-69928b1d9587
Custom Dimensions (1080x1080 for Instagram):
GET /api/generate?template=template-rating-2&title=Best+Cookies&websiteUrl=CookieShop.com&width=1080&height=1080
Note: This API generates PNG images at your specified dimensions (default 1000×1500px), perfect for Pinterest, Instagram, and food blogs. Images are generated on-demand at the edge for fast performance worldwide.