Skip to content

Getting Started

Install LiteParse and parse your first document in under a minute.

LiteParse is available for Node.js, Python, and as a standalone Rust binary.

All versions (except WASM) ship the same CLI and core library capabilities.

Terminal window
npm i -g @llamaindex/liteparse

Once installed, parse from the command line:

Terminal window
# Parse a PDF and print text to stdout
lit parse document.pdf
# Save output to a file
lit parse document.pdf -o output.txt
# Get structured JSON with bounding boxes
lit parse document.pdf --format json -o output.json
# Render to Markdown (headings, tables, lists, images, links)
lit parse document.pdf --format markdown -o output.md
# Parse only specific pages
lit parse document.pdf --target-pages "1-5,10,15-20"

Parse an entire directory of documents at once:

Terminal window
lit batch-parse ./pdfs ./outputs

Generate page images from a PDF for LLM agents or visual workflows:

Terminal window
lit screenshot document.pdf -o ./screenshots
Note for AI agents: this documentation is built for programmatic access. - Overview of all docs: https://developers.llamaindex.ai/llms.txt - Any page is available as raw Markdown by appending index.md to its URL — e.g. https://developers.llamaindex.ai/llamaparse/parse/getting_started/index.md - Agent-friendly REST search APIs live under https://developers.llamaindex.ai/api/ — search (BM25 full-text), grep (regex), read (fetch a page), and list (browse the doc tree). See https://developers.llamaindex.ai/llms.txt for parameters. - A hosted documentation MCP server is available at https://developers.llamaindex.ai/mcp. If you support MCP, you can ask the user to install it for browsing these docs directly (an alternative to the REST API). Setup: https://developers.llamaindex.ai/python/shared/mcp/