Render API

Free during beta: every feature and plan is free while we test. No card needed.

API docs

Base URL: https://render.odelabs.dev. Authenticate with Authorization: Bearer sk_.... Create keys on your account page. Every successful render counts once against your monthly quota. These do not count: chart cache hits, failed renders (refunded) and validation errors.

Contents: Charts · PDF · Screenshots · Async jobs and webhooks · Errors and limits · Zapier / Make

Charts: GET|POST /v1/chart

Takes a Chart.js config (strict JSON or a JS object literal, like QuickChart) and returns PNG (default), WebP or SVG. /chart is an alias that accepts QuickChart's query parameters.

ParamDefault
c / chartChart.js config (URL-encode it in GET requests)
w / width, h / height500 × 300CSS pixels, 50–3000 each
f / formatpngpng, webp, svg
bkg / backgroundColorwhiteany CSS colour or transparent
devicePixelRatio10.5–4 (use 2 for retina emails)

Supported: types bar, line, area (or line with fill), pie, doughnut, scatter, and mixed bar + line via a type on the dataset. Also: labels; per dataset label, data (numbers, {x,y} or [x,y]), backgroundColor and borderColor (one value or an array), borderWidth, fill, tension, pointRadius, hidden; and options plugins.title, plugins.subtitle, plugins.legend (display, position), scales.x|y (title, min, max, beginAtZero, stacked, display, grid.display) and cutout. Chart.js v2 keys (options.title, scales.yAxes[0].ticks) are read too. Not supported: JavaScript functions or callbacks, plugins, and radar, bubble, polar area and horizontal bar charts. Limits: 64 kB of config, 10,000 points, 30 datasets.

curl -H "Authorization: Bearer $KEY" -G https://render.odelabs.dev/v1/chart \
  --data-urlencode "c={type:'line',data:{labels:['Mon','Tue','Wed'],datasets:[{label:'Signups',data:[3,7,4],fill:true}]}}" \
  -d w=600 -d h=300 -d devicePixelRatio=2 -o chart.png

curl -X POST https://render.odelabs.dev/v1/chart -H "Authorization: Bearer $KEY" -H 'content-type: application/json' \
  -d '{"chart": {"type":"pie","data":{"labels":["A","B"],"datasets":[{"data":[60,40]}]}}, "format":"svg"}' -o chart.svg

Signed URLs (emails, Slack, <img> tags)

POST /v1/chart/url takes the same body (plus an optional expires_in in seconds) and returns a URL that needs no header. It is billed to the key that signed it and stops working when that key is revoked. Changing any parameter breaks the signature.

curl -X POST https://render.odelabs.dev/v1/chart/url -H "Authorization: Bearer $KEY" -H 'content-type: application/json' \
  -d '{"chart": {"type":"bar","data":{"labels":["Q1","Q2"],"datasets":[{"data":[50,60]}]}}, "width": 600}'
# {"url":"https://render.odelabs.dev/v1/chart?c=...&kid=...&sig=..."}

PDF: POST /v1/pdf

FieldDefault
html or urlexactly one; HTML up to 5 MB
formatA4A3, A4, A5, Letter, Legal, Tabloid; or width + height like "210mm"
margin0.4in"10mm", or {"top":"1cm","bottom":"2cm",...} (mm, cm, in, px, pt)
landscapefalse
header_template, footer_templateChromium templates: pageNumber, totalPages, date, title, url classes; set a font-size, the default is tiny
print_backgroundtrue
scale, page_ranges, prefer_css_page_size, mediamedia: "screen" uses screen CSS
wait_forCSS selector to wait for (up to 10 s)
wait_ms0extra wait after load, up to 10,000
async, webhook_urlfalsesee async jobs (Starter and up)
curl -X POST https://render.odelabs.dev/v1/pdf -H "Authorization: Bearer $KEY" -H 'content-type: application/json' -d '{
  "html": "<h1>Invoice #42</h1><p>Total: $90</p>",
  "format": "A4", "margin": "15mm",
  "footer_template": "<div style=\"font-size:9px;width:100%;text-align:center\"><span class=\"pageNumber\"></span> / <span class=\"totalPages\"></span></div>"
}' -o invoice.pdf

