Summering

Colorful summer template for seasonal content.

Dimensions: 1200x630
Template ID: summering

Properties

PropertyTypeRequiredMax LengthValidation
title
Main title
stringYes50maxLength(50)
subtitle
Subtitle
stringYes80maxLength(80)
imageUrl
Image URL
string (URL)Yes-url (HTTPS only)
primaryColor
Primary 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);
}