$ man xml-to-word
/xml-to-word
PRICE / CALL
$0.05
USDC · base mainnet · scheme: exact
METHOD
POST
CLUSTER
mediakitCATEGORY
uncategorized
STATUS
● live
NAME
xml-to-word — converts an xml document into a microsoft word (.docx) file for delivery to systems that need word format, not raw xml
SYNOPSIS
POST https://x402.agentutility.ai/xml-to-word
Content-Type: application/json
X-PAYMENT: <signed-transferWithAuthorization>
{ ... }↳ first call →
402 Payment Required. Sign USDCtransferWithAuthorization, retry with theX-PAYMENT header.DESCRIPTION
Converts an XML document into a Microsoft Word (.docx) file for delivery to systems that need Word format, not raw XML. Send xml_url, a public HTTPS link, or inline xml text plus an optional title; the endpoint renders the XML into structured HTML that preserves element nesting as headings and lists, converts that HTML to DOCX, and returns a downloadable docx_url along with file size and character counts. Useful for legal and finance pipelines that emit XML reports but need Word deliverables, regulator-format compliance workflows, and agent-led document generation. Use it as an XML to Word converter, XML to DOCX API, or XML document formatter for downstream Word delivery.
INPUT — request schema
| property | type | description | req? |
|---|---|---|---|
| xml_url | string | Public HTTPS URL to the source XML. Provide this or 'xml'. | optional |
| xml | string | Inline XML string to convert directly. Provide this or 'xml_url'. Max 5MB after fetch. | optional |
OUTPUT — response shape
| field | type | description |
|---|---|---|
| docx_url | string | Signed URL to download the converted Microsoft Word (DOCX) file. |
EXAMPLES — two ways to call
EXAMPLE 1 · curl
curl -X POST https://x402.agentutility.ai/xml-to-word \
-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 xml-to-word tool from your MCP-aware agent.
MCP server handles payment automatically — your coding agent just calls the tool by name.
METADATA
- tags
- mediakitfile-conversiondocument-conversionxmldocxwordxml-to-docxxml-to-word
- methods
- POST
- cluster
- mediakit
- price
- $0.05 USDC per call
ADJACENT — other endpoints in mediakit
| endpoint | description | price |
|---|---|---|
| office-to-pdf | Converts office documents and other file formats into PDF from a URL, no upload step required. | $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