Referral Card
Invite card with a giant reward, dashed monospace code chip and share cue — swap reward, invite code, explainer and green accent.
- Type
- Image
- Format
- Instagram Story · 9:16
- Orientation
- Portrait
- Render credits
- 1
Template ID
img-app-referralLibrary identifier. Saved API templates have a separate ID starting with tpl_.
Free template · opens in the editor, no account required.
Customize Referral Card
Referral Card is a ready-to-render App personalization image design formatted for Instagram Story · 9:16 and support for variables. Open it in the editor to replace its copy and media, then render variations through the Zvid API.
12 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.
eyebrowTextrewardValueTextrewardLineTextexplainerTextcodeLabelTextcodeTextshareCueTextbrandTextaccentColoraccent2ColortextPrimaryColortextMutedColorThe exact JSON payload
This is the full render config — POST it to the API, or open it in the editor to tweak.
{
"type": "image",
"name": "img-app-referral",
"resolution": "instagram-story",
"outputFormat": "png",
"backgroundColor": "#04120E",
"variables": {
"eyebrow": "INVITE & EARN",
"rewardValue": "$20",
"rewardLine": "for you and a friend",
"explainer": "Give friends $20 off their first Pro month. When they join, you get $20 too.",
"codeLabel": "YOUR INVITE CODE",
"code": "MAYA-2026",
"shareCue": "Share your link",
"brand": "zvid",
"accent": "#34E4A8",
"accent2": "#4CD4CE",
"textPrimary": "#E6FBF3",
"textMuted": "#7FB3A4"
},
"visuals": [
{
"type": "SVG",
"width": 1080,
"height": 1920,
"position": "center-center",
"track": 0,
"svg": "<svg width='1080' height='1920' viewBox='0 0 1080 1920' xmlns='http://www.w3.org/2000/svg'><defs><linearGradient id='bg' x1='0' y1='0' x2='0.6' y2='1'><stop offset='0' stop-color='#08281F'/><stop offset='0.55' stop-color='#051510'/><stop offset='1' stop-color='#030C09'/></linearGradient><radialGradient id='g1' cx='0.82' cy='0.16' r='0.7'><stop offset='0' stop-color='{{accent}}' stop-opacity='0.4'/><stop offset='1' stop-color='{{accent}}' stop-opacity='0'/></radialGradient><radialGradient id='g2' cx='0.12' cy='0.88' r='0.7'><stop offset='0' stop-color='{{accent2}}' stop-opacity='0.24'/><stop offset='1' stop-color='{{accent2}}' stop-opacity='0'/></radialGradient></defs><rect width='1080' height='1920' fill='url(#bg)'/><rect width='1080' height='1920' fill='url(#g1)'/><rect width='1080' height='1920' fill='url(#g2)'/><rect x='40' y='40' width='1000' height='1840' rx='46' fill='none' stroke='#FFFFFF' stroke-opacity='0.08' stroke-width='1.5'/></svg>"
},
{
"type": "SVG",
"x": 90,
"y": 180,
"width": 150,
"height": 150,
"anchor": "top-left",
"track": 4,
"svg": "<svg width='150' height='150' viewBox='0 0 150 150' xmlns='http://www.w3.org/2000/svg'><defs><linearGradient id='gift' x1='0' y1='0' x2='1' y2='1'><stop offset='0' stop-color='{{accent}}'/><stop offset='1' stop-color='{{accent2}}'/></linearGradient></defs><rect x='30' y='64' width='90' height='72' rx='10' fill='url(#gift)'/><rect x='24' y='46' width='102' height='30' rx='8' fill='{{accent2}}'/><rect x='68' y='46' width='14' height='90' fill='#04120E' fill-opacity='0.35'/><path d='M75 46 C60 46 52 28 62 22 C72 16 75 40 75 46 Z' fill='{{accent}}'/><path d='M75 46 C90 46 98 28 88 22 C78 16 75 40 75 46 Z' fill='{{accent}}'/></svg>"
},
{
"type": "TEXT",
"x": 268,
"y": 214,
"width": 720,
"anchor": "top-left",
"track": 5,
"text": "{{eyebrow}}",
"style": {
"fontFamily": "Space Grotesk",
"fontSize": "34px",
"fontWeight": "600",
"letterSpacing": "0.4em",
"color": "{{accent}}"
}
},
{
"type": "TEXT",
"x": 268,
"y": 262,
"width": 720,
"anchor": "top-left",
"track": 5,
"text": "Refer a friend",
"style": {
"fontFamily": "Space Grotesk",
"fontSize": "30px",
"fontWeight": "500",
"color": "{{textMuted}}"
}
},
{
"type": "TEXT",
"x": 84,
"y": 470,
"width": 920,
"anchor": "top-left",
"track": 5,
"style": {
"fontFamily": "Space Grotesk"
},
"html": "<div style='font-size:300px; font-weight:800; letter-spacing:-0.04em; line-height:0.9; color:{{accent}};'>{{rewardValue}}</div><div style='margin-top:6px; font-size:64px; font-weight:700; letter-spacing:-0.02em; color:#E6FBF3;'>{{rewardLine}}</div>"
},
{
"type": "TEXT",
"x": 90,
"y": 1052,
"width": 800,
"anchor": "top-left",
"track": 5,
"text": "{{explainer}}",
"style": {
"fontFamily": "Space Grotesk",
"fontSize": "36px",
"fontWeight": "400",
"lineHeight": "1.5",
"color": "{{textMuted}}"
}
},
{
"type": "TEXT",
"x": 90,
"y": 1330,
"width": 800,
"anchor": "top-left",
"track": 5,
"text": "{{codeLabel}}",
"style": {
"fontFamily": "Space Grotesk",
"fontSize": "24px",
"fontWeight": "600",
"letterSpacing": "0.3em",
"color": "{{accent2}}"
}
},
{
"type": "SVG",
"x": 88,
"y": 1382,
"width": 904,
"height": 132,
"anchor": "top-left",
"track": 5,
"svg": "<svg width='904' height='132' viewBox='0 0 904 132' xmlns='http://www.w3.org/2000/svg'><rect x='2' y='2' width='900' height='128' rx='26' fill='{{accent}}' fill-opacity='0.08' stroke='{{accent}}' stroke-opacity='0.55' stroke-width='2' stroke-dasharray='3 12' stroke-linecap='round'/><rect x='772' y='34' width='96' height='64' rx='16' fill='{{accent}}'/><path d='M804 54 L836 54 L836 86 M792 66 L820 66 L820 98 L792 98 Z' fill='none' stroke='#04120E' stroke-width='4' stroke-linejoin='round'/></svg>"
},
{
"type": "TEXT",
"x": 130,
"y": 1414,
"width": 620,
"anchor": "top-left",
"track": 6,
"text": "{{code}}",
"style": {
"fontFamily": "IBM Plex Mono",
"fontSize": "62px",
"fontWeight": "600",
"letterSpacing": "0.06em",
"color": "{{textPrimary}}"
}
},
{
"type": "SVG",
"x": 88,
"y": 1786,
"width": 500,
"height": 54,
"anchor": "top-left",
"track": 6,
"svg": "<svg width='500' height='54' viewBox='0 0 500 54' xmlns='http://www.w3.org/2000/svg'><circle cx='16' cy='27' r='8' fill='{{accent}}'/><text x='38' y='35' font-family='Space Grotesk, Arial' font-size='24' font-weight='700' fill='#FFFFFF'>{{brand}}</text><text x='150' y='35' font-family='Space Grotesk, Arial' font-size='22' font-weight='500' fill='#7FB3A4'>{{shareCue}}</text></svg>"
}
]
}More App personalization templates
View all ↗Ready to ship video at scale?
Start free — your first render is only a JSON payload away.
