Create Render
Generate one render from a Pixmato template and parameter modifications.
POST /v1/renders
Generate one render from a template.
Body
{
"template": "YOUR_TEMPLATE_ID",
"modifications": {
"headline": "Spring drop",
"photo": "https://cdn.example.com/product.png",
"accent.color": "#d7f36b"
},
"output": {
"format": "png",
"scale": 2
}
}
Supported output
| Field | Values | Notes |
|---|---|---|
format |
png, jpeg, webp, pdf |
Defaults to png. PDF uses the template canvas size. |
scale |
0.5 to 4 |
Controls PNG/JPEG raster density. Defaults to 2. |
Supported modifications
Pixmato accepts object notation for template parameter values. Plain keys update the parameter’s configured target, such as text content or image source.
{
"headline": "Spring drop",
"photo": "https://cdn.example.com/product.png"
}
Use dot notation when you want to update a specific property of an exposed parameter.
| Dot property | Purpose |
|---|---|
.text or .content |
Replace text content. |
.src or .imageUrl |
Replace an image source. |
.qr or .value |
Replace a QR code value on QR parameters. |
.color |
Set text or element color. |
.background |
Set background color. |
.foregroundColor |
Set QR code foreground color. |
.errorCorrection |
Set QR recovery level. |
.margin |
Set QR quiet-zone padding. |
.fill |
Set fill color. |
.stroke |
Set stroke color. |
.opacity |
Set element opacity. |
.fontSize |
Change font size. |
.fontFamily |
Change font family. |
.letterSpacing |
Change text tracking. |
.direction |
Reading direction of a text field: ltr or rtl. |
.textAlign / .text_align |
left, center, right, or justify. |
.textFitMode |
fixed, shrink-to-fit, truncate, or auto-height. |
.minFontSize |
Minimum font size for shrink text. |
.maxLines |
Line count for clamped text. |
.objectFit |
Change image fit behavior. |
.cropX / .cropY |
Reposition cropped image focus from 0 to 1. |
.imageScale |
Zoom image content inside its frame. |
.borderRadius / .border_radius |
Round image corners, from 0 to 1000 pixels. |
.visible |
Show or hide a layer. |
Text in other languages
Send text in the language it is written in. Hindi, Arabic, Hebrew, Chinese, Japanese, Korean and Thai text is shown in a matching font without any extra fields. For Arabic and Hebrew, add .direction:
{
"headline": "خصم 25%",
"headline.direction": "rtl"
}
A left-aligned field moves to the right when it is set to rtl, unless the request also sends .text_align. See Languages and right-to-left text.
QR code example
QR layers are ordinary template parameters. A ticket template might expose attendee_name, event_meta, and check_in_url.
{
"template": "YOUR_TEMPLATE_ID",
"modifications": {
"attendee_name": "Nina Hart",
"event_meta": "November 21, 2026 · Studio 4 · Seat C08",
"check_in_url": "https://example.com/checkin/design-lab/nina-hart"
},
"output": {
"format": "png",
"scale": 2
}
}
Response
{
"id": "rnd_01JY7R8Q7S2K3B4A5C6D7E8F9G",
"status": "completed",
"output_url": "https://storage.pixmato.com/workspaces/ws_01JY7R8Q7S2K3B4A5C6D7E8F9G/renders/rnd_01JY7R8Q7S2K3B4A5C6D7E8F9G.png",
"duration_ms": 842,
"template": "YOUR_TEMPLATE_ID"
}
Sync, async and timeouts
The default request waits for the completed render and returns 200 with its output URL. Add Prefer: respond-async to receive 202 immediately with a job ID and poll_url instead. Both modes use the same durable queue and worker.
The API’s synchronous wait timeout is configured separately from renderer readiness timeouts. Its default is 30 seconds (RENDER_SYNC_WAIT_TIMEOUT_MS). A render that outlasts it returns 202 with a job ID and poll_url, the same body as an asynchronous request. The job keeps running; follow poll_url rather than submitting a duplicate render.