$ man html-to-pdf
/html-to-pdf
PRICE / CALL
$0.08
USDC · base mainnet · scheme: exact
METHOD
POST
CLUSTER
mediakitCATEGORY
media
STATUS
● live
NAME
html-to-pdf — converts a url to pdf with cloudconvert capture-website; renders js
SYNOPSIS
POST https://x402.agentutility.ai/html-to-pdf
Content-Type: application/json
X-PAYMENT: <signed-transferWithAuthorization>
{ ... }↳ first call →
402 Payment Required. Sign USDCtransferWithAuthorization, retry with theX-PAYMENT header.DESCRIPTION
Converts a URL to PDF with CloudConvert capture-website; renders JS. Configurable page size, orientation, margins, wait conditions. Use it for HTML to PDF or webpage screenshot to PDF conversion.
INPUT — request schema
| property | type | description | req? |
|---|---|---|---|
| url | string | — | required |
| page_format | string | — | optional |
| page_orientation | string | — enum: portrait · landscape | optional |
| margin_top | number | — | optional |
| margin_bottom | number | — | optional |
| print_background | boolean | — | optional |
| wait_until | string | — | optional |
OUTPUT — response shape
| field | type | description |
|---|---|---|
| pdf_url | string | Signed download URL for the rendered PDF file produced from the source webpage. |
| file_size_bytes | number | Size of the generated PDF in bytes. |
| source_url | string | Original webpage URL that was captured and converted to PDF. |
| job_id | string | CloudConvert job identifier for the capture-website conversion task. |
EXAMPLES — two ways to call
EXAMPLE 1 · curl
curl -X POST https://x402.agentutility.ai/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 the MCP package for this endpoint's cluster npx -y @agentutility/mcp-<cluster> # Required: EVM private key with USDC on Base export X402_PRIVATE_KEY=0x... # Then call the html-to-pdf tool from your MCP-aware agent.
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
ADJACENT — other endpoints in mediakit
| endpoint | description | price |
|---|---|---|
| subtitles | SRT / VTT subtitle generator from video or audio. | $0.08 |
| doc-to-json | Converts any document (PDF, DOCX, PPT, XLSX, or image) into structured JSON matching a caller-supplied schema. | $0.10 |
| extract-tables | Detects and extracts every table from a PDF document, returning structured JSON or CSV per table. | $0.10 |
| pdf-extract-tables | Extracts every table from a PDF, digital or scanned, and returns row-by-column text matrices page-by-page. | $0.10 |
| pdf-table-extract | Extracts tables from digital or scanned PDFs, returning row/column matrices, CSV output, page numbers, and optional cell boxes. | $0.10 |
| pdf-table-extractor | Finds tables in digital or scanned PDFs and returns row-by-column matrices, page numbers, and optional cell bounding boxes. | $0.10 |
| pdf-to-jpg | Converts a PDF to JPG, PNG, or WEBP images, rendering every page at configurable DPI (36-600) and returning one image URL per page. | $0.10 |
| speaker-diarize | Speaker diarization / who-said-what transcription. | $0.10 |
SEE ALSO