Replicate has launched two new document parsing models—Datalab Marker and Datalab OCR—that allow users to extract text from PDFs, DOCX, PPTX, and images with high accuracy and speed. These models are designed for both general text extraction and structured data retrieval, making them valuable tools for automation, research, and business workflows.
What Happened
On October 21, 2025, Replicate announced the availability of Datalab Marker and OCR on its platform. These models are built on open-source foundations—Marker draws from the popular Marker project (with 29k GitHub stars), and OCR is based on the Surya model (19k stars). The models are now accessible via the Replicate API, enabling developers and researchers to integrate them into applications without needing to build custom document parsing systems from scratch.
Key Facts
- Datalab Marker converts documents into structured formats like Markdown or JSON, preserving layout elements such as tables, math expressions, and code blocks.
- OCR detects text in 90 languages and returns reading order and table grids, enabling accurate layout reconstruction from images.
- Marker supports structured extraction using JSON schemas—allowing users to pull specific fields like invoice numbers or dates from forms.
- Performance benchmarks show Marker outperforms GPT-4o, Deepseek OCR, and Mistral OCR in converting PDFs to markdown while preserving structural integrity.
- Processing speed is impressive: Marker handles a single page in about 0.18 seconds and can process up to 120 pages per second in batch mode.
- OCR costs $2 per 1,000 pages; Marker costs $4 per 1,000 pages in fast or balanced modes, rising to $6 per 1,000 pages when using structured extraction with a schema.
How It Works
Datalab Marker operates by analyzing the structure of a document page and converting it into a machine-readable format. When a user uploads a file—such as a PDF or image—the model parses the content and outputs either plain Markdown or structured JSON, depending on the input configuration.
For example, a user can specify a JSON schema to extract only key fields from an invoice, such as vendor name, invoice number, date, and total amount. The model then identifies those elements within the document and returns them in a structured format, reducing noise and enabling integration with databases or workflows.
OCR, on the other hand, focuses on detecting text in images and documents. It uses visual layout analysis to determine where text appears, how it is arranged, and whether it is part of a table or header. The output includes both the extracted text and a visual representation—when the visualize parameter is enabled—showing red polygons around detected text regions.
Both models leverage advanced vision and natural language processing techniques to maintain fidelity to the original document structure. This includes handling complex layouts such as multi-column text, headers, footers, and embedded images or mathematical expressions.
Why It Matters
Document parsing is a foundational task in automation, data science, and business operations. Traditionally, tools like Tesseract have been used for OCR, but they often struggle with layout complexity, language diversity, and accuracy in real-world documents.
Datalab Marker and OCR address these limitations. By outperforming established models—including GPT-4o and Deepseek OCR—on the olmOCR-Bench benchmark, they offer a more reliable and faster alternative. This improvement is especially significant in fields like finance, legal, and healthcare, where precision in data extraction is critical.
For developers, these models provide a plug-and-play solution to extract structured data from unstructured documents. They can be used to automate invoice processing, extract research papers from scanned archives, or convert legacy documents into searchable databases.
Moreover, the ability to return page-level metadata—such as page number, size, and layout—enables deeper document analysis and indexing, which is essential for digital archiving and retrieval systems.

Limitations and Open Questions
While the models show strong performance, several limitations remain. First, they are evaluated on a benchmark of 1,403 PDFs with 7,010 test cases—representing a specific set of document types and layouts. Real-world use cases involving handwritten text, poor image quality, or non-standard fonts may still present challenges.
Second, the pricing model is based on page count, which may not scale efficiently for very large document collections. Additionally, structured extraction requires a well-defined schema, which may not always be available or practical for unstructured content.
Third, while the models support 90 languages, performance may vary across languages and scripts, especially those with complex writing systems such as Devanagari or Arabic. There is no public data on how these models perform on low-resource or rare languages.
Finally, the models are not yet designed for real-time, continuous processing in production environments. Latency and throughput under high load remain unverified in large-scale deployments.
What to Watch Next
As these models become more widely adopted, several developments are likely. First, integration with workflow automation platforms—such as Zapier, Make, or Airtable—could enable seamless document processing pipelines.
Second, the availability of open-source versions of the underlying models (Marker and Surya) may allow greater customization and community-driven improvements. This would expand accessibility beyond API-based access.
Third, future versions may support more advanced features such as handwriting recognition, form field detection, or dynamic schema generation—reducing the need for manual schema design.
For those interested in how to prompt AI models to extract information from images, a guide on prompting Nano Banana Pro offers insights into logical reasoning in image-based AI tasks. Similarly, Seedance 2.0 demonstrates how multimodal AI is evolving beyond text and images into video, suggesting broader trends in AI-driven content processing.
For a deeper understanding of how these models compare to others, refer to the original source: Extract text from documents and images with Datalab Marker and OCR – Replicate blog.
Sources & further reading
Featured image: The Am386 CPU is a 100%-compatible clone of the Intel 80386 design released by AMD;
AMD 80386SX @ 25 MHz High Performance, Low power, Embedded Microprocessor.
Manufacturerː Advanced Micro Devices by Mister rf, CC BY-SA 4.0, via Wikimedia Commons. Image source · License

