# LaTeX accessibility API: a tagged PDF, a web page and a WCAG report from one request

Send a LaTeX project in one request and get back a tagged PDF, a matching web page and an accessibility report, for ten cents a page. One address, one key, and a formula reader that needs neither.

Address: https://intex.academy/api

## The LaTeX accessibility API

Send the LaTeX project you already have. Get back a tagged PDF, a matching web page and an accessibility report. One address, one key, ten cents a page.

### Try it now. *No key, no account.*

Paste this into a terminal:

```
curl -G https://api.intex.academy/v1/formula \
     --data-urlencode 'tex=\int_0^1 x^2\,dx = \frac{1}{3}'
```

Back come the words a screen reader says for the formula, the text it copies out as, and its MathML:

```
{
  "formula": "\\int_0^1 x^2\\,dx = \\frac{1}{3}",
  "reads_as": "∫_(0)^(1) [(x^2) dx] = 1/3",
  "speech": "the integral from 0 to 1 of x squared d x equals one third",
  "copy": "∫_0^1 x² dx = 1/3",
  "mathml": "<math …>…</math>"
}
```

Read when this page was built, with the MathML shortened. Thirty formulas every ten minutes are free. The same reader, in a browser: [try a formula](https://intex.academy/formula).

### A whole document, *in three steps.*

#### Get a key

1. Sign up free at [intex.university/signup](https://intex.university/signup) and confirm your email. On the API page of your portal, [app.intex.university/api-keys](https://app.intex.university/api-keys), make a key and add credit by card. $10 is a hundred pages of everything below.

#### Send your project

2. Zip the project as you build it today: the .tex files, the figures, the bibliography, and any class or style files of your own. Nothing needs rewriting first.

```
curl https://api.intex.academy/v1/all \
     -H "Authorization: Bearer $API_KEY" \
     -F project=@lecture-04.zip \
     -o lecture-04-all.zip
```

#### Open what comes back

```
lecture-04.pdf             the tagged PDF
lecture-04/index.html      the web page, with its figures beside it
lecture-04.report.json     the report, for software
lecture-04.report.txt      the report, in plain sentences
lecture-04.archive.pdf     the archival copy
```

3. The response's headers say what it cost: `Intex-Pages`, `Intex-Cost-Cents` and `Intex-Credit-Cents`. A project that cannot be built costs nothing, and the answer names the file and the line to fix.

### Six services, *one address.*

Every address starts with `https://api.intex.academy`. The five project services take the same request, so moving from one to another is changing one word.

| Service | Request | What comes back | Price |
|---|---|---|---|
| [The bundle](https://intex.academy/api#all) | `POST /v1/all` | The tagged PDF, the web page, the report and an archival copy, in one .zip | 10¢ a page |
| [Tagged PDF](https://intex.academy/api#pdf) | `POST /v1/pdf` | A PDF a screen reader can move through, every formula real mathematics | 6¢ a page |
| [Web page](https://intex.academy/api#page) | `POST /v1/page` | One web page from the same reading, its formulas in MathML | 4¢ a page |
| [Report](https://intex.academy/api#report) | `POST /v1/report` | Each WCAG 2.1 criterion with its verdict, and where a person is needed, by line | 3¢ a page |
| [Count](https://intex.academy/api#count) | `POST /v1/count` | Pages, formulas, figures and tables, and what each service would cost | Free |
| [Formula](https://intex.academy/api#formula) | `GET /v1/formula` | One formula's spoken words, copy text and MathML | Free; $1 per 1,000 with a key |

Bought one by one, the PDF, the page and the report come to thirteen cents a page. The bundle is ten, with the archival copy added. Pages are the pages of the PDF your project makes, the number Count returns for free, so the price is known before anything is spent.

### Sending a project

Your key goes in a header, and the project in a form upload (`multipart/form-data`):

```
Authorization: Bearer YOUR_KEY
```

| Field | What goes in it |
|---|---|
| `project` | The project as one .zip or .tar.gz, up to 64 MB. |
| `main` | Optional. The path of the main .tex file inside the archive. Without it, the main file is found for you, and a project with more than one is answered with a 422 that names them. |

Or send the archive itself as the body, as `application/zip` or `application/gzip`, with `?main=` in the address when it is needed.

PNG and JPEG figures are placed as they are. A figure in PDF, EPS or SVG is answered, for now, with a 422 that names it: save it as a PNG of the same name beside it. Count takes every kind. A .bib or a .bbl both work for the bibliography.

Keys are made on your portal's API page, up to five at a time, and each is shown once, when it is made: we keep only a fingerprint of it. Keep it out of web pages and public code. If one leaks, revoke it there and make another.

### What each service returns

#### The bundle `POST /v1/all`

A .zip, as `application/zip`, holding the five files listed in step three above. The archival copy is the same PDF, carrying the project it was made from and the record of what was checked, so that years from now it can be [rebuilt from nothing but itself](https://intex.academy/proof) and checked again.

#### Tagged PDF `POST /v1/pdf`

The PDF itself, as `application/pdf`: headings, lists, tables and figures a screen reader can move through, and every formula real mathematics, spoken aloud and copied out as text.

```
curl https://api.intex.academy/v1/pdf \
     -H "Authorization: Bearer $API_KEY" \
     -F project=@lecture-04.zip \
     -o lecture-04.pdf
```

#### Web page `POST /v1/page`

A .zip, as `application/zip`, holding `index.html` and the figures it shows. The page is made from the same reading as the PDF, so the two [agree word for word and number for number](https://intex.academy/one-source). Every formula is MathML, which screen readers speak and browsers draw without a script.

#### Report `POST /v1/report`

```
{
  "verdict": "not established",
  "criteria": [
    {"criterion": "1.1.1", "name": "Non-text Content", "verdict": "needs a person",
     "places": [{"file": "lecture-04.tex", "line": 42,
                 "needs": "The figure's alt text is copied from its caption."}]},
    {"criterion": "1.3.1", "name": "Info and Relationships", "verdict": "passed", "places": []}
  ],
  "other": [{"file": "lecture-04.tex", "line": 88,
             "needs": "\\cite{knuth} has no entry in the bibliography: it reads [?]."}],
  "text": "The report in plain sentences, as the PDF carries it."
}
```

Shortened, and an example. `verdict` is the headline for the whole document: `yes`, `no` or `not established`. Each criterion's verdict is `passed`, `failed`, `not established` or `needs a person`, with its places. `other` holds the places a person is needed that no criterion covers.

The report never says "compliant". Where software can decide a criterion, it gives the verdict. Where it cannot, it says so, and names the place in your source [a person should look at](https://intex.academy/notes/machine-checks).

#### Count `POST /v1/count`

```
{
  "pages": 12,
  "formulas": 148,
  "figures": 6,
  "tables": 2,
  "cost_cents": {"pdf": 72, "page": 48, "report": 36, "all": 120}
}
```

The numbers are an example. `cost_cents` is what each service would charge for this project. Count is free, and needs a key but no credit.

#### Formula `GET /v1/formula?tex=FORMULA`

Or POST, with the formula as `tex` in a JSON body or a form: one formula as you would write it between dollar signs, without them, on one line of at most 1,000 characters. Any website may call it from the browser. The answer has five fields:

| Field | What it holds |
|---|---|
| `formula` | The formula as it was read. |
| `reads_as` | Its grouping, with every bracket the notation leaves unwritten written out. |
| `speech` | What a screen reader says for it. Use it as the alt text of an equation. |
| `copy` | The text it should copy out as when someone selects it. |
| `mathml` | MathML, with the speech as its alt text and the LaTeX as an annotation. |

Without a key: thirty formulas every ten minutes from one network. With one: a dollar for a thousand formulas, up to six hundred every ten minutes.

### What you pay

Credit is bought ahead: by card on your portal's API page, from $10 to $250 at a time, or by invoice through [team@intex.university](mailto:team@intex.university?subject=API%20credit%20by%20invoice). Each request takes its cost from it. One your credit cannot cover is answered with a 402 that says both amounts, and costs nothing.

### When something is wrong

Every error comes back as JSON with a sentence a person can act on, and, when the trouble is in your source, its place:

```
{"ok": false, "error": "This '{' is never closed.", "file": "lecture-04.tex", "line": 42}
```

| Status | When |
|---|---|
| 400 | The request is not a project upload: not a form with `project`, nor a .zip or .tar.gz. |
| 401 | The key is missing, revoked, or not one of ours. |
| 402 | The credit on the key's account will not cover this project. Nothing was charged. |
| 403 | The key's account may not use the API. |
| 413 | The upload is over 64 MB. |
| 422 | The project cannot be built, goes past a limit, or needs `main`. The sentence and the place say why. Nothing was charged. |
| 429 | More than thirty requests in ten minutes on one key. Wait the seconds in `Retry-After`. |
| 503 | The service is paused, or every build slot is busy. Wait the seconds in `Retry-After`. |

### Limits

- One project a request, up to 1,000 pages; thirty requests every ten minutes on one key.

- A request is answered while you wait. One that runs past five minutes is stopped, answered with the reason, and costs nothing.

- A project is built on its own and can read nothing outside itself.

### Your files

They are read where they arrive, kept only while your request is answered, and deleted the moment the response leaves us. We keep the count of pages, for the bill, and nothing of what was on them. The software runs on our servers only: nothing is installed on yours.

### For AI agents: *the MCP server.*

Every service above, as a tool an agent can call, with the same key and credit. One address:

```
https://api.intex.academy/mcp
```

In Claude Code:

```
claude mcp add --transport http intex https://api.intex.academy/mcp \
     --header "Authorization: Bearer YOUR_KEY"
```

In a client that takes a JSON configuration (the field names vary a little from client to client):

```
{"mcpServers": {"intex": {
  "type": "http",
  "url": "https://api.intex.academy/mcp",
  "headers": {"Authorization": "Bearer YOUR_KEY"}
}}}
```

Without the header, `read_formula` works and the project tools answer with where to get a key. Keep the key in your client's own settings, out of files you share.

| Tool | What comes back | Price |
|---|---|---|
| `read_formula` | For one formula: what it reads as, the words a screen reader says, the text it copies out as, and its MathML. | Free without a key, thirty every ten minutes; with one, a tenth of a cent |
| `count_project` | Pages, formulas, figures and tables, and what each tool below would cost for the project. | Free, with a key |
| `make_tagged_pdf` | The tagged PDF, as a file in the answer. | 6¢ a page |
| `make_web_page` | The web page: its HTML and its figures, as files. | 4¢ a page |
| `check_accessibility` | The report, as data: each WCAG 2.1 criterion with its verdict, and every place a person is needed, by file and line. | 3¢ a page |
| `make_everything` | The bundle from one build: the PDF, an archival copy, the page and the report. | 10¢ a page |

Each project tool takes the project as `files` (the text files by their path, each with its whole text) and `binary_files` (figures by path, in base64), or as one `archive` (.zip or .tar.gz, in base64), up to 24 MB, with `main` when the project has more than one main file. Files come back inside the answer as embedded resources, and every paid call says its `pages`, `cost_cents` and `credit_cents`. A project that cannot be built comes back as a tool error that names the file and the line, and costs nothing.

Streamable HTTP, one JSON answer to each request, no sessions. It speaks the protocol of 2026-07-28 and the handshakes of 2025-11-25, 2025-06-18 and 2025-03-26. Project calls count toward the same thirty every ten minutes as the API.

### For software

- [/openapi.json](https://intex.academy/openapi.json): every service in one OpenAPI 3.1 document.

- [/.well-known/api-catalog](https://intex.academy/.well-known/api-catalog): the catalog, in the standard place for finding a site's APIs.

- [/llms.txt](https://intex.academy/llms.txt) and [/llms-full.txt](https://intex.academy/llms-full.txt): the short version, and every page in one file.

- This page as Markdown: [/api.md](https://intex.academy/api.md).

### What we measured, *not what we hope.*

In our last measured run of real course documents, 234,545 of 235,724 formulas became real mathematics with a spoken form, and the report names any that did not. Of the 86 documents that built, 80 passed veraPDF's PDF/UA-2 check as they were delivered.

Fixing a PDF by hand takes a person hours, and it is priced that way. Here no person is in the loop, so a page costs cents. Where a person is needed, the report says where. If you want that person to be one of ours, reading every page before it reaches your students, [Intex for universities](https://intex.university/) does it at five dollars a page.
