docling-api: Scalable Document to Markdown Conversion Server
This repository profile is provided by osrepos.com, an open source repository discovery platform.

Summary
docling-api is a robust and scalable backend server designed for converting a wide array of document formats, including PDFs, DOCX, and images, into Markdown. Built with FastAPI, Celery, and Redis, it supports both CPU and GPU processing, making it ideal for large-scale workflows requiring efficient text, table, and image extraction, along with OCR capabilities. This service offers flexible synchronous and asynchronous API endpoints for single and batch document conversions.
Repository Information
Topics
Click on any tag to explore related repositories
Use at your own risk
OSRepos shares public repositories for knowledge and discovery only. Any installation, execution, configuration, or use of code from these repositories is the user's own responsibility. Always review the repository, source code, dependencies, licenses, and security implications before running or installing anything. OSRepos is not responsible for issues, damages, or losses resulting from third-party repositories.
Introduction
docling-api is an advanced backend server that provides a highly efficient and scalable solution for converting diverse document formats into Markdown. Leveraging IBM's powerful Docling parser, alongside FastAPI, Celery, and Redis, this service excels at transforming PDFs, DOCX, PPTX, HTML, images, and more into structured Markdown. It supports both CPU and GPU processing modes, with GPU recommended for optimal performance in production, making it perfect for complex, large-scale document processing tasks. The project also highlights its superior parsing capabilities compared to other libraries through visual comparisons.
Installation
Setting up docling-api is straightforward, whether you prefer a local environment or a Dockerized deployment.
Local Setup (Prerequisites: Python 3.8+, Poetry, Redis server)
-
Install Poetry:
curl -sSL https://install.python-poetry.org | python3 - -
Clone and Setup Project:
git clone https://github.com/drmingler/docling-api.git cd docling-api poetry install -
Configure Environment:
Create a.envfile in the project root:REDIS_HOST=redis://localhost:6379/0 ENV=development -
Start Redis Server:
- For MacOS:
brew install redis brew services start redis - For Ubuntu/Debian:
sudo apt-get install redis-server sudo service redis-server start
- For MacOS:
-
Start Application Components:
- Start FastAPI server:
poetry run uvicorn main:app --reload --port 8080 - Start Celery worker (new terminal):
poetry run celery -A worker.celery_config worker --pool=solo -n worker_primary --loglevel=info - Start Flower dashboard (optional, new terminal):
poetry run celery -A worker.celery_config flower --port=5555
- Start FastAPI server:
Docker Setup
-
Clone the repository:
git clone https://github.com/drmingler/docling-api.git cd docling-api -
Create a
.envfile:REDIS_HOST=redis://redis:6379/0 ENV=production -
CPU Mode:
docker-compose -f docker-compose.cpu.yml up --build --scale celery_worker=1 -
GPU Mode (Recommended for production):
docker-compose -f docker-compose.gpu.yml up --build --scale celery_worker=3
Examples
The docling-api provides flexible API endpoints for various conversion needs.
Synchronous Conversion (Single Document):
curl -X POST "http://localhost:8080/documents/convert" \
-H "accept: application/json" \
-H "Content-Type: multipart/form-data" \
-F "document=@/path/to/document.pdf" \
-F "extract_tables_as_images=true" \
-F "image_resolution_scale=4"
Asynchronous Conversion (Single Document):
- Submit document:
curl -X POST "http://localhost:8080/conversion-jobs" \ -H "accept: application/json" \ -H "Content-Type: multipart/form-data" \ -F "document=@/path/to/document.pdf" - Check status (replace
{job_id}):curl -X GET "http://localhost:8080/conversion-jobs/{job_id}" \ -H "accept: application/json"
Batch Processing (Asynchronous):
curl -X POST "http://localhost:8080/batch-conversion-jobs" \
-H "accept: application/json" \
-H "Content-Type: multipart/form-data" \
-F "documents=@/path/to/document1.pdf" \
-F "documents=@/path/to/document2.pdf"
Why Use It
docling-api stands out as a powerful solution for document-to-Markdown conversion due to several key advantages:
- Extensive Format Support: It handles a wide range of inputs, including PDFs, DOCX, PPTX, HTML, various image formats, and more, ensuring broad applicability.
- Advanced Conversion Capabilities: Beyond basic text extraction, it offers robust table detection and extraction, image processing, and multi-language OCR, providing comprehensive content conversion.
- Scalability and Performance: Designed for large-scale workflows, it leverages Celery for distributed task processing and supports both CPU and GPU modes, with GPU acceleration significantly boosting performance for demanding tasks.
- Flexible API: With synchronous, asynchronous, and batch processing endpoints, developers can integrate the service seamlessly into diverse applications, with job tracking for long-running tasks.
- Ease of Deployment: The project provides clear instructions for both local setup and Docker deployment, simplifying integration into existing infrastructures.
- Quality Output: Visual comparisons in the repository demonstrate its superior Markdown output quality compared to other parsing libraries.
Links
- GitHub Repository: https://github.com/drmingler/docling-api
- Docling (IBM's advanced document parser): https://github.com/DS4SD/docling
Related repositories
Similar repositories that may be relevant next.

awesome-cli-coding-agents: A Curated Directory of Terminal-Native AI Tools
August 9, 2026
The `awesome-cli-coding-agents` repository offers a comprehensive, curated directory of over 100 terminal-native AI coding agents. These powerful tools operate directly within your command line, enabling autonomous code reading, editing, and execution. The list also covers various harnesses and orchestration solutions for managing these agents.

QwenPaw: Your Personal AI Assistant for Local and Cloud Deployment
August 7, 2026
QwenPaw is a powerful personal AI assistant designed for easy installation and deployment, either on your local machine or in the cloud. It supports multiple chat applications and offers highly extensible capabilities, making it a versatile tool for various AI-driven tasks. With its robust memory system and security features, QwenPaw aims to be an intuitive and private partner in your digital life.

DeepTutor: Lifelong Personalized Tutoring with AI Agents
August 7, 2026
DeepTutor is an advanced AI-powered platform designed for lifelong personalized tutoring, integrating various learning modes into a single, extensible system. It leverages large language models and multi-agent systems to offer features like interactive chat, quiz generation, and skill development. This project provides a comprehensive environment for learners and educators seeking intelligent, adaptive educational tools.

Memori: Agent-Native Memory Infrastructure for LLM Production Systems
August 6, 2026
Memori provides agent-native memory infrastructure, offering an LLM-agnostic layer that transforms agent execution and conversations into structured, persistent state. Designed for enterprise use, it seamlessly integrates with existing data infrastructure and supports various deployment environments, ensuring robust memory management for AI agents.
Source repository
Open the original repository on GitHub.
12 counted GitHub visits