Zvid
Editor
Pricing
Before / After Ad

Before / After Ad

Dual before/after photo panels with a big result stat and CTA — swap both photos, labels, the headline stat and accent.

Type
Image
Format
Instagram Post · 1:1
Orientation
Square
Render credits
1

Template ID

img-ad-before-after

Library identifier. Saved API templates have a separate ID starting with tpl_.

Variablesphoto
Open in editor

Free template · opens in the editor, no account required.

Customize Before / After Ad

Before / After Ad is a ready-to-render Ad creative / agency image design formatted for Instagram Post · 1:1 and support for variables, photo. Open it in the editor to replace its copy and media, then render variations through the Zvid API.

15 variables: Every value below is a variable you can override — send them in the variables field of the render request (or edit them in the editor) to generate on-brand versions at scale.

brandText
vera fit
eyebrowText
REAL MEMBER RESULTS
headlineAText
Same person,
highlightText
12 weeks apart
beforeLabelText
BEFORE
afterLabelText
AFTER
statText
-8.2kg
captionText
Average member result on the 12-week reset plan.
ctaText
Start your plan
accentColor
#4CD4CE
inkColor
#0E1015
textColorColor
#F4F2FB
mutedColorColor
#8F9AA0
beforeImageMedia URL
afterImageMedia URL

The exact JSON payload

This is the full render config — POST it to the API, or open it in the editor to tweak.

