Compile
Compile LaTeX (.tex) documents — resumes, CVs, arXiv papers, Beamer slide decks, technical reports, invoices, and TikZ diagrams — inside a hardened networkless TeX Live container, returning base64 PDF, 150-DPI PNG page previews, and structured diagnostics.
POST https://tex.x.gl/v1/compile
0.008 USDC on Base · payTo 0x5e18Dfb04F64e1D0d3593178a004A251506c2e16
Status: verified · payable
Operator badge: embed this endpoint's live status badge — it reads "Verified Payable" only while the probe record backs it.
Settlement: direct to the seller's payTo — 0% HIVE402 take
Payment routes
{
"bibliography": false,
"engine": "pdflatex",
"files": {
"refs.bib": "@article{knuth1984,\n author = {Donald E. Knuth},\n title = {Literate Programming},\n journal = {The Computer Journal},\n year = {1984}\n}"
},
"include_page_previews": true,
"main_tex": "\\documentclass{article}\n\\begin{document}\nHello, TeX402!\n\\end{document}"
}{
"compile_time_ms": 420,
"diagnostics": [],
"page_count": 1,
"page_previews_base64": [
"iVBORw0KGgoAAAANSUhEUgAA..."
],
"pdf_base64": "JVBERi0xLjUNCi...",
"success": true
}Script Master Labs LLC · SDVOSB · Kinston, NC · Terms · Refunds · Privacy · Contact
SML network: ScriptMasterLabs — the main site · SML Dual Market — the human storefront · VA Ratings — VA disability ratings, free for veterans
Agent intel 
| Trust score | pending / 100 · breakdown |
|---|---|
| Probe uptime (30d) | — over 0 probes · daily |
| Avg 402 latency | — ms |
| Paid calls (30d, on-chain) | 0 calls · 0 buyers |
How to call
POST https://tex.x.gl/v1/compile · input in body · spec from live-challenge
Input schema
{
"type": "object",
"properties": {
"main_tex": {
"type": "string",
"description": "Root LaTeX document source code (.tex)"
},
"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": {
"type": "string",
"enum": [
"pdflatex",
"xelatex"
],
"default": "pdflatex",
"description": "TeX engine used for compilation"
},
"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"
}
},
"required": [
"main_tex"
],
"additionalProperties": false
}Output schema
{
"type": "object",
"properties": {
"success": {
"type": "boolean"
},
"pdf_base64": {
"type": [
"string",
"null"
]
},
"page_count": {
"type": "integer",
"minimum": 0
},
"page_previews_base64": {
"type": "array",
"items": {
"type": "string"
}
},
"compile_time_ms": {
"type": "number",
"minimum": 0
},
"diagnostics": {
"type": "array",
"items": {
"type": "object",
"properties": {
"file": {
"type": "string"
},
"line": {
"type": [
"integer",
"null"
]
},
"severity": {
"type": "string",
"enum": [
"error",
"warning",
"info"
]
},
"message": {
"type": "string"
},
"context_snippet": {
"type": "string"
},
"suggested_fix": {
"type": "string"
}
},
"required": [
"file",
"line",
"severity",
"message",
"context_snippet",
"suggested_fix"
]
}
}
},
"required": [
"success",
"pdf_base64",
"page_count",
"page_previews_base64",
"compile_time_ms",
"diagnostics"
]
}curl -i -X POST 'https://tex.x.gl/v1/compile' \
-H 'content-type: application/json' -d '{"main_tex":"\\documentclass{article}\n\\begin{document}\nHello, TeX402!\n\\end{document}","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","bibliography":false,"include_page_previews":true}'
Agents: POST https://hive402.scriptmasterlabs.com/mcp → route_task / proxy_call · SDK /sdk/hive402.mjs