New sign-ups for the Free plan are temporarily paused. Paid plans remain available.
LDX hub API

LDX hub API

LDX hub provides AI-powered document processing APIs including StructFlow (unstructured text to structured JSON), AnalyzeDoc (vision-based structured data extraction — AI models visually read PDF and image documents and return structured JSON), RefineLoop (XLIFF translation quality refinement), RenderOCR (OCR conversion of PDF and images to editable Office formats with layout and formatting preservation), CastDoc (high-fidelity PDF-to-Office conversion without OCR), and ExtractDoc (fast text extraction from documents in reading order, designed as a preprocessing step for downstream AI pipelines).

Authentication

Send your API key in the Authorization header as a Bearer token.

Code
Authorization: Bearer YOUR_API_KEY

Access keys are available after subscription via the Developer Portal.

Public endpoints (no authentication required)

The following metadata endpoints are publicly accessible without authentication when accessed via HTTP API, designed for dynamic discovery in workflow tools (e.g., n8n, Dify):

  • GET /structflow/models
  • GET /analyzedoc/models
  • GET /refineloop/models
  • GET /renderocr/engines
  • GET /castdoc/engines
  • GET /extractdoc/engines

MCP Server

LDX hub provides an MCP (Model Context Protocol) endpoint at POST /mcp for AI tool integration (e.g., Claude Desktop). All operations via the MCP server require authentication, regardless of the HTTP API auth tier above.

Asynchronous Processing

All jobs are processed asynchronously.

  1. Upload a file if needed via POST /files
  2. Submit a job → receive a job_id
  3. Poll GET /{service}/jobs/{job_id} until status is completed or failed

Job Status

StatusDescription
queuedJob accepted and waiting to be processed
processingJob is currently being processed
completedJob finished successfully
failedJob failed before processing started

Billing

Usage is measured in credits. Each credit costs $0.0001. Credit consumption varies by service, AI engine, and data volume. See LDX hub Pricing for details.

Tags