Quick Start
Generate your first image in less than 1 minute
1. Choose a template
Select one of the 5 available templates based on your use case.
2. Prepare your request
Build a JSON object with the template parameters.
3. Make the POST request
Send the request to our endpoint and receive your PNG image.
Base endpoint:
POST https://assets.qbacode.com/api/v1/generate-assetMethod:
POSTResponse:
image/pngComplete example
const response = await fetch("https://assets.qbacode.com/api/v1/generate-asset", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
template: "basic",
title: "John Doe",
email: "[email protected]",
tel: "+1234567890",
imageUrl: "https://example.com/photo.jpg",
primaryColor: "#8b5cff",
textColor: "#000000"
})
});
const blob = await response.blob();
const imageUrl = URL.createObjectURL(blob);