# TeX402 > Hardened x402-monetized LaTeX compilation ($0.008 USDC) and <300ms linting ($0.002 USDC) API on Base TeX402 is an agent-native HTTP microservice that compiles multi-file LaTeX documents — resumes, CVs, arXiv papers, Beamer slide decks, technical reports, invoices, and TikZ diagrams — to PDF (with optional 150-DPI PNG page previews) and validates LaTeX syntax via concurrent ChkTeX + `-draftmode` linting inside isolated, networkless Docker TeX Live containers. Metered per request over the **x402 v2** payment protocol using gasless EIP-3009 USDC authorizations — zero API keys, zero accounts, and pre-settlement buyer protection (`400`/`429`/`503` rejections never charge USDC). ## Key Discovery & Documentation URLs - [Agent Skill File (skill.md)](https://tex.x.gl/skill.md): Drop-in `SKILL.md` with YAML frontmatter for Claude Code, Cursor, Antigravity, Windsurf, and AgentCash covering zero-install MCP (`npx -y tex402-mcp`), direct HTTP x402 (`@x402/fetch` / `npx agentcash`), and visual 150-DPI PNG inspection. - [Complete LLM Integration Guide (llms-full.txt)](https://tex.x.gl/llms-full.txt): Single-file agent reference with exact JSON schemas, multi-file `base64:` rules, HTTP status codes, `@x402/fetch` TypeScript client, and `tex402-mcp` configuration. - [OpenAPI 3.1.0 Specification](https://tex.x.gl/openapi.json): Machine-readable API specification with 10 complete STEM, Beamer, TikZ, XeLaTeX CJK, and BibLaTeX/BibTeX examples. - [x402 v2 & Bazaar Discovery](https://tex.x.gl/.well-known/x402): x402 v2 service metadata, Bazaar input/output schemas, pricing, and MCP tool definitions. - [MCP Server Card](https://tex.x.gl/.well-known/mcp.json): Model Context Protocol server metadata for `npx -y tex402-mcp` (`tex402_status`, `tex402_lint`, `tex402_compile`). - [RFC 9727 API Catalog](https://tex.x.gl/.well-known/api-catalog): `application/linkset+json` machine-discoverable API linkset. - [Interactive Swagger UI](https://tex.x.gl/docs): Browser-based API documentation and schema explorer. - [Service & Worker Pool Health](https://tex.x.gl/health): Live liveness, active network, `pay_to` address, and Docker worker queue telemetry. ## Pricing & Network Details - **Base URL**: `https://tex.x.gl` - **Mode / Network**: `mainnet` — Base Mainnet (`eip155:8453`) - **Payment Asset**: USDC (`0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913`, 6 decimals, EIP-3009 `TransferWithAuthorization`, 0 ETH gas needed by buyer) - **Recipient (`payTo`)**: `0x5e18Dfb04F64e1D0d3593178a004A251506c2e16` - **x402 Facilitator**: `https://api.cdp.coinbase.com/platform/v2/x402` - **`POST https://tex.x.gl/v1/compile`**: **$0.008 USDC** (`8000` atomic units) — Multi-pass `pdflatex` / `xelatex` compilation, `biber` / `bibtex`, base64 PDF, optional 150-DPI PNG page previews, and structured diagnostics. - **`POST https://tex.x.gl/v1/lint`**: **$0.002 USDC** (`2000` atomic units) — Sub-300ms concurrent `chktex` + single-pass `-draftmode` syntax check returning structured line-exact diagnostics. ## Quick Pointers for AI Agents & SDKs - **MCP Server (`npx -y tex402-mcp`)**: Published on npm as `tex402-mcp@1.0.0`. Configure `command: "npx"`, `args: ["-y", "tex402-mcp"]` with env `TEX402_PRIVATE_KEY` (`0x...` Base wallet holding USDC) and optional `TEX402_BASE_URL`. Exposes `tex402_status` (free), `tex402_lint` (`$0.002`), and `tex402_compile` (`$0.008`, writes PDF directly to disk and attaches PNG previews). - **TypeScript / Node.js (`@x402/fetch`)**: Install `npm i @x402/fetch @x402/evm viem`, register `registerExactEvmScheme(client, { signer: toClientEvmSigner(account, publicClient) })`, and wrap `fetch` with `wrapFetchWithPayment(fetch, client)` to call `https://tex.x.gl/v1/lint` and `https://tex.x.gl/v1/compile`. See [llms-full.txt](https://tex.x.gl/llms-full.txt) for complete copy-paste code.