Running Docling as an API service
  • Python 76.9%
  • TypeScript 19.6%
  • Makefile 2.1%
  • Dockerfile 0.7%
  • CSS 0.6%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-12-01 09:53:40 +00:00
.github feat: add settings to disable callbacks and limit them per request (#780) 2026-11-24 14:41:18 +01:00
docling_serve feat: update deps for Granite-Docling v2 and make it the default VLM preset (#802) 2026-12-01 10:41:34 +01:00
docs feat: update deps for Granite-Docling v2 and make it the default VLM preset (#802) 2026-12-01 10:41:34 +01:00
examples docs: add the example config files referenced in the configuration docs (#724) 2026-10-13 14:22:14 +02:00
img docs: Update readme to use v1 (#306) 2025-08-08 09:02:29 +02:00
scripts feat(UI): expose PDF heading-level inference (#662) 2026-08-06 16:42:52 +02:00
tests feat: update deps for Granite-Docling v2 and make it the default VLM preset (#802) 2026-12-01 10:41:34 +01:00
ui fix(ui): bump vite and source-map-js to fix security advisories (#779) 2026-11-24 12:41:38 +01:00
.dockerignore feat(ui): Build new UI capturing all the new docling-serve features (#714) 2026-09-24 15:00:29 +02:00
.env.example feat: update deps for Granite-Docling v2 and make it the default VLM preset (#802) 2026-12-01 10:41:34 +01:00
.gitignore feat(ui): Build new UI capturing all the new docling-serve features (#714) 2026-09-24 15:00:29 +02:00
.markdownlint-cli2.yaml docs: update deployment examples (#135) 2025-04-17 14:29:34 +02:00
.pre-commit-config.yaml chore: update locked deps and address eMudhra CA incident (#734) 2026-10-21 16:33:22 +02:00
.python-version fix: support python 3.13 and docling updates and switch to uv (#48) 2025-02-19 09:53:07 +01:00
CHANGELOG.md chore: bump version to 1.41.0 [skip ci] 2026-12-01 09:53:40 +00:00
CODE_OF_CONDUCT.md Add python, markdown and github action linter (#5) 2024-09-13 14:26:32 +02:00
Containerfile fix: updated pinned dependencies (#773) 2026-11-20 11:38:04 +01:00
CONTRIBUTING.md ci: adopt docling tooling (ty, prek) and add unapproved PR fast checks (#726) 2026-10-14 11:18:18 +02:00
LICENSE docling_serve 2024-09-06 22:05:58 +02:00
MAINTAINERS.md ci: add spellchecker with custom vocabulary and fix typos (#268) 2025-07-15 14:17:35 +02:00
Makefile feat(rocm): add ROCm 10.1 gfx1151 packaging and container targets (#769) 2026-12-01 09:45:36 +01:00
os-packages.txt feat: add support for ROCm 7.2 (#618) 2026-06-01 15:50:40 +02:00
pyproject.toml chore: bump version to 1.41.0 [skip ci] 2026-12-01 09:53:40 +00:00
README.md feat(rocm): add ROCm 10.1 gfx1151 packaging and container targets (#769) 2026-12-01 09:45:36 +01:00
uv.lock chore: bump version to 1.41.0 [skip ci] 2026-12-01 09:53:40 +00:00

Docling

Docling Serve

Running Docling as an API service.

📚 Docling Serve documentation

Note

Migration to the v1 API. Docling Serve now has a stable v1 API. Read more on the migration to v1.

Getting started

Install the docling-serve package and run the server.

# Using the python package
pip install docling-serve
docling-serve run --enable-ui

# Using container images, e.g. with Podman
podman run -p 5001:5001 -e DOCLING_SERVE_ENABLE_UI=1 quay.io/docling-project/docling-serve

The server is available at

API documentation

Try it out with a simple conversion:

curl -X 'POST' \
  'http://localhost:5001/v1/convert/source' \
  -H 'accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
    "sources": [{"kind": "http", "url": "https://arxiv.org/pdf/2501.17887"}]
  }'

Container Images

The following container images are available for running Docling Serve with different hardware and PyTorch configurations:

📦 Distributed Images

Image Description Architectures Size
ghcr.io/docling-project/docling-serve
quay.io/docling-project/docling-serve
Base image with all packages installed from the official PyPI index. linux/amd64, linux/arm64 4.4 GB (arm64)
8.7 GB (amd64)
ghcr.io/docling-project/docling-serve-cpu
quay.io/docling-project/docling-serve-cpu
CPU-only variant, using torch from the PyTorch CPU index. linux/amd64, linux/arm64 4.4 GB
ghcr.io/docling-project/docling-serve-cu128
quay.io/docling-project/docling-serve-cu128
CUDA 12.8 build with torch from the cu128 index. linux/amd64 11.4 GB
ghcr.io/docling-project/docling-serve-cu130
quay.io/docling-project/docling-serve-cu130
CUDA 13.0 build with torch from the cu130 index. linux/amd64, linux/arm64 TBD

Important

CUDA Image Tagging Policy

CUDA-specific images (-cu128, -cu130) follow PyTorch's CUDA version support lifecycle and are tagged differently from base images:

  • Base images (docling-serve, docling-serve-cpu): Tagged with latest and main for convenience
  • CUDA images (docling-serve-cu*): Only tagged with explicit versions (e.g., 1.12.0) and main

Why? CUDA versions are deprecated over time as PyTorch adds support for newer CUDA releases. To avoid accidentally pulling deprecated CUDA versions, CUDA images intentionally exclude the latest tag. Always use explicit version tags like:

# ✅ Recommended: Explicit version
docker pull quay.io/docling-project/docling-serve-cu130:v1.18.0

# ❌ Not available for CUDA images
docker pull quay.io/docling-project/docling-serve-cu130:latest

🚫 Not Distributed

An image for AMD ROCm 6.3 (docling-serve-rocm) and ROCm 10.1 (docling-serve-rocm101-gfx1151) are supported but not published due to their large size (around 10 GB for ROCm 10.1).

To build them locally:

git clone --branch main https://github.com/docling-project/docling-serve.git
cd docling-serve/

# Build for ROCm 6.3
make docling-serve-rocm-image

# Build for ROCm 10.1 (AMD Strix Halo gfx1151)
make docling-serve-rocm101-gfx1151-image

For deployment using Docker Compose, see docs/deployment.md.

Coming soon: docling-serve-slim images will reduce the size by skipping the model weights download.

Demonstration UI

An easy to use UI is available at the /ui endpoint.

Input controllers in the UI

Output visualization in the UI

Get help and support

Please feel free to connect with us using the discussion section.

Contributing

Please read Contributing to Docling Serve for details.

References

If you use Docling in your projects, please consider citing the following:

@techreport{Docling,
  author = {Docling Contributors},
  month = {1},
  title = {Docling: An Efficient Open-Source Toolkit for AI-driven Document Conversion},
  url = {https://arxiv.org/abs/2501.17887},
  eprint = {2501.17887},
  doi = {10.48550/arXiv.2501.17887},
  version = {2.0.0},
  year = {2025}
}

License

The Docling Serve codebase is under MIT license.

IBM ❤️ Open Source AI

Docling has been brought to you by IBM.