$ man office-to-pdf
/office-to-pdf
PRICE / CALL
$0.05
USDC · base mainnet · scheme: exact
METHOD
POST
CLUSTER
mediakitCATEGORY
media
STATUS
● live
NAME
office-to-pdf — converts office documents and other file formats into pdf from a url, no upload step required
SYNOPSIS
POST https://x402.agentutility.ai/office-to-pdf
Content-Type: application/json
X-PAYMENT: <signed-transferWithAuthorization>
{ ... }↳ first call →
402 Payment Required. Sign USDCtransferWithAuthorization, retry with theX-PAYMENT header.DESCRIPTION
Converts office documents and other file formats into PDF from a URL, no upload step required. Accepts DOCX, DOC, XLSX, XLS, PPTX, PPT, ODT, ODS, ODP, RTF, TXT, CSV, TSV, EPUB, Markdown, HTML, and Apple Pages, Numbers, and Keynote files, auto-detecting the source format from the file extension. Send file_url and get back pdf_url plus source_format, run through the CloudConvert engine. Use it as an office to PDF converter, document conversion API, DOCX-to-PDF tool, or spreadsheet and slide-deck to PDF service.
INPUT — request schema
| property | type | description | req? |
|---|---|---|---|
| file_url | string | Source file URL. Extension must be one of docx, doc, xlsx, xls, pptx, ppt, odt, ods, odp, rtf, txt, csv, tsv, epub, md, html, htm, pages, numbers, key. | required |
OUTPUT — response shape
| field | type | description |
|---|---|---|
| pdf_url | string | Temporary download URL for the converted PDF file hosted on CloudConvert's storage. |
| file_size_bytes | number | Size of the generated PDF in bytes. |
| source_format | string | Detected input format of the source file (e.g. docx, xlsx, pptx, odt, rtf, epub). |
| source_url | string | Echoed URL of the original Office document that was submitted for conversion. |
| job_id | string | CloudConvert job identifier for tracking or debugging the conversion run. |
EXAMPLES — two ways to call
EXAMPLE 1 · curl
curl -X POST https://x402.agentutility.ai/office-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 office-to-pdf tool from your MCP-aware agent.
MCP server handles payment automatically — your coding agent just calls the tool by name.
METADATA
- tags
- docxxlsxpptxpdfofficeconvert
- env
- CLOUD_CONVERT_API_KEY
- methods
- POST
- cluster
- mediakit
- price
- $0.05 USDC per call
ADJACENT — other endpoints in mediakit
| endpoint | description | price |
|---|---|---|
| xml-to-word | Converts an XML document into a Microsoft Word (.docx) file for delivery to systems that need Word format, not raw XML. | $0.05 |
| pdf-split | Split a PDF into multiple files by page range or one file per page. | $0.04 |
| split-pdf | Split a PDF into multiple files by page range or one PDF per page. | $0.04 |
| logo-detect | Brand logo detection / brand recognition in images. | $0.03 |
| video-thumbnail | Pull a single still frame out of a video without transcoding the whole file. | $0.03 |
| html-to-pdf | Render a live webpage as a PDF document. | $0.08 |
| subtitles | Generate ready-to-use subtitle files from a video or audio URL. | $0.08 |
| add-watermark | Stamp a text or image watermark onto a PDF, image, or video file. | $0.02 |
SEE ALSO