TeX402 PDF - LaTeX Compiler
Sandboxed LaTeX-to-PDF compilation ($0.008 USDC), JSON Resume and Invoice PDF generation ($0.010 USDC), and sub-300ms ChkTeX + draftmode diagnostics ($0.002 USDC) on Base and Solana. Built for AI agents (npx -y tex402-mcp@1.2.0, Remote HTTP /mcp) and TypeScript (@x402/fetch).
Part of tex.x.gl · 5 endpoints · See the whole service
The wallet the 402 directs payment to. Its full payment record is on the merchant page.
Asset 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913
The payTo wallet does not resolve to a registered ERC-8004 agent. That is not a verdict on the service; most of the catalog is unregistered.
Recent payments · which agents last used it
Every indexed settlement paid to this service’s wallet, newest first. The index does not record which endpoint a payment was for, so if this wallet serves more than one endpoint, the rows include payments for the others. Paged up to the newest 5,000; the full history is on the merchant page.
Accepts
The payment requirements as published to the catalog. Read the live 402 before paying: a price here is a claim, not a quote.
Pay 0.008 USDC on Base to 0x5e18…c2e16. The signed payment is good for 5 minutes.
- Paid to
- 0x5e18…c2e16
- USD Coin contract
- 0x8335…02913
- Payment window
- 5 minutes
- As published
- 8000 smallest units
That figure is in the token’s smallest units. Roundhouse does not hold this contract’s decimals, so it is shown as published rather than converted.
- Paid to
- Gjpthm…wGW7S
- Token contract
- EPjFWd…TDt1v
- Payment window
- 5 minutes
The catalog’s raw entry
[
{
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"extra": {
"name": "USD Coin",
"version": "2"
},
"payTo": "0x5e18Dfb04F64e1D0d3593178a004A251506c2e16",
"amount": "8000",
"scheme": "exact",
"network": "eip155:8453",
"maxTimeoutSeconds": 300
},
{
"asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"extra": {
"feePayer": "BENrLoUbndxoNMUS5JXApGMtNykLjFXXixMtpDwDR9SP",
"transactionVersions": [
0,
1
]
},
"payTo": "Gjpthm1vAehaLZo9y58oSzWUNHCvTpZm8Cz69PgwGW7S",
"amount": "8000",
"scheme": "exact",
"network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
"maxTimeoutSeconds": 300
}
]Extensions
{
"bazaar": {
"info": {
"input": {
"body": {
"files": {
"refs.bib": "@article{knuth1984,\n author = {Donald E. Knuth},\n title = {Literate Programming},\n journal = {The Computer Journal},\n year = {1984}\n}"
},
"engine": "pdflatex",
"main_tex": "\\documentclass{article}\n\\begin{document}\nHello, TeX402!\n\\end{document}",
"bibliography": false,
"include_page_previews": true
},
"type": "http",
"method": "POST",
"bodyType": "json"
},
"output": {
"type": "json",
"example": {
"success": true,
"page_count": 1,
"pdf_base64": "JVBERi0xLjUNCi...",
"diagnostics": [],
"download_url": "https://tex.x.gl/v1/downloads/c7Kp4mQnR9xT2wYzL5vBfJ8hD1sG6aE3uV0iO4pM7qC/tex402-document.pdf",
"compile_time_ms": 420,
"download_expires_at": "2026-11-23T19:45:00.000Z",
"page_previews_base64": [
"iVBORw0KGgoAAAANSUhEUgAA..."
]
}
}
},
"schema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"input"
],
"properties": {
"input": {
"type": "object",
"required": [
"type",
"method",
"bodyType",
"body"
],
"properties": {
"body": {
"type": "object",
"required": [
"main_tex"
],
"properties": {
"files": {
"type": "object",
"description": "Optional map of safe relative file paths (e.g. refs.bib, style.sty, fig.png) to UTF-8 strings or base64:... payloads",
"additionalProperties": {
"type": "string"
}
},
"engine": {
"enum": [
"pdflatex",
"xelatex"
],
"type": "string",
"default": "pdflatex",
"description": "TeX engine used for compilation"
},
"main_tex": {
"type": "string",
"description": "Root LaTeX document source code (.tex)"
},
"bibliography": {
"type": "boolean",
"default": false,
"description": "Run multi-pass biber/bibtex bibliography compilation when true"
},
"include_page_previews": {
"type": "boolean",
"default": false,
"description": "Render 150-DPI PNG page previews via pdftoppm as base64 strings"
}
},
"additionalProperties": false
},
"type": {
"type": "string",
"const": "http"
},
"method": {
"enum": [
"POST"
],
"type": "string"
},
"bodyType": {
"enum": [
"json",
"form-data",
"text"
],
"type": "string"
}
},
"additionalProperties": false
},
"output": {
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"type": "string"
},
"example": {
"type": "object",
"required": [
"success",
"pdf_base64",
"page_count",
"page_previews_base64",
"compile_time_ms",
"diagnostics"
],
"properties": {
"success": {
"type": "boolean"
},
"page_count": {
"type": "integer",
"minimum": 0
},
"pdf_base64": {
"type": [
"string",
"null"
]
},
"diagnostics": {
"type": "array",
"items": {
"type": "object",
"required": [
"file",
"line",
"severity",
"message",
"context_snippet",
"suggested_fix"
],
"properties": {
"file": {
"type": "string"
},
"line": {
"type": [
"integer",
"null"
]
},
"message": {
"type": "string"
},
"severity": {
"enum": [
"error",
"warning",
"info"
],
"type": "string"
},
"suggested_fix": {
"type": "string"
},
"context_snippet": {
"type": "string"
}
}
}
},
"download_url": {
"type": [
"string",
"null"
],
"description": "Short-lived 15-minute capability URL to download the rendered PDF binary directly (null on failure)."
},
"compile_time_ms": {
"type": "number",
"minimum": 0
},
"download_expires_at": {
"type": [
"string",
"null"
],
"description": "ISO-8601 UTC expiration timestamp for download_url."
},
"page_previews_base64": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
}
}
}
}
}
}Provenance
- Seen in the source catalog
- 2026-11-23 20:03Z
- Last indexed by Roundhouse
- 2026-12-03 00:30Z
- Last enriched (probe, favicon, geo)
- 2026-11-23 21:45Z
- x402 version
- 2
- Max timeout
- 300s
- Liveness probe
- HTTP 404
Hand this page to an agent
Copy the prompt and paste it into Claude, an MCP client or your own agent: it will vet this service and call it over the free read API. No key, no account.
GET api.roundhouseai.io/v0/endpoints
This endpoint's own trailing-30-day call count, as published by the upstream catalog and snapshotted daily. 8 snapshots so far. Verified volume counts only settlements relayed by a known x402 facilitator.
Show the promptHide the prompt
Using Roundhouse, look up the x402 service TeX402 PDF - LaTeX Compiler and tell me whether it is worth paying: what a call costs, whether the endpoint answered when last probed, and what its payment record actually shows. curl -s 'https://api.roundhouseai.io/v0/endpoints?q=TeX402%20PDF%20-%20LaTeX%20Compiler' curl -s 'https://api.roundhouseai.io/v0/merchants/<the payTo wallet returned above>' Then call it: read the price from the live 402 at https://tex.x.gl/v1/pdf/latex, never from a cached figure, and pay with an x402 client. The /v0 API needs an API key (`authorization: Bearer rh_live_…`) on everything except /v0/unified* and /v0/endpoints. Either pay over x402 (mint a personal key for $0.01 at GET https://api.roundhouseai.io/v0/test/x402), or ask me for an organization key, which I create at https://roundhouseai.io/dashboard/connections. If you have neither, ask before going further. If you do not have Roundhouse tools or skills installed, read https://roundhouseai.io/skill.md first — it is the whole procedure.