Rendex: Rendering API for Images, PDFs & Content Extraction
v1.8.2Render HTML, Markdown, or URLs to images, PDF, or branded artifacts; extract and watch pages.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
rendex_screenshot Capture Screenshot or PDF
Use this when the user asks to screenshot, capture, or take a picture of a webpage/URL, or to render raw HTML or Markdown to an image or PDF. Do NOT use to get a reusable hosted image URL (use rendex_render_link) or to make a branded multi-format document (use render_artifact). Captures a screenshot or PDF of any webpage, raw HTML, or Markdown. Supports full-page capture, dark mode, ad blocking, custom viewports, CSS/JS injection, cookie/header injection, PDF output, HTML and Markdown rendering, and progressive fallback for heavy sites. Returns partial renders on timeout by default (bestAttemp…
| Parameter | Type | Description |
|---|---|---|
bestAttempt | boolean | If true (default), capture whatever is rendered on timeout instead of failing. Set to false to get a hard error on timeout. |
blockAds | boolean | Block ads and trackers before capture |
blockCookieBanners | boolean | Hide common cookie/consent walls (GDPR/CCPA banners) before capture. A curated selector list, lighter than custom hideSelectors. |
blockResourceTypes | array | Block specific resource types to speed up capture. E.g. ['font', 'image'] for text-only screenshots. |
cookies | array | Cookies to set before capture. Useful for authenticated pages. Max 50 cookies. |
css | string | Custom CSS to inject into the page before capture. Hide cookie banners, add watermarks, override styles. Max 50KB. |
darkMode | boolean | Emulate dark color scheme (prefers-color-scheme: dark) |
data | object | Key-value data object for Mustache templating. When provided, the 'html' or 'markdown' string is rendered as a logic-less Mustache template before capture — {{var}} inserts HTML-escaped, {{{var}}} i… |
delay | integer | Milliseconds to wait after page load before capture (useful for JS-rendered content) |
device | string | Device preset that sets viewport, scale factor, and user agent in one shot. E.g. 'iphone_15' for a mobile screenshot. Overrides width/height/deviceScaleFactor/userAgent. |
deviceScaleFactor | number | Device pixel ratio (1 = standard, 2 = retina). Defaults to 2× Retina. |
format | string | Output format — png (lossless), jpeg (smaller), webp (smallest), or pdf (document). Use pdf for invoices, reports, archival. |
fullPage | boolean | Capture the full scrollable page instead of just the viewport |
geo | string | ISO 3166-1 alpha-2 country code for geo-targeted capture (e.g., 'US', 'DE', 'JP'). Renders the page as seen from that country. Pro/Enterprise only. Note: CSS/JS injection, cookies, element capture, da… |
geoCity | string | City for more precise geo-targeting (e.g., 'Berlin', 'New York'). Requires 'geo'. |
geoState | string | State or region for more precise geo-targeting (e.g., 'California'). Requires 'geo'. |
headers | object | Custom HTTP headers to send with the page request. Cannot override Host, Connection, Content-Length, or Transfer-Encoding. |
height | integer | Viewport height in pixels (240-2160) |
hideSelectors | array | CSS selectors to hide (display:none) before capture. E.g. ['.modal', '#newsletter-popup'] to remove overlays. Max 50 selectors. |
html | string | Raw HTML to render and capture. Mutually exclusive with 'url' and 'markdown'. Great for invoices, social cards, email templates, OG images. |
js | string | Custom JavaScript to execute in the page before capture. Runs in the browser sandbox. Max 50KB. |
markdown | string | Markdown to render to an image or PDF. Mutually exclusive with 'url' and 'html'. The server converts it to HTML before rendering. Great for reports, release notes, README snapshots, documentation card… |
pdfFormat | string | PDF page size. Only used when format='pdf'. Default: A4 |
pdfLandscape | boolean | PDF landscape orientation. Only used when format='pdf'. |
pdfMargin | object | PDF page margins. Only used when format='pdf'. Accepts CSS values. |
pdfPrintBackground | boolean | Print background colors/images in PDF. Default: true |
pdfScale | number | PDF scale factor (0.1-2). Default: 1 |
quality | integer | Image quality 1-100 (JPEG/WebP only, ignored for PNG/PDF) |
resizeHeight | integer | Downscale the captured image to this height in pixels (16-2160). Aspect ratio is preserved if resizeWidth is omitted. Ignored for PDF. |
resizeWidth | integer | Downscale the captured image to this width in pixels (16-3840). Aspect ratio is preserved if resizeHeight is omitted. Ignored for PDF. |
selector | string | CSS selector of a specific element to capture instead of the full page. Useful for OG images, component extraction (e.g. '#hero', '.pricing-card') |
timeout | integer | Maximum seconds to wait for page load (5-60). Cloudflare has a 60s hard cap. |
url | string | The webpage URL to capture (a schemeless host like 'example.com' is accepted). Mutually exclusive with 'html' and 'markdown'. |
userAgent | string | Override the browser user agent string. |
waitForSelector | string | CSS selector to wait for before capture. Essential for SPAs (e.g. '.main-content', '#app-loaded') |
waitUntil | string | Page readiness event. networkidle2 (default) is best for most sites. Use domcontentloaded for speed, networkidle0 for completeness. |
width | integer | Viewport width in pixels (320-3840) |
rendex_extract Extract Reader-Mode Content
Use this when the user asks to read, extract, get the text/content/article of, or summarize a webpage/URL. Do NOT use for a visual screenshot (use rendex_screenshot). Extracts clean reader-mode content from any webpage as Markdown, JSON, or HTML. Runs the same Chromium render pass as a screenshot, so it captures content after JavaScript runs — handles SPAs that fetch-only readers miss. Strips nav, ads, and boilerplate, returning the article body plus title, byline, and excerpt. Great for feeding page content to an LLM, summarization, or RAG ingestion. Costs 1 render credit per call.
| Parameter | Type | Description |
|---|---|---|
url * | string | The webpage URL to extract readable content from (a schemeless host like 'example.com' is accepted). |
blockAds | boolean | Block ads and trackers before extraction |
blockCookieBanners | boolean | Hide common cookie/consent walls (GDPR/CCPA banners) before extraction. A curated selector list, lighter than custom hideSelectors. |
device | string | Device preset that sets viewport, scale factor, and user agent in one shot. E.g. 'iphone_15' to extract the mobile version of a page. |
extractFormat | string | Output shape — markdown (default, LLM-friendly prose), json (structured fields: title/byline/excerpt/siteName/length), or html (cleaned reader-mode HTML). |
hideSelectors | array | CSS selectors to hide (display:none) before extraction. E.g. ['.modal', '#newsletter-popup'] to remove overlays. Max 50 selectors. |
timeout | integer | Maximum seconds to wait for page load (5-60). Cloudflare has a 60s hard cap. |
waitUntil | string | Page readiness event. networkidle2 (default) is best for most sites. Use domcontentloaded for speed, networkidle0 for completeness. |
rendex_render_link Mint Hosted Render URL
Use this when the user wants a reusable, HOSTED image URL — an og:image or a link to embed in an <img> tag — rather than the image bytes. Do NOT use for a one-off inline screenshot (use rendex_screenshot). Renders a URL, raw HTML, or Markdown and gives back a signed, hosted, edge-cached image URL instead of the bytes — ideal for dynamic OG images: drop the URL into <meta property="og:image"> or an <img> tag and Rendex serves a cached copy on every share. Takes the same options as rendex_screenshot, plus an optional expiresIn. Returns { url, expiresAt, format, cacheTtl } as JSON. Costs 1…
| Parameter | Type | Description |
|---|---|---|
bestAttempt | boolean | If true (default), capture whatever is rendered on timeout instead of failing. Set to false to get a hard error on timeout. |
blockAds | boolean | Block ads and trackers before capture |
blockCookieBanners | boolean | Hide common cookie/consent walls (GDPR/CCPA banners) before capture. A curated selector list, lighter than custom hideSelectors. |
blockResourceTypes | array | Block specific resource types to speed up capture. E.g. ['font', 'image'] for text-only screenshots. |
cookies | array | Cookies to set before capture. Useful for authenticated pages. Max 50 cookies. |
css | string | Custom CSS to inject into the page before capture. Hide cookie banners, add watermarks, override styles. Max 50KB. |
darkMode | boolean | Emulate dark color scheme (prefers-color-scheme: dark) |
data | object | Key-value data object for Mustache templating. When provided, the 'html' or 'markdown' string is rendered as a logic-less Mustache template before capture — {{var}} inserts HTML-escaped, {{{var}}} i… |
delay | integer | Milliseconds to wait after page load before capture (useful for JS-rendered content) |
device | string | Device preset that sets viewport, scale factor, and user agent in one shot. E.g. 'iphone_15' for a mobile screenshot. Overrides width/height/deviceScaleFactor/userAgent. |
deviceScaleFactor | number | Device pixel ratio (1 = standard, 2 = retina). Defaults to 2× Retina. |
expiresIn | integer | Seconds until the signed URL expires (60–2592000). Defaults to the server's TTL. |
format | string | Output format — png (lossless), jpeg (smaller), webp (smallest), or pdf (document). Use pdf for invoices, reports, archival. |
fullPage | boolean | Capture the full scrollable page instead of just the viewport |
geo | string | ISO 3166-1 alpha-2 country code for geo-targeted capture (e.g., 'US', 'DE', 'JP'). Renders the page as seen from that country. Pro/Enterprise only. Note: CSS/JS injection, cookies, element capture, da… |
geoCity | string | City for more precise geo-targeting (e.g., 'Berlin', 'New York'). Requires 'geo'. |
geoState | string | State or region for more precise geo-targeting (e.g., 'California'). Requires 'geo'. |
headers | object | Custom HTTP headers to send with the page request. Cannot override Host, Connection, Content-Length, or Transfer-Encoding. |
height | integer | Viewport height in pixels (240-2160) |
hideSelectors | array | CSS selectors to hide (display:none) before capture. E.g. ['.modal', '#newsletter-popup'] to remove overlays. Max 50 selectors. |
html | string | Raw HTML to render and capture. Mutually exclusive with 'url' and 'markdown'. Great for invoices, social cards, email templates, OG images. |
js | string | Custom JavaScript to execute in the page before capture. Runs in the browser sandbox. Max 50KB. |
markdown | string | Markdown to render to an image or PDF. Mutually exclusive with 'url' and 'html'. The server converts it to HTML before rendering. Great for reports, release notes, README snapshots, documentation card… |
pdfFormat | string | PDF page size. Only used when format='pdf'. Default: A4 |
pdfLandscape | boolean | PDF landscape orientation. Only used when format='pdf'. |
pdfMargin | object | PDF page margins. Only used when format='pdf'. Accepts CSS values. |
pdfPrintBackground | boolean | Print background colors/images in PDF. Default: true |
pdfScale | number | PDF scale factor (0.1-2). Default: 1 |
quality | integer | Image quality 1-100 (JPEG/WebP only, ignored for PNG/PDF) |
resizeHeight | integer | Downscale the captured image to this height in pixels (16-2160). Aspect ratio is preserved if resizeWidth is omitted. Ignored for PDF. |
resizeWidth | integer | Downscale the captured image to this width in pixels (16-3840). Aspect ratio is preserved if resizeHeight is omitted. Ignored for PDF. |
selector | string | CSS selector of a specific element to capture instead of the full page. Useful for OG images, component extraction (e.g. '#hero', '.pricing-card') |
timeout | integer | Maximum seconds to wait for page load (5-60). Cloudflare has a 60s hard cap. |
url | string | The webpage URL to capture (a schemeless host like 'example.com' is accepted). Mutually exclusive with 'html' and 'markdown'. |
userAgent | string | Override the browser user agent string. |
waitForSelector | string | CSS selector to wait for before capture. Essential for SPAs (e.g. '.main-content', '#app-loaded') |
waitUntil | string | Page readiness event. networkidle2 (default) is best for most sites. Use domcontentloaded for speed, networkidle0 for completeness. |
width | integer | Viewport width in pixels (320-3840) |
render_artifact Render Branded Artifact (PDF + PNG)
Use this when the user asks to make or create a branded report, invoice, summary, release notes, or document — or to 'turn this Markdown/HTML into a PDF and PNG' (optionally with a logo or accent color). Do NOT use to screenshot an existing URL (use rendex_screenshot). Turns Markdown or HTML into a branded, downloadable artifact — a PDF, a PNG, and a hosted share page — in one call. Apply a logo, accentColor, font, header, and footer. Returns hosted URLs { pdfUrl, pngUrl, shareUrl, expiresAt }. Each requested format costs 1 render credit.
| Parameter | Type | Description |
|---|---|---|
content * | string | The Markdown or HTML body to render (up to ~4MB). |
accentColor | string | CSS accent color for the bar, links, and headings (e.g. '#EA580C'). |
data | object | Optional Mustache data. When present, content is rendered as a logic-less Mustache template (plus the branding fields as {{logo}}/{{header}}/...) before conversion. |
expiresIn | integer | Seconds until the hosted URLs expire (3600-2592000). Default 86400 (24h). |
font | string | CSS font-family stack for the body (e.g. 'Georgia, serif'). |
footer | string | Plain-text footer line shown at the bottom. |
formats | array | Which formats to produce. Each costs 1 credit. Default both. |
header | string | Plain-text header line shown beside the logo. |
inputFormat | string | How to interpret content. 'markdown' is converted to styled HTML; 'html' is used as a body fragment. |
logo | string | Absolute http(s) URL of a logo image shown in the header. |
pageSetup | object | Optional paper/viewport setup. |
rendex_account Check Plan & Usage
Check the Rendex account: which plan it's on, how many render credits have been used vs. the monthly limit (and when it resets), the per-minute rate limit, and a one-tap link to upgrade to a higher tier. Use this whenever the user asks about their usage, remaining quota, current plan, or how to get more renders / stop hitting limits. Read-only — costs no credits.
watch_create Create Watch
Use this when the user asks to monitor, watch, or track a webpage for changes, or to be alerted/notified when a page changes. Do NOT use for a one-time capture (use rendex_screenshot). Creates a Rendex Watch — monitors a URL on a schedule and notifies when it changes (real-Chrome visual diff with a highlighted overlay, an extracted-text diff, or both). An active watch captures its baseline immediately. Returns the created watch as JSON.
| Parameter | Type | Description |
|---|---|---|
url * | string | The page to monitor (a schemeless host like 'rendex.dev/pricing' is upgraded to https). |
aiSummary | boolean | Pro+ — attach a one-sentence AI 'what changed' summary to each detected change. |
diffMode | string | How changes are detected. Default 'both' = a pixel diff (with a highlighted overlay) AND a FULL-PAGE text diff, alerting on either — catches any change, visual or text. 'visual' or 'text' narrow to… |
intervalMinutes | integer | Check frequency in minutes. Minimum is your plan's floor — Free 1440 (daily), Starter 180, Pro 30, Enterprise 5. |
name | string | Optional label for the watch. |
notifyEmail | string | Any plan — send change alerts here. Must be your OWN account email (others are rejected). Defaults to it if omitted. |
paused | boolean | Create the watch paused (no baseline capture or charge until resumed). |
renderParams | object | Render knobs applied on every check (a subset of the screenshot capture params). |
threshold | number | Visual sensitivity (0..1). Low (default 0.01) alerts on ANY change, including a small one on a long page (a changed-region test, not a whole-page pixel ratio). 0.06+ = only MAJOR visual changes (whole… |
webhookUrl | string | Starter+ — HMAC-signed change-webhook target. |
watch_test Test Watch Config (dry-run)
Dry-run a watch config BEFORE creating it — render the proposed config once and report what was captured + whether the page is reachable (and the text a text-watch would compare). Creates no watch, no baseline, no diff. Use this to validate a selector/scope/identity first. Returns JSON.
| Parameter | Type | Description |
|---|---|---|
url * | string | The page to monitor (a schemeless host like 'rendex.dev/pricing' is upgraded to https). |
aiSummary | boolean | Pro+ — attach a one-sentence AI 'what changed' summary to each detected change. |
diffMode | string | How changes are detected. Default 'both' = a pixel diff (with a highlighted overlay) AND a FULL-PAGE text diff, alerting on either — catches any change, visual or text. 'visual' or 'text' narrow to… |
intervalMinutes | integer | Check frequency in minutes. Minimum is your plan's floor — Free 1440 (daily), Starter 180, Pro 30, Enterprise 5. |
name | string | Optional label for the watch. |
notifyEmail | string | Any plan — send change alerts here. Must be your OWN account email (others are rejected). Defaults to it if omitted. |
paused | boolean | Create the watch paused (no baseline capture or charge until resumed). |
renderParams | object | Render knobs applied on every check (a subset of the screenshot capture params). |
threshold | number | Visual sensitivity (0..1). Low (default 0.01) alerts on ANY change, including a small one on a long page (a changed-region test, not a whole-page pixel ratio). 0.06+ = only MAJOR visual changes (whole… |
webhookUrl | string | Starter+ — HMAC-signed change-webhook target. |
watch_list List Watches
List your watches (newest first), optionally filtered by status and paged. Returns { items, nextCursor }.
| Parameter | Type | Description |
|---|---|---|
cursor | string | Pagination cursor from a previous nextCursor. |
limit | integer | Page size (1–100). |
status | string | Filter by status. |
watch_get Get Watch
Fetch one watch by ID, including its current baseline image URL and status. Returns JSON.
| Parameter | Type | Description |
|---|---|---|
id * | string | The watch ID (UUID). |
watch_run Run Watch Now
Run an immediate check now (charges 1 credit). Returns the queued run; poll watch_runs for the result or receive a watch.changed webhook.
| Parameter | Type | Description |
|---|---|---|
id * | string | The watch ID (UUID). |
watch_runs List Watch Runs
Read a watch's run history (newest first), paged. Each run includes changed, diffScore, and signed before/after/overlay image URLs. Returns { items, nextCursor }.
| Parameter | Type | Description |
|---|---|---|
id * | string | The watch ID (UUID). |
cursor | string | Pagination cursor from a previous nextCursor. |
limit | integer | Page size (1–100). |
watch_delete Delete Watch
Delete a watch and its run history. Irreversible.
| Parameter | Type | Description |
|---|---|---|
id * | string | The watch ID (UUID). |
watch_update Update Watch
Update a watch in place — pause/resume (paused), re-point (url), change schedule/diff/notify settings, or turn a channel off (webhookUrl/notifyEmail = null). Only the fields you send change; renderParams is deep-merged over the existing config. A scope change (url/selector/fullPage/size/device) re-baselines on the next check. Returns the updated watch as JSON.
| Parameter | Type | Description |
|---|---|---|
id * | string | The watch ID (UUID) to update. |
aiSummary | boolean | Pro+ — toggle the one-sentence AI 'what changed' summary on each detected change. |
diffMode | string | Change what counts as a change. |
intervalMinutes | integer | New check frequency in minutes (subject to your plan's floor). |
name | Rename the watch (null to clear). | |
notifyEmail | Set the alert email (your account email only); null to turn it off. | |
paused | boolean | true to pause the watch, false to resume. |
renderParams | object | Render knobs to deep-merge over the existing capture config. |
threshold | number | Change the visual-change noise floor (0..1). |
url | string | Re-point to a new URL (clears the baseline; the next check re-baselines). |
webhookUrl | Starter+ — set or replace the change-webhook target; null to turn it off. |