Skip to content
clusters: prooflayer · edgemarket · edgefinance · synthforge · mediakit · wordmint · webprobe · locale · comppoint
$ man html-to-pdf

/html-to-pdf(1)

agentutility / mediakit / html-to-pdf
PRICE / CALL
$0.08
USDC · base mainnet · scheme: exact
METHOD
POST
CLUSTER
mediakit
CATEGORY
media
STATUS
live
NAME
html-to-pdf url to pdf / html to pdf / webpage screenshot to pdf
SYNOPSIS
POST https://x402.org/v1/html-to-pdf
     Content-Type: application/json
     X-PAYMENT:    <signed-transferWithAuthorization>

     { ... }
↳ first call → 402 Payment Required. Sign USDCtransferWithAuthorization, retry with theX-PAYMENT header.
DESCRIPTION

URL to PDF / HTML to PDF / webpage screenshot to PDF. CloudConvert capture-website. Configurable page size, orientation, margins, wait conditions. Renders JS.

INPUTrequest schema
propertytypedescriptionreq?
urlstringPublic URL to render.required
page_formatstringletter, legal, tabloid, ledger, a0-a6.optional
page_orientationstring'portrait' (default) or 'landscape'.
enum: portrait · landscape
optional
margin_topnumberInches. 0-5.optional
margin_bottomnumberInches. 0-5.optional
print_backgroundbooleanPrint CSS backgrounds. Default true.optional
wait_untilstring'load' (default), 'domcontentloaded', 'networkidle0', 'networkidle2'.optional
OUTPUTresponse shape
fieldtypedescription
pdf_urlstringSigned download URL for the rendered PDF file produced from the source webpage.
file_size_bytesnumberSize of the generated PDF in bytes.
source_urlstringOriginal webpage URL that was captured and converted to PDF.
job_idstringCloudConvert job identifier for the capture-website conversion task.
EXAMPLEStwo ways to call
EXAMPLE 1 · curl
curl -X POST https://x402.org/v1/html-to-pdf \
  -H 'Content-Type: application/json' \
  -d '{ }'
first response = 402 Payment Required with payment requirements; sign + retry with X-PAYMENT.
EXAMPLE 2 · mcp
# install once
claude mcp add x402 --command "npx x402-deployer-mcp"

# then ask Claude Code:
# "use the html-to-pdf tool to ..."
MCP server handles payment automatically — your coding agent just calls the tool by name.
METADATA
tags
htmlpdfurlscreenshotrendercapture
env
CLOUD_CONVERT_API_KEY
methods
POST
cluster
mediakit
price
$0.08 USDC per call
ADJACENTother endpoints in mediakit
endpointdescriptionprice
subtitlesSRT / VTT subtitle generator from video or audio.$0.08
extract-tablesExtract tables from PDF / table extractor / PDF to CSV / spreadsheet from PDF.$0.10
mp4-to-mp3MP4 → MP3 audio extractor.$0.10
pdf-extract-tablesPDF table extractor / table from PDF / scanned-table parsing / financial-table OCR / multi-page table consolidator / Datalab Marker tables.$0.10
pdf-to-jpgPDF to JPG / PNG / WEBP image converter.$0.10
speaker-diarizeSpeaker diarization / who-said-what transcription.$0.10
transcribeVideo / audio transcription via Whisper v3.$0.10
upscale-imageAI image upscaler / super-resolution / image enlarger.$0.10
SEE ALSO
agentutility(7) · mediakit(7) · x402(7) · mcp(7) · llms.txt · registry.json · bazaar.x402.org