Before and after template
Two photos side by side or stacked, labelled before and after, with a headline.
Sizes
link1200×630square1080×1080portrait1080×1350story1080×1920
Ways to make it
- An HTTP request from n8n, Make, Zapier or your code (API)
- A signed image URL, for Open Graph tags and email (signed URLs)
- A CSV file or Google Sheet, many images at once (bulk)
Fields
| Field | Type | Limit | Notes |
|---|---|---|---|
headlinerequired | text | 90 characters | Headline |
before_label | text | 16 characters | Left label. Default: Before |
after_label | text | 16 characters | Right label. Default: After |
caption | text | 140 characters | Caption |
before_url | image (https URL or sample:) | — | Before photo. Public https JPEG or PNG up to 5 MB, or a built-in sample. |
after_url | image (https URL or sample:) | — | After photo. Public https JPEG or PNG up to 5 MB, or a built-in sample. |
brand_name | text | 40 characters | Brand name. Your business name. brand=default fills it from your brand kit. |
logo_url | image (https URL or sample:) | — | Logo. Square PNG or JPEG works best. https URL, a built-in sample, or your brand kit logo with brand=default. |
brand_color | colour #RRGGBB | — | Brand colour. Default: #E76F51 |
font | inter / fraunces / grotesk / mono | — | Headline font. inter (clean sans), fraunces (serif), grotesk (bold sans), mono (typewriter). Default: inter |
Request for the image above
curl https://postimager.com/v1/renders?wait=20 \
-H "Authorization: Bearer $POSTIMAGER_KEY" \
-H "Content-Type: application/json" \
-d '{
"template": "before-after",
"size": "square",
"format": "png",
"variables": {
"brand_color": "#E76F51",
"font": "inter",
"brand_name": "Nest Interiors",
"headline": "A tired living room, refreshed in one weekend",
"before_label": "Before",
"after_label": "After",
"caption": "New paint, a reupholstered sofa and better light. Budget: ₹48,000.",
"before_url": "sample:room-before",
"after_url": "sample:room-after"
}
}'