BASE

Marker

Marker

AI / ML development tool · Free + paid

A tool for converting PDFs and other documents into Markdown and JSON: it preserves structure and tables for further processing.

Also known as: vikparuchuri/marker; pdf-to-markdown; pdf-to-json; marker-pdf

Resource illustration: Marker

Open resource ↗

What you can use for free

Local code; weights are free for research, personal use, and startups below $5 million in funding/revenue under the model terms.

Paid features and costs

Larger commercial users require a weights license; managed Datalab and hybrid LLM APIs are paid for separately.

Access and limitations

Local code; weights are free for research, personal use, and startups below $5 million in funding/revenue under the model terms. Larger commercial users require a weights license; managed Datalab and hybrid LLM APIs are paid for separately.

Use cases

  • Convert documents to structured Markdown
  • Obtain Markdown/JSON and check heading/table preservation

Example workflow

A possible workflow; this is not a report of hands-on testing.

Convert documents to structured Markdown.

Before you start

  • Test documents or tasks, and a quality criterion.
  • Models, a runtime, and a computing budget.

Steps

  1. Choose a supported document and applicable model terms.
  2. Obtain Markdown/JSON and check heading/table preservation.
  3. Connect the workflow to the application and make errors observable.

Check your result

  • Check the result against reference examples and invalid inputs.
  • Inference costs, model rights, and data handling have been established.

Choosing Marker

Convert documents to structured Markdown

Choose this when

  • Convert documents to structured Markdown
  • Obtain Markdown/JSON and check heading/table preservation

Requirements

  • Python 3.10+ and PyTorch; an existing Surya inference server can be specified through SURYA_INFERENCE_URL.

Things to consider

  • Costs and limits of free use: Larger commercial users require a weights license; managed Datalab and hybrid LLM APIs are paid for separately.
  • Terms of use: Code Apache-2.0; weights use modified AI Pubs OpenRAIL-M with a separate commercial threshold.
  • NVIDIA autoserve uses vLLM through Docker and NVIDIA Container Toolkit; the CPU/Apple path uses llama-server.
  • The code license and model weight permissions differ.

Frequently asked questions

What can you use for free in Marker?

Local code; weights are free for research, personal use, and startups below $5 million in funding/revenue under the model terms.

What additional costs might arise with Marker?

Larger commercial users require a weights license; managed Datalab and hybrid LLM APIs are paid for separately.

What terms of use matter for Marker?

Code Apache-2.0; weights use modified AI Pubs OpenRAIL-M with a separate commercial threshold.

How do you get started with Marker?

Choose a supported document and applicable model terms. Obtain Markdown/JSON and check heading/table preservation. Connect the workflow to the application and make errors observable.

How should I choose Marker modes for digital PDFs, scans, and additional formats?

Balanced targets GPUs and uses Surya VLM for layout/OCR/math. Fast is the default on CPU/MPS and extracts PDF text, invoking the VLM only when needed. --disable_ocr disables all VLM calls, including math, leaving the text layer. Non-PDF formats require marker-pdf[full]; LLM hybrid mode is connected separately.

License

Code Apache-2.0; weights use modified AI Pubs OpenRAIL-M with a separate commercial threshold.

Apache 2.0 — permissive license with patent terms

You can use and modify the code in commercial and closed-source projects. When distributing it, retain the license and relevant notices, identify modified files, and include NOTICE if provided. Authors grant a limited patent license for their contributions; it does not grant permission to use trademarks.

License terms

Custom license — this product's terms apply

The license name does not imply standard MIT or GPL rights. Its own text determines permission to modify, work commercially, distribute, and use outputs. Follow the use case stated for the product above and the primary source for its terms.

Technologies and topics

  • Marker
  • ml
  • Development

Sources

Other resources