PRODUCT / GENERATION & CONVERSION

Website screenshot API

Capture HTML or a public URL as png, jpeg, or webp with POST /v1/images. Same Chromium engine as PDF; use /v1/pdf/raster for existing PDF pages.

Read the implementation guide
DOCUMENT / 001PDF · A4
a.Acme StudioDesign with intention.

Invoice

INV—2026—042
September 07, 2026
Northstar Labs

120 Market Street
San Francisco, CA 94103

Due September 21, 2026
USD · Bank transfer

DESCRIPTIONQTYAMOUNT
Brand identity system1$2,400.00
Website design1$4,800.00
Development handoff1$1,200.00
Subtotal$8,400.00
Tax (0%)$0.00
Total due$8,400.00
Thank you for building with us.01 / 01
templateData{ "total": 8400 }
invoice.pdfSample output · ready to inspect
HTML + DATAPRODUCTION PDF

Use POST /v1/images when you need a png, jpeg, or webp screenshot of HTML or a public URL — not a PDF. Same Chromium engine as POST /v1/pdf. To raster existing PDF pages, use POST /v1/pdf/raster. Exactly one of html or url. type defaults to png. Optional viewport, clip, fullPage, quality, and waitUntil.

Output

png (default), jpeg, or webp. Filename extension is validated against output type.

Controls

Set fullPage, clip box, viewport, deviceScaleFactor, quality, waitUntil, and timeout.

curl

Capture a full page PNG from a URL.

POST /v1/images
curl https://api.relaypdf.com/v1/images \
  -H "Authorization: Bearer pdf_live_..." \
  -H "Content-Type: application/json" \
  -d '{"url":"https://example.com","options":{"fullPage":true}}' \
  --output page.png