IMAGE
banner
1200×400px
Event Banner
Wide event banner with event name, date, location, and optional logo.
Use Cases
- Conference or summit promotion
- Webinar announcement banners
- Community event promotion
- Email newsletter event headers
Tags
event
conference
webinar
banner
announcement
date
1200x400
Template Variables
| Variable | Type | Default | Description |
|---|---|---|---|
| event_name | string | Tech Summit 2026 | Event name |
| date | string | 15–16 June 2026 | Event date(s) |
| location | string | City Convention Centre | Event location |
| logo_url | url | Event or sponsor logo URL | |
| bg_color | color | #1e3a5f | Banner background colour |
| accent_color | color | #f59e0b | Accent colour |
| text_color | color | #ffffff | Text colour |
API Example
POST to
https://image.toolkitapi.io/v1/image/from-template
with your template URL and variable values.
curl -X POST "https://image.toolkitapi.io/v1/image/from-template" \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"template_url": "https://toolkitapi.io/static/templates/image/banner-event.html", "variables": {"event_name": "Tech Summit 2026", "date": "15\u201316 June 2026", "location": "City Convention Centre", "logo_url": "", "bg_color": "#1e3a5f", "accent_color": "#f59e0b", "text_color": "#ffffff"}, "width": 1200, "height": 400, "format": "png"}'
import httpx, base64
resp = httpx.post(
"https://image.toolkitapi.io/v1/image/from-template",
headers={"X-API-Key": "YOUR_API_KEY"},
json={
"template_url": "https://toolkitapi.io/static/templates/image/banner-event.html",
"variables": {
"event_name": "Tech Summit 2026",
"date": "15\u201316 June 2026",
"location": "City Convention Centre",
"logo_url": "",
"bg_color": "#1e3a5f",
"accent_color": "#f59e0b",
"text_color": "#ffffff"
},
"width": 1200,
"height": 400,
"format": "png"
},
)
image_bytes = base64.b64decode(resp.json()["image"])
with open("result.png", "wb") as f:
f.write(image_bytes)
const response = await fetch("https://image.toolkitapi.io/v1/image/from-template", {
method: "POST",
headers: {
"X-API-Key": "YOUR_API_KEY",
"Content-Type": "application/json",
},
body: JSON.stringify({
"template_url": "https://toolkitapi.io/static/templates/image/banner-event.html",
"variables": {
"event_name": "Tech Summit 2026",
"date": "15\u201316 June 2026",
"location": "City Convention Centre",
"logo_url": "",
"bg_color": "#1e3a5f",
"accent_color": "#f59e0b",
"text_color": "#ffffff"
},
"width": 1200,
"height": 400,
"format": "png"
}),
});
const data = await response.json();
// data.image is a base64-encoded PNG
$body = @{
template_url = "https://toolkitapi.io/static/templates/image/banner-event.html"
variables = {
"event_name": "Tech Summit 2026",
"date": "15\u201316 June 2026",
"location": "City Convention Centre",
"logo_url": "",
"bg_color": "#1e3a5f",
"accent_color": "#f59e0b",
"text_color": "#ffffff"
}
width = 1200
height = 400
format = "png"
} | ConvertTo-Json -Depth 5
Invoke-RestMethod -Method POST `
-Uri "https://image.toolkitapi.io/v1/image/from-template" `
-Headers @{"X-API-Key" = "YOUR_API_KEY"} `
-ContentType "application/json" `
-Body $body