Built for AI workflows
Core capabilities designed for LLM integration and agent autonomy
REST API for Document Generation
Compile LaTeX to PDF with a simple HTTP endpoint. Built for AI agents, LLM applications, and programmatic workflows.
- POST /compile - accepts LaTeX source and metadata
- Returns Base64-encoded PDF or hosted download URLs
- Sub-second compilation for cached documents
- SyncTeX data included for source mapping
LLM-Ready Architecture
Purpose-built integrations for OpenAI, Anthropic, LangChain, and custom agents. Generate research documents directly from language model outputs.
- OpenAI Function Calling compatible
- Claude tool-use support
- LangChain agent integration
- Streaming compilation updates
High-Performance Compilation
Deterministic output with guaranteed reproducibility. Fast compilation times suitable for real-time applications and batch processing.
- Tectonic-powered LaTeX engine
- Content-based caching (SHA256 hashing)
- Sub-second recompilation for cached docs
- Parallel batch compilation
Context Preservation
Maintain document state, citations, and formatting across multiple compilations. Perfect for iterative AI drafting workflows.
- Persistent document storage
- Citation library management
- Template guardrails
- Metadata tracking
AI use cases powered by TypeTeX
Real-world applications for AI agents and LLM applications
Autonomous Research Report Generation
AI agents autonomously research topics, generate findings, and compile publication-ready PDFs with proper citations.
- Multi-agent orchestration
- Real-time literature integration
- Automated compliance checks
Interactive Document Drafting
Conversational AI assistant that collaborates with users—drafting, revising, and compiling documents in real-time.
- Streaming compilation feedback
- Real-time PDF preview updates
- Iterative refinement loops
Batch Academic Document Processing
Process thousands of research documents through LLM pipelines for summarization, translation, or reformatting.
- Parallel compilation
- Cost-effective scaling
- Deterministic output
Citation Graph Generation
AI agents analyze research papers and generate interconnected literature reviews with automatic citation linking.
- Citation library management
- Relationship mapping
- Accuracy verification
Integration examples
See how to integrate TypeTeX into your AI application
OpenAI Function Calling
Use TypeTeX as a tool within GPT-4 function calling workflows
{
"name": "compile_research_paper",
"description": "Compile a LaTeX research paper to PDF",
"parameters": {
"type": "object",
"properties": {
"latex_source": {
"type": "string",
"description": "Full LaTeX document source"
},
"template": {
"type": "string",
"enum": ["ieee", "nature", "arxiv", "custom"],
"description": "Output template"
}
}
}
}LangChain Agent Tool
TypeTeX as a tool in LangChain agent chains
from langchain.tools import Tool
compile_tool = Tool(
name="compile_latex",
func=typetex_client.compile,
description="Compile LaTeX to PDF. Input: LaTeX source code"
)
agent = initialize_agent(
[compile_tool],
llm,
agent=AgentType.ZERO_SHOT_REACT_DESCRIPTION
)Direct API Call
Simple HTTP request for document compilation
curl https://api.typetex.ai/v1/compile \
-H "Authorization: Bearer $TYPETEX_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"source": "\\documentclass{article}...\\end{document}",
"template": "ieee",
"metadata": {
"title": "AI-Generated Research",
"project_id": "agent-123"
}
}'API endpoints
Complete REST API for LaTeX compilation and document manipulation
POST
/v1/compileCompile LaTeX to PDF
Parameters: source, template, metadata
POST
/v1/synctex/forwardMap source position to PDF coordinates
Parameters: source_line, source_column
POST
/v1/synctex/reverseMap PDF coordinates to source position
Parameters: page, x, y
GET
/v1/templatesList available LaTeX templates
POST
/v1/validateValidate LaTeX syntax without compilation
Parameters: source
Supported templates
Pre-configured LaTeX templates for major journals and conferences
IEEE Transactions
Nature
arXiv
NeurIPS
ICML
ACL
CVPR
Custom (BibTeX)
Production-ready features
Enterprise-grade reliability and performance
99.9% Uptime SLA
Guaranteed availability for mission-critical agent workflows
Sub-second Response
Cached compilations return in <100ms. Uncached in ~500ms average.
Deterministic Output
Same LaTeX source always produces identical PDF. Perfect for testing.
Version Control
Track document versions, branching, and merge AI-assisted edits.
Rich Documentation
Complete API docs, SDKs, and integration guides for all major platforms.
OpenAPI Spec
Full OpenAPI 3.0 specification for automatic client generation.
Get API access
Ready to integrate TypeTeX into your AI application?
Get your API key and start compiling LaTeX with LLMs. Free tier available for development.
API key generation • Free tier • Pay-as-you-go pricing