Parse converts a document to structured Markdown without storing or indexing it. The call is synchronous — send a file, get Markdown back immediately. Use Parse when you want the text content of a document for your own purposes: feeding it to an LLM, storing it in your database, displaying it in a UI, or pre-processing it before ingestion. Nothing is saved on LightOn’s side.Documentation Index
Fetch the complete documentation index at: https://developers.lighton.ai/llms.txt
Use this file to discover all available pages before exploring further.
Parse a document
file (multipart) and document (JSON URL) are mutually exclusive — pass one or the other.
What comes back
The response includes the Markdown content along with metadata about the original document:result.content field is the full document as Markdown. Headings, lists, tables, and code blocks are preserved where the source document supports them.
Supported formats and limits
Formats:.pdf, .png, .jpg, .jpeg, .pptx, .ppt, .odp, .docx, .odt, .doc, .html
Sync limits: 20 MB per file · 15 pages per request
For longer documents, split into chunks before calling Parse, or ingest the full document with Files and use Search to retrieve relevant sections.
Common errors
| Status | Cause |
|---|---|
400 | Missing document, unsupported format, or page limit exceeded |
401 | Missing or invalid API key |
413 | File exceeds the 20 MB size limit |
429 | Rate limit exceeded |
503 | Parsing backend is overloaded — retry later |