Skip to content
Before and after template filled with example text

Before and after template

Two photos side by side or stacked, labelled before and after, with a headline.

Sizes

  • link 1200×630
  • square 1080×1080
  • portrait 1080×1350
  • story 1080×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

FieldTypeLimitNotes
headlinerequiredtext90 charactersHeadline
before_labeltext16 charactersLeft label. Default: Before
after_labeltext16 charactersRight label. Default: After
captiontext140 charactersCaption
before_urlimage (https URL or sample:)—Before photo. Public https JPEG or PNG up to 5 MB, or a built-in sample.
after_urlimage (https URL or sample:)—After photo. Public https JPEG or PNG up to 5 MB, or a built-in sample.
brand_nametext40 charactersBrand name. Your business name. brand=default fills it from your brand kit.
logo_urlimage (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_colorcolour #RRGGBB—Brand colour. Default: #E76F51
fontinter / 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"
  }
}'

More social proof templates