What Are Marker and Chandra OCR? Converting PDFs to Markdown, OCR, Code and Model Licenses, Commercial Use Thresholds
You type `marker_single report.pdf` in the terminal; Marker reads the PDF's page layout, tables and formulas and gives you the document as Markdown (or JSON, HTML, chunks), running OCR on scanned pages. Chandra OCR 2 is an OCR model from the same company (Datalab) that also reads handwriting, forms and complex tables: `chandra input.pdf ./output`. Both run on your computer, and you pass the output to AI, a knowledge base or your own program. Datalab also offers a paid hosted API that needs no setup.
- What it does
- Converts PDFs and scanned documents to Markdown/JSON
- Type
- Python package + command line (Marker) and an OCR model (Chandra)
- Maker
- Datalab
- Privacy
- Runs locally; --use_llm sends the page to the language model you pick
- Watch out
- Model weights have revenue and funding thresholds (Chandra USD 2M, Marker USD 5M)
- Latest release
- Marker 2.2.0 (November 12, 2026) · Chandra 0.3.0 (November 16, 2026)
- Price
- Code is free; weights are free below the threshold
What are Marker and Chandra, and what do they do?
Getting text out of a PDF is easy; the hard part is preserving the reading order on a multi-column page, a table's cells, a formula and the ticked box on a form. If that structure is lost, AI matches the amount on an invoice to the wrong line. Datalab's two tools exist for this. Marker is a conversion pipeline that processes the document page by page: it reads the PDF's embedded text, works out the layout and reading order, turns to a model when needed, and produces Markdown, JSON, chunks or HTML. Chandra OCR 2 is an OCR model on its own: it reads an image or a PDF page and writes HTML, Markdown or JSON with layout information; the README highlights handwriting, forms and complex tables.
- The two aren't tied together: Marker 2.x uses Surya 2.5, not Chandra, as its vision-language model. You install Chandra separately; according to the README, Datalab's hosted API uses Chandra and other models.
- Who it's for: document-heavy businesses that want scanned contracts, deeds, forms and handwritten notes to be searchable in an archive; developers building a knowledge base (RAG) from documents; teams processing academic papers and formula-heavy sources.
- Who it's not for: someone who doesn't use the terminal (Datalab's public playground and hosted API are a no-install route); and organizations above the license threshold or building a product that competes with Datalab (see the price and license section).
Sources: marker README (Marker, Try Datalab's Managed Platform, How it works), chandra README (Features), November 23, 2026.
How do Marker and Chandra work?
contract.pdfInputA PDF, image or office file; a file or folder.- Clean embedded text is read on the processor
- Equations, tables and scans go to a model
› --output_format jsonMarkdown, JSON, HTML, chunks.Sources: marker README (How it works, Usage, Inference backend prerequisites), chandra README (Features), November 23, 2026.
Which files do they read, and what do they output?
- Marker inputs: PDFs and images; PPTX, DOCX, XLSX, HTML and EPUB need the extra dependencies from
pip install marker-pdf[full]. There's no language limit; without OCR it works in any language. - Marker outputs (`--output_format`): markdown, json, html, chunks. In Markdown, images are saved to a folder, tables are formatted, equations become LaTeX inside
$$, and code is fenced. JSON is a page-and-block tree; chunks flattens the same information into a list (for RAG). - Chandra outputs: for each file, an
.md, an.html, a_metadata.jsonand a_chunks.jsonthat carries the layout blocks with bounding boxes; extracted images are written to the same folder.
Sources: marker README (Marker, Installation, Output Formats), chandra README (CLI, Output Structure), November 23, 2026.
How do you install Marker and Chandra?
No account needed. Marker needs Python 3.10 or newer and PyTorch; Chandra also needs Python 3.10+. In the commands, the latest releases as of November 23, 2026 (Marker 2.2.0, Chandra 0.3.0) are pinned; the READMEs give no version.
› pip install marker-pdf==2.2.0› pip install "marker-pdf[full]==2.2.0"The README's commands have no version: pip install marker-pdf and pip install marker-pdf[full]. The balanced and vllm modes need an inference server: Docker and the NVIDIA Container Toolkit on an NVIDIA graphics card, llama.cpp on a processor or Apple Silicon (brew install llama.cpp, or llama-server from the llama.cpp releases page). Marker starts the server itself on first use.
› pip install chandra-ocr==0.3.0› pip install "chandra-ocr[hf]==0.3.0"› chandra_vllmchandra_vllm starts a Docker or Podman container and binds it to 127.0.0.1:8000; it picks settings by graphics card model (the README lists cards such as H100, H200, B200, GH200, A100, L40S and RTX 4090/5090). You can also start your own vLLM server with the datalab-to/chandra-ocr-2 model. On the Hugging Face route, the README also recommends installing flash attention.
Datalab's public playground (datalab.to/playground) and its hosted API need no install; the document goes to Datalab's servers (see the data section). The READMEs also offer a local viewer: marker_gui --port 8000 for Marker and chandra_app --host 127.0.0.1 --port 8000 for Chandra.
Sources: marker README (Installation, Inference backend prerequisites, Interactive Viewer App), chandra README (Installation, vLLM Server), PyPI marker-pdf 2.2.0 and chandra-ocr 0.3.0. Checked on November 23, 2026.
How do you use them? What you type, what you get
The commands come from the READMEs' examples; the outputs are described only as far as the docs describe them.
› marker_single /path/report.pdf --output_dir ./outputWhat you get: the PDF's Markdown version and the extracted images in the output folder. The default mode is picked by device: balanced on a graphics card, fast on a processor or Apple Silicon. To pick pages use --page_range "0,5-10,20" (the README's example includes page 0), for JSON use --output_format json, and to print to the terminal use --stdout.
› marker ./documents --output_dir ./output --mode fastWhat you get: a result in the output folder for each document. --workers sets the number of workers, --skip_existing resumes an interrupted batch run, and --disable_ocr reads only the text layer without calling any model.
› marker_single file.pdf --converter_cls marker.converters.table.TableConverter --output_format jsonWhat you get: the document's table blocks as JSON with their page positions; in Markdown or HTML output, tables come as <table> blocks.
› chandra input.pdf ./output
chandra input.pdf --stdout› chandra ./documents ./output --method hf --recursiveWhat you get: a subfolder named after each file: the .md, the .html, the metadata and layout-blocks JSON, and the extracted images. --page-range "1-5,7" selects pages, and --stdout prints only the Markdown to the terminal. The README says page headers and footers are excluded by default.
› from chandra import InferenceManager, BatchInputItem, load_file
images = load_file("document.pdf", {"page_range": "1-3"})
manager = InferenceManager(method="vllm") # or "hf"
results = manager.generate([BatchInputItem(image=img, prompt_type="ocr_layout") for img in images])
print(results[0].markdown)› from marker.converters.pdf import PdfConverter
from marker.models import create_model_dict
from marker.output import text_from_rendered
converter = PdfConverter(artifact_dict=create_model_dict())
rendered = converter("FILEPATH")
text, _, images = text_from_rendered(rendered)What you get: the document's Markdown text and images. The --use_llm flag brings in a language model: the README says it merges tables across pages and fixes inline math and forms. The default service is Gemini, and Vertex, Ollama (local), Claude, OpenAI-compatible endpoints, Azure OpenAI and OpenRouter can be chosen; details are in the data section.
Sources: marker README (Usage, Convert a single file, Convert multiple files, Extract tables, Output Formats, Hybrid Mode), chandra README (Usage), November 23, 2026.
Which mode and model? The differences
Neither is a chat model; both use task-specific models to read documents. In Marker, the choice is made by mode: the mode sets the speed, the accuracy and the hardware needed. In its fast and no_ocr modes, Marker runs on the processor with Indra ONNX models of about 18 MB; in balanced and vllm modes, it has the 0.69-billion-parameter Surya 2.5 vision-language model (a model that sees an image and writes text, a VLM) read some pages or all of them. Chandra OCR 2 is a separate, larger VLM.
| Mode | Hardware | Pages/s (the maker's measurement) | What for (README) |
|---|---|---|---|
| no_ocr | Processor only | 57.0 | Bulk born-digital PDFs at top speed; no OCR |
| fast | Processor / MPS (default) | 23.6 | Laptops, CI, GPU-less servers, quick local OCR |
| balanced | GPU + processor (GPU default) | 16.9 | Mixed production workloads: born-digital PDFs, tables, math, scans |
| vllm | GPU | 4.5 | Degraded scans, dense equations, handwriting, complex tables |
Which should you pick? Without a GPU, fast is the default; for a pile of born-digital PDFs, no_ocr is the fastest but skips scanned pages. On a GPU, balanced is the default; use vllm for the hardest pages. The README's measurements were made with OmniParseBench and olmOCR-bench on the maker's own harness and also show Docling and MinerU; this page doesn't pass that table on as a ranking.
datalab-to/chandra-ocr-2on Hugging Face; a 10.59 GB model file (bf16), 90+ languages- HTML, Markdown and JSON output; handwriting, forms with checkboxes, tables, math, figure captions
- Two inference routes: local Hugging Face or a vLLM server
- Surya 2.5: a 0.69-billion-parameter VLM; in the
balancedandvllmmodes - Indra OCR: ONNX layout and line OCR on the processor; in the
fastmode - An optional language model (
--use_llm)
Checked on November 23, 2026. Sources: marker README (Performance, Which mode should I use?, Throughput, How it works), surya README, chandra README, the Hugging Face model card and file size. The mode and model lists change with releases; the pages-per-second figures are the maker's measurements.
What hardware do they need? The real cost
Marker's fast and no_ocr modes run in-process on the processor (or Apple Silicon MPS) and need no graphics card or server. balanced and vllm need Docker + the NVIDIA Container Toolkit on NVIDIA, and llama.cpp on other devices.
The README gives no minimum memory or VRAM. The model file is 10.59 GB. The maker's measurement: 1.44 pages per second on a single NVIDIA H100 80 GB with vLLM at 96 concurrent requests; the README estimates about 2 pages per second in real use. What happens on a consumer card isn't in the docs: try the Hugging Face route on a small folder first.
The real cost: the code is free; the computer, electricity and (if you run it on a server) the rental fee are yours. If you use --use_llm, the chosen language-model service's fee comes on top. No server amount is given: it varies by provider. You handle updates and model downloads yourself; for commercial use, the model license thresholds also apply (next section).
Sources: marker README (Inference backend prerequisites, Throughput), chandra README (Throughput, vLLM Server), the Hugging Face file list, November 23, 2026.
Is it free? Code license, model license and commercial use
There are two separate licenses, and they shouldn't be confused. The code is Apache 2.0: free to use, commercial use included. The model weights (Marker's Surya model and Chandra) are under a modified AI Pubs OpenRAIL-M license and their use has conditions. That's why the weights aren't called "open source": the weights can be downloaded by anyone, but free commercial use depends on a revenue and funding threshold and on a no-competition clause. The Indra OCR weights that Marker's fast mode uses state a USD 20 million threshold on their own page; which one applies isn't clear in the official sources, which is why Indra isn't in the table.
| Marker (Surya 2.5) | Chandra OCR 2 | |
|---|---|---|
| Code | Apache 2.0 | Apache 2.0 |
| Weights license | Modified AI Pubs OpenRAIL-M | Modified AI Pubs OpenRAIL-M |
| Revenue threshold (prior year, gross) | USD 5,000,000 | USD 2,000,000 |
| Funding threshold (total equity + debt) | USD 5,000,000 | USD 2,000,000 |
| No-competition clause | Yes | Yes |
- Using, modifying and distributing the code, commercial use included (Apache 2.0)
- Using the model weights for personal use and research, regardless of the revenue and funding thresholds (the no-competition clause excepted)
- Using the model weights commercially if both your prior-year gross revenue and the total funding you've raised are under the threshold (Chandra USD 2M, Marker USD 5M)
- If you, your employer or the entity you're affiliated with generated more gross revenue than the threshold in the prior year or raised more equity or debt funding than the threshold, using the weights and the model's output beyond personal and research use without a commercial license
- If you offer a product or service that competes with a product or service offered by Datalab or its affiliates, using the weights and the model's output (the license text states no personal/research exception for this clause)
- Skipping the license's additional terms: attribution (a link to the model, a copy of the license, a notice of changes), passing the use restrictions on to downstream users by contract, and applying the same license to the model's derivatives (including training another model through distillation or with synthetic data the model generated)
The license text also treats offering the model to others as a service through API or web access as "distribution", and leaves Datalab the right to restrict use remotely, update the model and change the output as a result of updates (sections 4 and 9). If you're above the threshold or will do commercial self-hosting: the Chandra README says "commercial self-hosting requires a license"; Datalab's pricing page covers commercial and on-prem licenses. This is not legal advice.
- The full hosted API and SDK
- $10 at signup and $10 more with a card (work email; $5+$5 on a personal one)
- 25 requests per minute, concurrency 25
- SOC 2 Type II report, community support
- DPA and BAA
- $25 of usage included per month
- 400 requests per minute, email support
- 1 custom pipeline, admin MFA enforcement
- DPA on the annual plan
- BAA, SSO
- $400 of usage included per month
- BAA and DPA
- Email and Slack support, 3 custom pipelines
- SSO
- SSO, MSA/SLA, volume discounts
- Running in your own VPC or fully air-gapped
Hosted API rates: per 1,000 pages by processor, Convert lite $0.375, fast $1, balanced $3, accurate $7.50. The rates on the page include the 25% discount for the "share data for model training" option; if you don't want to share, you turn this off in your account's data retention settings and pay the higher rate. There's also a 33% first-year discount program for startups under 3 years old that have raised less than $15M, have under $5M in annual revenue and where document processing is core to the product. The READMEs say "about 5,000 free pages per month", while the pricing page lists a one-time credit; the two don't match. Turkish lira pricing and paying by card from Turkey are not clear in the official sources.
Sources: the marker and chandra MODEL_LICENSE (raw text, Attachment A and sections 1, 4, 6–9), LICENSE (Apache 2.0), README (Commercial usage), datalab.to/pricing (plans, rates, FAQ "Who needs to pay for the models?"), November 23, 2026. This is not legal advice.
Official pricing page last checked on .
Do they work with Turkish documents?
| Interface and docsNo | The commands and docs are in English. |
|---|---|
| Turkish PDFs with a text layerYes | The README says Marker works in any language when OCR isn't needed; the no_ocr mode reads only the text layer. |
| Scanned Turkish documents: Chandra OCR 2Partly | The README's multilingual table has a Turkish row: 84.1% for Chandra 2 (the maker's own measurement, a 43-language table; the average is 77.8%). |
| Scanned Turkish documents: MarkerPartly | The balanced and vllm modes use Surya 2.5; its Turkish score is 82.1% (a 91-language internal measurement). The README of Indra OCR in the fast mode lists Turkish among the Latin languages with many diacritics, where a close diacritic can be written instead of the right one. |
What to do: with a scanned Turkish document, try a single page first and compare the text with the original; if accents get mixed up in the output, try the vllm mode on a GPU, or Chandra.
Sources: chandra README (Multilingual benchmark table), surya README and static/docs/multilingual.md, the indra-ocr PyPI page (Limitations), marker README (Usage), November 23, 2026. The scores are the maker's own measurements.
Is it safe? Where do my documents go?
Marker and Chandra run locally; the inference server also starts on your own machine (127.0.0.1:8000 for Chandra). Model weights are downloaded on first use.
With this flag on, document content is sent to the language-model service you pick: the Gemini developer API by default, and also Vertex, Claude, OpenAI-compatible endpoints, Azure OpenAI and OpenRouter. An Ollama model on your own machine keeps the document there (if you point the Ollama base address at a remote server, it leaves). The service's own privacy terms apply.
The document is processed on Datalab's servers. The README says zero data retention is opt-in and lists SOC 2 Type II and custom BAAs; on the pricing page, the SOC 2 Type II report is on all plans and a BAA only on Team and Enterprise. The data-sharing-for-model-training option gives a 25% price discount; while sharing is on, your documents are used by Datalab for model training, so keep it off for confidential documents. The pricing page shows the discounted rates.
Scanned documents can contain identity, health or customer information; for those files, don't use --use_llm with a cloud service or the hosted API, and run locally instead.
Sources: marker README (LLM Services, Try Datalab's Managed Platform), chandra README (vLLM Server), datalab.to/pricing, November 23, 2026. This is not a security audit.
Common problems and fixes
| What happens | What to do |
|---|---|
| Garbled text in the output | Force the pages through OCR again with --force_ocr. |
| Out of memory during batch conversion | Reduce the worker count with --workers 1; split long PDFs into parts. |
| Accuracy falls short | Add --use_llm (you need to configure a language-model service); on hard pages, together with --force_ocr. |
| Nested tables and forms don't come out right | The README lists this as a known limitation and says --use_llm with --force_ocr mostly solves it; if not, the hosted API or Chandra. |
The server doesn't start in balanced or vllm mode | Docker and the NVIDIA Container Toolkit must be installed on NVIDIA, and llama-server on other devices. If you already have a server, point to it with SURYA_INFERENCE_URL=http://host:port/v1. |
| The server restarts on every command | --keep_server or SURYA_INFERENCE_KEEP_ALIVE keeps the server running between commands. |
Sources: marker README (Troubleshooting, Limitations, Usage), surya README, November 23, 2026.
How do you uninstall them?
› pip uninstall marker-pdf chandra-ocrDownloaded model weights aren't removed by pip, and their locations aren't stated in the READMEs; look at the Hugging Face cache folder and (if you used vLLM) the Docker or Podman images. To shut down a running inference server, find the container with docker ps and stop it.
Sources: marker and chandra README (Installation, vLLM Server), November 23, 2026.
Marker, Docling or MinerU?
| Marker + Chandra | Docling | MinerU | |
|---|---|---|---|
| Approach | A four-mode pipeline (processor to GPU); a separate OCR model, Chandra | A standard pipeline and an optional VLM pipeline | Four tiers (flash, basic, standard, advanced) |
| Code license | Apache 2.0 | MIT | Apache 2.0 + additional terms |
| Model license | OpenRAIL-M (revenue/funding thresholds, no competition) | Each model's own license | Within the license (no separate weights license is stated) |
| OCR language | Chandra 90+ languages; Marker's VLM is multilingual | Chosen with --ocr-lang | No language list in the docs |
| Hosted service | Datalab API (paid) | None (docling-serve on your own server) | mineru.net (price not in the docs) |
The table comes from the three projects' official docs (November 23, 2026) and the Docling and MinerU guides. This is not a ranking.
Frequently asked questions
How do you convert a PDF to Markdown with Marker, and does it need a GPU?
Install it with pip install marker-pdf and type marker_single file.pdf; Markdown is written to the output folder. No GPU is needed: on a processor or Apple Silicon the default fast mode runs, and balanced on a graphics card. The balanced and vllm modes need Docker on NVIDIA and llama.cpp on other devices.
What is Chandra OCR 2, and how does it relate to Marker?
Chandra is Datalab's OCR model that turns an image or PDF page into HTML, Markdown or JSON with layout information, highlighting handwriting, forms and complex tables. Marker 2.x uses Surya 2.5, not Chandra, as its vision-language model; Chandra is installed separately: pip install chandra-ocr, chandra_vllm, chandra input.pdf ./output.
Are Marker and Chandra free, and can they be used commercially?
The code is Apache 2.0, free including commercial use. The model weights are free for personal use and research; for commercial use, both prior-year gross revenue and total funding must be under the threshold: USD 2 million for Chandra and USD 5 million for Marker. If you offer a product that competes with Datalab's products, you can't use the weights. Above the threshold, a commercial license is required. The Chandra README also states that commercial self-hosting requires a license.
Are Marker and Chandra open source?
The code is licensed under Apache 2.0. The model weights can be downloaded but come under a modified OpenRAIL-M license that includes revenue and funding thresholds and a no-competition clause. That's why the weights aren't called "open source".
Marker or Docling?
Both convert a PDF to Markdown and JSON with its layout. Marker scales from the processor to a graphics card with four modes and, together with Chandra, highlights reading handwriting and forms; the code is Apache 2.0 and the weights have thresholds. Docling comes with MIT-licensed code and models under their own licenses. License thresholds and your OCR-language needs may decide.
Do Marker and Chandra work on scanned Turkish documents?
The README's multilingual measurement includes Turkish: 84.1% for Chandra 2 and 82.1% for Surya 2.5 (the maker's own measurements). The README of the Indra OCR in Marker's fast mode says that in Turkish, accents can be confused with similar ones. Try a single page on your first document and compare the text with the original.
Is the Datalab API free, and how much does it cost?
The free plan gives a one-time credit: $10 at signup and $10 more with a card (work email). After that, per 1,000 pages, Convert fast is $1, balanced $3 and accurate $7.50; the plans are Launch at $25 and Team at $400 per month. The "5,000 pages per month" wording in the READMEs doesn't match the pricing page. Turkish lira pricing isn't in the official sources.
Does Marker send my documents out?
Not by default; Marker and Chandra run locally. If --use_llm is on, page content goes to the language-model service you pick (Gemini by default); an Ollama model on your own machine keeps it in (unless its base address is remote). On Datalab's hosted API and playground, the document is uploaded to Datalab's servers.
Related guides
Sources
- Marker README
- Chandra README
- Marker model license (MODEL_LICENSE)
- Chandra model license (MODEL_LICENSE)
- Surya README
- Hugging Face: Chandra OCR 2
- Datalab pricing and plans
- Datalab documentation
- PyPI: marker-pdf
- PyPI: chandra-ocr
Not clear in the official sources: Minimum memory and video memory for Marker and Chandra: the READMEs don't state it · the real accuracy of Marker's fast and balanced modes on scanned Turkish documents: the README doesn't mention Turkish separately · the Datalab API's monthly free page quota: the READMEs say about 5,000 pages per month, the pricing page lists a one-time credit · Turkish lira pricing and paying by card from Turkey: not in the official sources · rights over the model's output: license section 6 says the licensor claims no rights in the output, while section 8 says the same license applies to the output; read the license text or ask Datalab before using it in a commercial product.





