Summering
Colorful summer template for seasonal content.
Dimensions: 1200x630
Template ID: summering
Properties
| Property | Type | Required | Max Length | Validation |
|---|---|---|---|---|
titleMain title | string | Yes | 50 | maxLength(50) |
subtitleSubtitle | string | Yes | 80 | maxLength(80) |
imageUrlImage URL | string (URL) | Yes | - | url (HTTPS only) |
primaryColorPrimary color | string (hex) | Yes | - | color (hex) |
Example
{
"template": "summering",
"title": "Summer Vibes",
"subtitle": "Enjoy your summer holidays",
"imageUrl": "https://example.com/summer.jpg",
"primaryColor": "#ff6b35"
}Code examples
const response = await fetch("https://assets.qbacode.com/api/v1/generate-asset", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
"template": "summering",
"title": "Summer Vibes",
"subtitle": "Enjoy your summer holidays",
"imageUrl": "https://example.com/summer.jpg",
"primaryColor": "#ff6b35"
})
});
if (response.ok) {
const blob = await response.blob();
const imageUrl = URL.createObjectURL(blob);
document.getElementById("preview").src = imageUrl;
} else {
const error = await response.json();
console.error("Error:", error);
}