Compile LaTeX source into a PDF
Authentication is OPTIONAL. Without credentials the request is served by the anonymous tier: pdflatex only, 3 pages, 30 KB of source, no assets, 3 successful compilations per day per IP, and PDF links that expire after 1 hour.
An absent key selects the anonymous tier. An invalid or revoked key returns 401 rather than downgrading, so a broken configuration fails loudly instead of appearing to work intermittently.
With a key, a document over the plan's page limit, or over its source-size limit but under 300 KB (at most 5 such previews per day), is not rejected: the response is 200 with preview: true, a PDF of the first pages the plan allows, total_pages, and plan_required naming the smallest plan that covers the whole document. Show the user the preview and relay warning; never drop pages silently.
Request
- Base URL: https://api.pressa.dev
- URL: https://api.pressa.dev/api/v1/compile
- Auth: one of:
- none
- HTTP bearer
- API key in header X-API-Key
Request body
Response
PDF produced.
Changes
No recorded changes to this operation across all 1 revision of this API.