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-asset
Method: POST
Response: image/png

Complete 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: "How to Build Modern Web Apps",
    description: "A comprehensive guide to building fast and scalable applications.",
    siteName: "blog.example.com",
    imageUrl: "https://example.com/image.jpg",
    primaryColor: "#0F172A",
    accentColor: "#06B6D4"
  })
});

const blob = await response.blob();
const imageUrl = URL.createObjectURL(blob);