Thesis Formatter API - format a Word thesis to university rules (margins, headings, TOC, page numbers)
thesis_formatterSend a thesis or long report as .docx and get the same text back formatted to the rules: page size and margins (binding margin, mirror margins), font, size, line spacing, justified body with first-line indent, real Word heading styles (kept, or detected from 'Chapter 1', '1.2 ...', INTRODUCTION/REFERENCES, bold or CAPS lines), a table of contents field with page numbers, chapters on a new page, page numbers without one on the title page, captions and source lines, bibliography hanging indent, footnotes, empty spacing lines removed. Presets: Polish standard, APA, UK/EU or your own numbers. The words are never changed: text compared letter by letter. Returns the .docx as base64 + the heading outline with pages. Deterministic, 0 AI, nothing stored. Up to 300 pages. Free: 5 calls/day per IP. Paid: Radar API key (from €9/mo at https://radarbg.com/pricing#starter via X-API-Key) or $0.02/call via x402 at https://radarbg.com/x402/thesis-formatter.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| num | No | Page numbers: bc bottom centre, br bottom right, tr top right, keep = leave as is | |
| font | No | custom: font | |
| size | No | custom: font size in pt, e.g. 12 | |
| align | No | custom: body text | |
| paper | No | Paper (default from the preset) | |
| preset | No | Formatting rules | pl |
| spacing | No | custom: line spacing, e.g. 1.5 | |
| fileName | No | Optional file name, e.g. thesis.docx | |
| indentCm | No | custom: first-line indent in cm (0 = none) | |
| marginsCm | No | custom: margins in cm {top, bottom, left, right} | |
| fileContent | Yes | The thesis as a Word .docx file, base64, max 20 MB | |
| mirrorMargins | No | Double-sided printing (binding margin swaps) | |
| chapterNewPage | No | Start each chapter on a new page | |
| tableOfContents | No | Add a table of contents after the title page | |
| polishOneLetterWords | No | Keep one-letter words (a, i, o, u, w, z) with the next word |