curl -X POST https://render.odelabs.dev/v1/pdf -H "Authorization: Bearer $KEY" -H 'content-type: application/json' \
  -d '{"url": "https://example.com", "landscape": true}' -o page.pdf

Screenshots: GET|POST /v1/screenshot

ParamDefault
url or htmlexactly one
width, height1280 × 800viewport
full_pagefalsewhole page, up to 16,384 px tall
device_scale_factor10.5–3
format, qualitypngpng, jpeg, webp; quality 1–100 for jpeg/webp
delay_ms, wait_for0wait up to 10 s
block_ads, block_cookie_bannersfalseblock ad hosts and hide common ad and consent-banner selectors (nothing is clicked)
hide_selectorsextra CSS selectors to hide, comma-separated
dark_modefalseemulates prefers-color-scheme: dark
curl -H "Authorization: Bearer $KEY" \
  "https://render.odelabs.dev/v1/screenshot?url=https://example.com&width=1440&height=900&device_scale_factor=2&format=webp&block_cookie_banners=true" \
  -o shot.webp

Async jobs and webhooks

Add "async": true (and optionally "webhook_url") to POST /v1/pdf. You get 202 {"id", "status", "status_url"}. Poll GET /v1/jobs/{id}, or wait for the webhook. The finished PDF is at a signed download_url for 24 hours.

POST your webhook_url
x-render-timestamp: 1763712000
x-render-signature: v1=<hex HMAC-SHA256(webhook_secret, timestamp + "." + raw_body)>
{"id":"…","status":"done","download_url":"https://render.odelabs.dev/v1/files/…?exp=…&sig=…","bytes":48213,"error":null,"expires_at":…}

Your webhook secret (whsec_…) is on the dashboard and at GET /v1/webhook-secret. Reject timestamps more than 5 minutes old. Verification in Node:

const crypto = require('crypto');
const expected = 'v1=' + crypto.createHmac('sha256', process.env.WEBHOOK_SECRET)
  .update(req.headers['x-render-timestamp'] + '.' + rawBody).digest('hex');
const ok = crypto.timingSafeEqual(Buffer.from(expected), Buffer.from(req.headers['x-render-signature']));

Failed deliveries are retried 3 times (after 2 s, 10 s and 60 s). Webhook URLs must be public: the same private-address rules apply as for renders.

Errors and limits

StatuserrorMeaning
400bad_requestinvalid config or options; the message says what to fix
401 / 403unauthorized / forbiddenmissing or wrong key, bad or expired signature
402plan_limit / feature_requiredmonthly quota used up, or a feature your plan lacks; includes upgrade_url
413too_heavythe page downloaded more than 25 MB
422blockedthe URL, or a request the page made, points at a private, reserved or denylisted address (policy)
429rate_limitedtoo many requests per minute for this key; see Retry-After
502render_failedthe page could not be loaded or captured
503busy / unavailableall renderers are busy (retry after Retry-After)
504timeoutthe render took longer than 30 s

Response headers: x-renders-used (this month), x-render-ms, and for charts x-cache: HIT|MISS.

Zapier, Make and other no-code tools

  • Charts in emails: mint a signed URL once (or in a step), then use it as the image URL in Gmail, Mailchimp or Slack steps. No headers are needed. A signed URL is fixed, so for charts that change, build the GET URL with your API key in a "Webhooks by Zapier" or Make "HTTP" step instead.
  • PDFs: in Zapier, use "Webhooks by Zapier → Custom Request" (POST, JSON body, header Authorization: Bearer sk_…). In Make, use "HTTP → Make a request" with "Parse response" off, and the next step gets the file. For long documents, use "async": true with a Zapier "Catch Hook" URL as the webhook_url, then download download_url.
  • Screenshots: a single GET with the key in the header. The response is the image file.

There is no native Zapier or Make app yet. The generic HTTP modules work today.