
1200 × 628 px
Social media images
Product sale banner (image)
A 1200 × 628 sale banner for ads and newsletters: product photo on a colour panel, a discount starburst, product name that shrinks to fit, old and new price, a stock progress bar, a call-to-action button and the discount code.
Opens Dynamic Document API with this template preloaded in a free workspace, in the canvas editor.
Features
- Progress bar
- Text that fits its box
How image templates are built is described in the canvas editor guide.
Dynamic properties
10 properties a render can set, sent flat in data. A property you leave out keeps its designed value.
| Key | Type | Example |
|---|---|---|
| eyebrow.textLabel | string | "AUTUMN SALE · 3 DAYS ONLY" |
| product_name.textProduct name · up to 60 characters, longer text is shortened | string | "Aurora Wireless Headphones" |
| old_price.textOld price | string | "€149" |
| price.textSale price | string | "€104" |
| badge_text.textDiscount · up to 6 characters | string | "−30%" |
| stock_label.textStock note | string | "72 % claimed" |
| stock.valueClaimed (%) | number | 72 |
| cta_text.textButton text · up to 20 characters | string | "Shop now →" |
| code.textCode and deadline | string | "Code AUTUMN30 · ends 5 Oct" |
| product.srcProduct image · https:// or data: URL, transparent PNG works best | string | designed value |
Render it with the API
After adding the template to your workspace, render it by ID and pass your data.
curl -X POST https://api-eu.dynamicdocumentapi.com/v1/renders \
-H "Authorization: Bearer $DYNAMIC_DOCUMENT_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"input": {
"type": "template",
"template_id": "tpl_01J9ZK3M7Q8V5W2X4Y6Z8A0B1C"
},
"data": {
"eyebrow.text": "AUTUMN SALE · 3 DAYS ONLY",
"product_name.text": "Aurora Wireless Headphones",
"old_price.text": "€149",
"price.text": "€104",
"badge_text.text": "−30%",
"stock_label.text": "72 % claimed",
"stock.value": 72,
"cta_text.text": "Shop now →",
"code.text": "Code AUTUMN30 · ends 5 Oct"
},
"output": {
"format": "png",
"filename": "product-sale-banner-image.png"
}
}'const response = await fetch("https://api-eu.dynamicdocumentapi.com/v1/renders", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.DYNAMIC_DOCUMENT_API_KEY}`,
"Content-Type": "application/json",
"Idempotency-Key": crypto.randomUUID(),
},
body: JSON.stringify({
"input": {
"type": "template",
"template_id": "tpl_01J9ZK3M7Q8V5W2X4Y6Z8A0B1C"
},
"data": {
"eyebrow.text": "AUTUMN SALE · 3 DAYS ONLY",
"product_name.text": "Aurora Wireless Headphones",
"old_price.text": "€149",
"price.text": "€104",
"badge_text.text": "−30%",
"stock_label.text": "72 % claimed",
"stock.value": 72,
"cta_text.text": "Shop now →",
"code.text": "Code AUTUMN30 · ends 5 Oct"
},
"output": {
"format": "png",
"filename": "product-sale-banner-image.png"
}
}),
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const result = await response.json();
console.log(result);import os
import uuid
import requests
response = requests.post(
"https://api-eu.dynamicdocumentapi.com/v1/renders",
headers={
"Authorization": f"Bearer {os.environ['DYNAMIC_DOCUMENT_API_KEY']}",
"Idempotency-Key": str(uuid.uuid4()),
},
json={
"input": {
"type": "template",
"template_id": "tpl_01J9ZK3M7Q8V5W2X4Y6Z8A0B1C",
},
"data": {
"eyebrow.text": "AUTUMN SALE · 3 DAYS ONLY",
"product_name.text": "Aurora Wireless Headphones",
"old_price.text": "€149",
"price.text": "€104",
"badge_text.text": "−30%",
"stock_label.text": "72 % claimed",
"stock.value": 72,
"cta_text.text": "Shop now →",
"code.text": "Code AUTUMN30 · ends 5 Oct",
},
"output": {
"format": "png",
"filename": "product-sale-banner-image.png",
},
},
timeout=90,
)
response.raise_for_status()
print(response.json())More social media images templates

Customer testimonial (image)
1080×1080A square 1080 × 1080 quote card for Instagram and LinkedIn with a star rating, a customer quote that shrinks to fit, a round photo, name, role and your website — fill it from a review feed to post every new testimonial.

Event announcement (image)
1200×630A 1200 × 630 announcement image for webinars and meetups, sized for link previews and LinkedIn: a label, a title that shrinks to fit, date and time, speaker photo and role, and a QR code to the registration page.