Docling Serve Document Conversion API

AWS Artificial Intelligence (AI)

Docling Serve, the document conversion API that turns PDFs, office files and web pages into clean structured Markdown and JSON with layout and table understanding, secured from first boot by cloudimg.

Base
Hardened build
minimal ports, security patches applied at build time
Access
Unique credentials
generated on first boot, readable only by root
Verified
Boots working
services pass a health gate before release
Support
24/7, 365 days
by email and live chat, 24 hour response SLA

Overview

Docling Serve is the HTTP API service around Docling, an open source document conversion toolkit. It converts PDF, DOCX, PPTX, HTML and image documents into well structured Markdown or JSON, using machine learning models that understand page layout and reconstruct tables, so headings, paragraphs, lists and tabular data survive the conversion instead of collapsing into a wall of text. Applications POST a document to the API and receive back structured content ready to index, chunk for retrieval augmented generation, feed to a language model or store, and an interactive playground and OpenAPI docs are built in.

It suits teams building search, retrieval augmented generation and document processing pipelines who need a self hosted, private conversion service they run inside their own cloud account, so sensitive documents are parsed on infrastructure they control rather than sent to a third party service.

Why the cloudimg image

cloudimg delivers Docling Serve secure by default: the API ships with no authentication of its own, so the service is bound to loopback and fronted by a reverse proxy with HTTP Basic Auth whose password is generated uniquely on the first boot of every instance and written to a root only file, with no default login surviving into the image. The layout, table structure and OCR models are baked into the image with their licences verified against the artifacts themselves, so both text based documents and scanned or image only documents convert fully offline the moment the instance boots, with the service pinned to offline mode so it never reaches out during a conversion. It is CPU only with no GPU required, hardened and fully patched with unattended security upgrades enabled, and the build proves a real document conversion round trip end to end. Every deployment is paired with a step by step deploy guide and backed by 24/7 cloudimg support.

Common uses

  • A private self hosted API for converting documents to structured Markdown and JSON
  • Preparing PDFs and office files for retrieval augmented generation and search indexing
  • Extracting tables and layout from documents inside your own cloud account

Key features

  • Working, authenticated document-conversion API in minutes with zero manual setup. This image completes every build and hardening step at creation time - Python environment, CPU-only PyTorch, docling-serve, model downloads, systemd units and authenticated reverse proxy are all pre-configured. Launch an instance, retrieve your unique credential, and start converting PDF, DOCX, PPTX, HTML and images to structured Markdown or JSON immediately.
  • Fully offline conversion including OCR - no document ever leaves your instance. The layout, table-structure and OCR machine-learning models are baked into the image and licence-verified at build time (all Apache-2.0 or CDLA-Permissive-2.0). Both text-layer documents and scanned images convert without any network call, making this suitable for sensitive workloads and air-gapped environments.
  • Unique per-instance credential with defence-in-depth security, backed by 24/7 cloudimg support. A cryptographically random API password is generated on first boot; the backend binds to loopback only and is reachable solely through the authenticated nginx proxy. cloudimg provides 24/7 technical support via email and chat for deployment, TLS termination, pipeline integration and conversion tuning.

See it running

Real screenshots taken while testing this image against its deployment guide.

Docling Serve Document Conversion API screenshot 1 Docling Serve Document Conversion API screenshot 2 Docling Serve Document Conversion API screenshot 3 Docling Serve Document Conversion API screenshot 4

Description

This is a repackaged open source software product wherein additional charges apply for cloudimg support services.

## Convert Documents to Structured Markdown or JSON - Entirely in Your AWS Account

Docling Serve is a self-hosted HTTP API that converts PDF, DOCX, PPTX, HTML and image files into clean, machine-readable Markdown or JSON with real layout and table understanding. Backed by the Linux Foundation AI and Data community, this AMI delivers a fully built, hardened conversion appliance that is operational within minutes of launch - no manual package installation, no documents leaving your network, and no third-party API dependencies.

## Why Buyers Choose This AMI Over a Manual Install

This image eliminates the manual work of building a Python environment, installing CPU-only PyTorch and docling-serve, downloading and licence-vetting machine-learning models, authoring systemd units, configuring an authenticated reverse proxy and hardening credentials. The layout, table-structure and OCR models are baked in at build time and verified against their licence, so document and scanned-image conversion works fully offline out of the box. Launch the instance, read your unique credential, and start converting documents immediately.

Evaluation path: Launch a small instance for a short session to test the API against your own documents at minimal infrastructure cost. No long-term commitment is required - terminate the instance when your evaluation is complete.

## Concrete Use Cases

  • Document ingestion for AI and RAG pipelines: convert PDFs, Office documents and HTML into clean Markdown or JSON as the pre-processing step feeding a retrieval-augmented-generation system or search index, entirely within your own account
  • Table and layout extraction: extract structured tables and reading-order layout from invoices, reports and scientific papers into machine-readable form
  • Offline OCR of scanned documents: convert scanned or image-only documents to text with the baked OCR engine, with no document ever leaving the instance

## Application Stack

The docling-serve backend runs under systemd as an unprivileged system user and binds to the loopback interface only. It is fronted by an nginx reverse proxy on port 80 that requires HTTP Basic Auth on every path except a static, unauthenticated health probe for load balancers. The standard docling-serve client paths are preserved unchanged through the proxy, so existing clients, the interactive UI and Swagger docs all work by pointing at the instance with credentials. systemd starts the service and the web server on boot and restarts them on failure.

## Baked, Licence-Vetted Models

Document conversion is driven by machine-learning models that are separately licensed artifacts. This image bakes only permissively licensed models, each verified at build time against its own model card and recorded with a per-file checksum in an on-image provenance file:

  • Layout analysis: the Docling heron layout model (Apache-2.0)
  • Table structure: Docling TableFormer (CDLA-Permissive-2.0)
  • OCR: RapidOCR / PP-OCR for scanned and image documents (Apache-2.0)

All permit commercial use and redistribution. A fail-closed build-time scan aborts on any copyleft or non-commercial marker anywhere in the model download, and a whole-environment licence sweep rejects any restrictive transitive dependency.

## Security Hardening

  • Network isolation: the conversion backend binds exclusively to the loopback interface; only the authenticated nginx proxy is exposed, and the security group opens only SSH and HTTP
  • No default or shared credentials: a cryptographically random API password is generated on each instance's first boot and written only to a root-only file
  • Authenticated by default: this image never exposes an open, unauthenticated conversion endpoint
  • Least privilege: the service runs as an unprivileged system user under a hardened systemd unit
  • Offline conversion: the models are baked and model downloads are disabled, so uploaded documents never leave your instance

Basic Auth rides over HTTP by default; terminate TLS on port 443 in front of the instance for production, as described in the deployment guide.

## AWS Integration

Deploy on any EC2 instance type. Front the instance with an Application Load Balancer terminating TLS with your own certificate, and use the unauthenticated health path as the target-group health check. Back up your configuration with EBS snapshots or AWS Backup.

## Get Started

Launch an instance from this AMI, retrieve your unique credential from the root-only file, and send your first document conversion request via curl or the built-in Swagger UI. For a guided deployment walkthrough or help integrating the API into your pipeline, contact cloudimg support at any time.

Related technologies

document conversion apipdf to markdowndoclingoffline ocrrag preprocessingtable extractionpdf to jsonself-hosted document aidocx conversiondocument parsing ami