Open in editor ↗
{
  "type": "image",
  "name": "img-ad-before-after",
  "resolution": "instagram-post",
  "outputFormat": "png",
  "backgroundColor": "#0E1015",
  "variables": {
    "brand": "vera fit",
    "eyebrow": "REAL MEMBER RESULTS",
    "headlineA": "Same person,",
    "highlight": "12 weeks apart",
    "beforeLabel": "BEFORE",
    "afterLabel": "AFTER",
    "stat": "-8.2kg",
    "caption": "Average member result on the 12-week reset plan.",
    "cta": "Start your plan",
    "accent": "#4CD4CE",
    "ink": "#0E1015",
    "textColor": "#F4F2FB",
    "mutedColor": "#8F9AA0",
    "beforeImage": "https://images.pexels.com/photos/15442382/pexels-photo-15442382.jpeg?auto=compress&cs=tinysrgb&w=1920&h=1920&fit=max&dpr=1",
    "afterImage": "https://images.pexels.com/photos/6628962/pexels-photo-6628962.jpeg?auto=compress&cs=tinysrgb&w=1600"
  },
  "visuals": [
    {
      "type": "SVG",
      "width": 1080,
      "height": 1080,
      "position": "center-center",
      "track": 0,
      "svg": "<svg width='1080' height='1080' viewBox='0 0 1080 1080' xmlns='http://www.w3.org/2000/svg'><defs><radialGradient id='glow' cx='0.5' cy='1.02' r='0.8'><stop offset='0' stop-color='{{accent}}' stop-opacity='0.16'/><stop offset='1' stop-color='{{accent}}' stop-opacity='0'/></radialGradient></defs><rect width='1080' height='1080' fill='#0E1015'/><rect width='1080' height='1080' fill='url(#glow)'/><rect x='28' y='28' width='1024' height='1024' rx='34' fill='none' stroke='#FFFFFF' stroke-opacity='0.07' stroke-width='1.5'/></svg>"
    },
    {
      "type": "SVG",
      "x": 80,
      "y": 80,
      "width": 210,
      "height": 48,
      "anchor": "top-left",
      "track": 4,
      "svg": "<svg width='210' height='48' viewBox='0 0 210 48' xmlns='http://www.w3.org/2000/svg'><rect x='0' y='0' width='210' height='48' rx='24' fill='#FFFFFF' fill-opacity='0.06' stroke='#FFFFFF' stroke-opacity='0.16' stroke-width='1'/><circle cx='27' cy='24' r='6' fill='{{accent}}'/><text x='47' y='31' font-family='Space Grotesk, Arial' font-size='19' font-weight='600' letter-spacing='0.5' fill='#F4F2FB'>{{brand}}</text></svg>"
    },
    {
      "type": "SVG",
      "x": 80,
      "y": 148,
      "width": 320,
      "height": 40,
      "anchor": "top-left",
      "track": 4,
      "svg": "<svg width='320' height='40' viewBox='0 0 320 40' xmlns='http://www.w3.org/2000/svg'><rect x='0' y='0' width='320' height='40' rx='20' fill='{{accent}}' fill-opacity='0.14' stroke='{{accent}}' stroke-opacity='0.5' stroke-width='1.1'/><text x='22' y='26' font-family='Space Grotesk, Arial' font-size='16' font-weight='600' letter-spacing='2.4' fill='{{accent}}'>{{eyebrow}}</text></svg>"
    },
    {
      "type": "TEXT",
      "x": 80,
      "y": 202,
      "width": 920,
      "anchor": "top-left",
      "track": 5,
      "style": {
        "fontFamily": "Space Grotesk"
      },
      "html": "<div style='font-size:52px; font-weight:700; line-height:1.02; letter-spacing:-0.02em; color:{{textColor}};'>{{headlineA}} <span style='color:{{accent}};'>{{highlight}}</span></div>"
    },
    {
      "type": "IMAGE",
      "src": "{{beforeImage}}",
      "x": 80,
      "y": 300,
      "width": 440,
      "height": 430,
      "anchor": "top-left",
      "radius": {
        "tl": 22,
        "tr": 22,
        "bl": 22,
        "br": 22
      },
      "track": 2
    },
    {
      "type": "IMAGE",
      "src": "{{afterImage}}",
      "x": 560,
      "y": 300,
      "width": 440,
      "height": 430,
      "anchor": "top-left",
      "radius": {
        "tl": 22,
        "tr": 22,
        "bl": 22,
        "br": 22
      },
      "track": 2
    },
    {
      "type": "SVG",
      "x": 100,
      "y": 320,
      "width": 132,
      "height": 40,
      "anchor": "top-left",
      "track": 4,
      "svg": "<svg width='132' height='40' viewBox='0 0 132 40' xmlns='http://www.w3.org/2000/svg'><rect x='0' y='0' width='132' height='40' rx='20' fill='#0B0B12' fill-opacity='0.72'/><text x='24' y='27' font-family='Space Grotesk, Arial' font-size='17' font-weight='700' letter-spacing='2' fill='#C7CED2'>{{beforeLabel}}</text></svg>"
    },
    {
      "type": "SVG",
      "x": 580,
      "y": 320,
      "width": 132,
      "height": 40,
      "anchor": "top-left",
      "track": 4,
      "svg": "<svg width='132' height='40' viewBox='0 0 132 40' xmlns='http://www.w3.org/2000/svg'><rect x='0' y='0' width='132' height='40' rx='20' fill='{{accent}}'/><text x='24' y='27' font-family='Space Grotesk, Arial' font-size='17' font-weight='700' letter-spacing='2' fill='{{ink}}'>{{afterLabel}}</text></svg>"
    },
    {
      "type": "TEXT",
      "x": 78,
      "y": 760,
      "width": 520,
      "anchor": "top-left",
      "track": 5,
      "text": "{{stat}}",
      "style": {
        "fontFamily": "Anton",
        "fontSize": "108px",
        "fontWeight": "400",
        "letterSpacing": "-0.01em",
        "lineHeight": "0.9",
        "color": "#4CD4CE"
      }
    },
    {
      "type": "TEXT",
      "x": 82,
      "y": 884,
      "width": 500,
      "anchor": "top-left",
      "track": 5,
      "text": "{{caption}}",
      "style": {
        "fontFamily": "Space Grotesk",
        "fontSize": "22px",
        "fontWeight": "500",
        "lineHeight": "1.35",
        "color": "#8F9AA0"
      }
    },
    {
      "type": "SVG",
      "x": 616,
      "y": 792,
      "width": 384,
      "height": 76,
      "anchor": "top-left",
      "track": 6,
      "svg": "<svg width='384' height='76' viewBox='0 0 384 76' xmlns='http://www.w3.org/2000/svg'><rect x='0' y='0' width='384' height='76' rx='38' fill='{{accent}}'/><text x='168' y='48' font-family='Space Grotesk, Arial' font-size='25' font-weight='700' fill='{{ink}}' text-anchor='middle' letter-spacing='0.4'>{{cta}}</text><circle cx='330' cy='38' r='15' fill='{{ink}}' fill-opacity='0.16'/><path d='M324 38 L336 38 M331 33 L336 38 L331 43' fill='none' stroke='{{ink}}' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/></svg>"
    }
  ]
}

More Ad creative / agency templates

View all ↗

Ready to ship video at scale?

Start free — your first render is only a JSON payload away.