$ man pdf-to-jpg
/pdf-to-jpg(1)
PRICE / CALL
$0.10
USDC · base mainnet · scheme: exact
METHOD
POST
CLUSTER
mediakitCATEGORY
media
STATUS
● live
NAME
pdf-to-jpg — pdf to jpg / png / webp image converter
SYNOPSIS
POST https://x402.org/v1/pdf-to-jpg
Content-Type: application/json
X-PAYMENT: <signed-transferWithAuthorization>
{ ... }↳ first call →
402 Payment Required. Sign USDCtransferWithAuthorization, retry with theX-PAYMENT header.DESCRIPTION
PDF to JPG / PNG / WEBP image converter. Renders every page at configurable DPI (36-600). Returns one image URL per page. CloudConvert backend.
INPUT — request schema
| property | type | description | req? |
|---|---|---|---|
| pdf_url | string | Public URL of the PDF. | required |
| format | string | 'jpg' (default), 'png', or 'webp'. enum: jpg · png · webp | optional |
| quality | number | JPG quality 1-100 (default 85). Ignored for png/webp. | optional |
| pixel_density | number | DPI for rasterization. Default 144. Range 36-600. | optional |
OUTPUT — response shape
| field | type | description |
|---|---|---|
| images | array | Array of { page, url, filename, file_size_bytes } objects. |
| page_count | number | Number of pages rendered from the source PDF, one image URL returned per page. |
| format | string | Output image format used for the rendered pages (jpg, png, or webp). |
| quality | number | Compression quality applied to lossy formats like JPG/WEBP, typically 1-100. |
| pixel_density | number | DPI used to rasterize each PDF page, between 36 and 600 as configured in the request. |
| source_url | string | URL of the input PDF that was rasterized into images. |
| job_id | string | CloudConvert job identifier for the rasterization run, useful for tracing or support. |
EXAMPLES — two ways to call
EXAMPLE 1 · curl
curl -X POST https://x402.org/v1/pdf-to-jpg \
-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 pdf-to-jpg tool to ..."
MCP server handles payment automatically — your coding agent just calls the tool by name.
METADATA
- tags
- pdfjpgpngwebprasterizeimages
- env
- CLOUD_CONVERT_API_KEY
- methods
- POST
- cluster
- mediakit
- price
- $0.10 USDC per call
ADJACENT — other endpoints in mediakit
| endpoint | description | price |
|---|---|---|
| extract-tables | Extract tables from PDF / table extractor / PDF to CSV / spreadsheet from PDF. | $0.10 |
| mp4-to-mp3 | MP4 → MP3 audio extractor. | $0.10 |
| pdf-extract-tables | PDF table extractor / table from PDF / scanned-table parsing / financial-table OCR / multi-page table consolidator / Datalab Marker tables. | $0.10 |
| speaker-diarize | Speaker diarization / who-said-what transcription. | $0.10 |
| transcribe | Video / audio transcription via Whisper v3. | $0.10 |
| upscale-image | AI image upscaler / super-resolution / image enlarger. | $0.10 |
| video-summarize | Video summarizer / podcast summarizer / lecture notes generator. | $0.10 |
| video-to-audio | Video → audio extractor / video to audio converter. | $0.10 |
SEE ALSO