RenderPix API

Convert HTML/CSS to pixel-perfect images with a single API call. Base URL: https://renderpix.dev

Authentication

All requests require an API key via X-API-Key header:

curl -H "X-API-Key: rpx_your_key" https://renderpix.dev/v1/render

Get your key from the Dashboard. Also accepted as ?api_key=rpx_... query param.

Quick start

curl -X POST https://renderpix.dev/v1/render \
  -H "X-API-Key: rpx_your_key" \
  -H "Content-Type: application/json" \
  -d '{"html":"<h1 style=\"color:red\">Hello</h1>"}' \
  -o hello.png

POST/v1/render

Convert HTML/CSS to an image.

Request body (JSON)

ParameterTypeDefaultDescription
html requiredstringHTML/CSS to render
widthinteger1280Viewport width (1-3840)
heightinteger720Viewport height (1-2160)
formatstringpngpng, jpeg, or webp
qualityinteger90Quality for JPEG/WebP (1-100)
scalenumber1Device scale for Retina (0.5-3)
selectorstringCSS selector to capture element
fullPagebooleanfalseCapture full scrollable page

Response headers

HeaderDescription
X-Render-TimeDuration in ms
X-Usage-RemainingRemaining renders
X-Usage-LimitMonthly limit

GET/v1/screenshot

Screenshot any public URL.

curl "https://renderpix.dev/v1/screenshot?url=https://stripe.com&api_key=rpx_your_key" -o stripe.png

Query parameters

ParameterTypeDefaultDescription
url requiredstringURL to capture
widthinteger1280Viewport width
heightinteger720Viewport height
formatstringpngpng, jpeg, or webp
qualityinteger90Quality (JPEG/WebP)
fullPagebooleanfalseFull page capture

Error codes

StatusErrorDescription
401missing_api_keyNo API key provided
401invalid_api_keyKey not found
429usage_limit_exceededMonthly limit reached
429rate_limitToo many requests
500render_failedRendering error

Rate limits

All plans: 100 requests/minute per API key.