Document infrastructure for AI products

Documents in.Structure out.

Turn PDFs, scans, slides, spreadsheets, and images into clean Markdown plus structured JSON your search, RAG, automation, and AI products can actually use.

20 documents free · deterministic parsing · 200 MB · no card required
Live pipelineCloudflare-native
parse / annual-report.pdf
PDF
annual-report.pdf
84 pages · tables · two-column layout
layout aware
01 · route 02 · extract 03 · normalize
01# Revenue by segment 02| Segment | FY25 | Change | 03| Platform | $82M | +31% | 04| Services | $41M | +12% | 05bbox: [0.08, 0.34, 0.91, 0.52] 06confidence: 0.94
MarkdownReadable + chunkable DocIR JSONPages + blocks + boxes ManifestRoute + warnings + lineage
01 / The parsing gap

The expensive part of AI is often the document before the prompt.

Flattened text loses the tables, reading order, page boundaries, and confidence signals your application needs. DocParse preserves useful structure from ingestion onward.

Raw extractionContext lost

A wall of text your pipeline has to clean up later.

  • ×Multi-column paragraphs arrive in the wrong reading order.
  • ×Tables collapse into strings and headings lose hierarchy.
  • ×No page, box, parser, or confidence metadata for debugging.
DocParse outputContext retained

A normalized document layer ready for downstream work.

  • Readable Markdown for chunking, search, and model context.
  • DocIR JSON with pages, typed blocks, bounding boxes, and order.
  • Manifests, warnings, lifecycle events, and stored artifacts.
02 / Built for the ingest layer

One parsing layer. Four high-value workflows.

DocParse sits between the files your customers already have and the product experience you want to ship.

01 — RAG

Knowledge & retrieval

Preserve headings, tables, page references, and reading order before chunking and embedding.

Outcome → better retrieval context
02 — PRODUCT

AI product ingestion

Accept the document formats users bring without building and operating a parser zoo yourself.

Outcome → ship document features sooner
03 — OPS

Document workflows

Normalize uploaded files before classification, review, extraction, routing, or human approval.

Outcome → one reliable intake layer
04 — DATA

Search & archives

Turn mixed-format repositories into consistent, traceable artifacts for indexing and migration.

Outcome → searchable structure at scale

Fidelity without one expensive default

The right parser route for the document in front of it.

Digital PDFs take a deterministic text-layer path. Scans and complex layouts can use OCR or layout vision. Office files keep their native structure. You get one API and a traceable route decision.

The free Trial validates deterministic parsing first. Image, Fast AI, and Layout-aware processing are enabled only for approved paid workspaces.

Digital PDF
text layer
Scans
OCR
Complex layout
vision
One normalized
output
01 / CONTROL

Async when it should be.

Use inline parsing for normal files or jobs, queues, retries, cancellation, and webhooks for slower work.

02 / TRACE

Debug the parse, not a black box.

Inspect routes, job events, warnings, parser versions, manifests, and tenant-scoped artifacts.

03 / BOUNDARY

Cloudflare-native by default.

External OCR is explicit and tenant-controlled. URL imports and webhooks can be restricted by host.

03 / Cloudflare DocParse API

Ship document features without operating a parser stack.

Send a file to one authenticated endpoint and receive clean Markdown plus layout-aware DocIR JSON. Start inline, then move the same integration to async jobs and webhooks as volume grows.

01

Create a scoped key

Open a free workspace, name the key for your backend, and copy the secret once.

02

POST the document

Upload multipart or raw binary, or import a permitted HTTPS URL.

03

Use the result

Read result.markdown for RAG and result.document when layout, blocks, and provenance matter.

First request · cURL
# Keep the key in your backend environment
export DOCPARSE_API_KEY="your_key"

# Parse now and save the complete response
curl -X POST "https://docparse.genedai.me/v1/parse?wait=true" \
  -H "Authorization: Bearer $DOCPARSE_API_KEY" \
  -F "file=@document.pdf" \
  -F "mode=both" \
  -o result.json

# Send Markdown to retrieval; keep DocIR for structure
jq -r '.result.markdown' result.json > document.md
jq '.result.document' result.json > document.docir.json
Prototype

One request, complete result.

Add ?wait=true for normal files and receive the job, Markdown, DocIR, and manifest together.

Production

Queue work without changing the input.

Remove ?wait=true, then poll the result link or receive a terminal webhook.

Control

Operate within clear boundaries.

Use scoped keys, quotas, idempotency, cancellation, artifact purge, and tenant-specific URL policies.

04 / Production controls

Built like infrastructure, not a demo upload box.

Commercial controls are part of the service boundary: keys, quotas, idempotency, retention, and auditability live beside the parser.

#

Tenant-scoped access

Hashed API keys, explicit scopes, revocation, monthly quotas, and concurrent job admission.

Operational safety

Idempotency keys, retries, dead-letter handling, cancellation, purge, and signed webhooks.

Clear provenance

Original clean-room parsing code, permissive dependencies, and Apache-2.0 project licensing.

05 / Learn before you integrate

A complete path from document problem to production API.

Product

Understand the parsing layer.

Outputs, routes, lifecycle, access, cost, and retention in one product system.

Explore product →
Build for

Start from your workflow.

Architectures for RAG, AI agents, knowledge bases, search, and automation.

Choose a use case →
Guides

Go deep on implementation.

Engineering guides for Markdown, DocIR, routing, evaluation, RAG, and security.

Read engineering guides →

Stop cleaning documents after ingestion.

Start with 20 text-based documents and prove the deterministic output against your own files before you redesign the pipeline around it.

Create free workspace

20 documents · 200 MB
Deterministic parsing · no payment card