Skip to content
pixmato
Menu

Generate images from your own code.

Send a template ID and the values that change. The API returns a finished image or PDF that your application can store, publish, or send.

Example request bodyPOST /v1/renders
{
  "template": "YOUR_TEMPLATE_ID",
  "modifications": {
    "headline": "The weekend starts here",
    "discount": "30% off"
  },
  "output": {
    "format": "png",
    "scale": 1
  }
}

Use your saved template ID and the parameter names exposed in its API tab. Send the API key as an Authorization bearer header.

Synchronous or asynchronous

By default a request waits for the finished file. Add the header Prefer: respond-async to get a job ID straight away and check for the result later.

One image per request

Change the parameter values for each image you need. Each request has its own job ID, status, and output.

Render history

Every request is recorded with its status, result, and any error, so you can see what was sent and what came back.

PNG, JPEG, WebP, or PDF

Choose the format and scale in each request. The response includes a URL for the finished file.

Send us a message