Step 1: Try it → Step 2: Use the API → Step 3: Install locally

Build With AILANG Parse

Parse 17 formats and generate 9 with one API. 1,000 requests/month free.

Get Your API Key

Sign in to generate an API key and try endpoints live.

Using a CLI or AI agent? See Device Auth below

Quick Start

Parse your own file in one command:

# Upload and parse your file (all tiers — Free, Pro, Business)
curl -X POST https://docparse.ailang.sunholo.com/api/v1/parse \
  -F "filepath=@your-document.docx" \
  -F "outputFormat=markdown" \
  -F "apiKey=dp_YOUR_KEY"
File upload works on all tiers. Upload files up to 32 MB directly, within your tier's limit (Free: 10 MB, Pro: 25 MB). Send larger files (Business, up to 50 MB) by sourceUrl (an https URL we fetch), or with POST /api/v1/upload/url then gcsRef. Use -F "filepath=@file": the field name must be filepath. Supported formats: DOCX, PPTX, XLSX, ODT, ODP, ODS, CSV, HTML, Markdown, EPUB, EML, MBOX, TEX, RTF, PDF, PNG, JPG.

Or test with a built-in sample (no file needed):

# Parse a built-in sample — list all 26 via GET /api/v1/samples
curl -X POST https://docparse.ailang.sunholo.com/api/v1/parse \
  -H "Content-Type: application/json" \
  -d '{"filepath":"sample_docx_formatting","outputFormat":"markdown","apiKey":"dp_YOUR_KEY"}'

Need an API key? Sign in above to generate one, or let a script or agent get one with device auth. See the agent guide below.

Tip: Add ?api=http://localhost:8080 to any docs page URL to point every example at your local or self-hosted server.


Supported Formats

The /api/v1/parse endpoint accepts all of these formats. Office and text formats are parsed without AI, so the same file always gives the same result. PDFs are read without AI by default; choose the AI backend (pdfBackend: "ai") for scans. Images use AI.

Loading formats...

Video and audio parsing is available in the CLI and in the browser. See Run Locally.


Pricing Tiers

Loading pricing...
BrowserFreePro — €29/moBusiness — €99/moCustom
Daily rate limitUnlimited505,00020,000Tailored
Requests / monthUnlimited1,000100,000500,000Any volume
AI parses / monthUnlimited*505002,000Any volume
Max file size20 MB10 MB25 MB50 MBTailored
AI Format File Size Limits
PDF max20 MB10 MB25 MB50 MBTailored
Image max20 MB10 MB25 MB50 MBTailored
Need higher limits? Upgrade to Pro Business Custom — let’s talk — we’re flexible on volume, on-premises hosting, SLAs and pricing.

Make your quota go further: Office formats (DOCX, PPTX, XLSX, ODF) are parsed without AI, at zero AI cost. A DOCX converted to PDF is larger and has lost its structure. Send the original Office file whenever you can, and save your AI quota for scanned documents and images.

The limits on AI calls and file access are built into the parser by AILANG, the language it is written in. They are a hard guarantee, not a rate limiter added on top.

Self-Host Option

Want to run AILANG Parse on your own infrastructure? We offer self-hosted deployments for teams that need full control over data residency and processing. Get in touch to discuss self-hosting options.


Data Handling

Your documents stay yours. This is what happens when you use the API:

Data typeWhat happensRetention
Small documents
< 375 KB raw
Processed in memory only. The file is never written to disk or cloud storage. None — discarded immediately
Large PDFs
≥ 375 KB raw
Uploaded temporarily to regional cloud storage so the AI can read it page by page. Deleted as soon as parsing finishes. Deleted on completion.
Anything left is auto-deleted after 24 hours.
Parsed output Returned to you in the API response. Up to 10 KB is kept as request history so you can replay the request. It is on by default. Turn it off in the dashboard or with POST /api/v1/account/history, and new requests keep metadata only. Deleted after 12 months
Request metadata
timestamp, file name, format, size, outcome, key ID
Logged for billing and for the request history on your dashboard. Deleted after 12 months. History shows 30/180/365 days by plan.
API keys Only a SHA-256 hash is stored. The raw key is shown once at creation and never stored. Until you revoke
Where it runs: All processing happens in Belgium (europe-west1). Temporary files are stored in the same region and deleted automatically after 24 hours. No document content is used for AI model training or analytics. Parsing in the browser (WebAssembly) or with the local CLI sends nothing to us at all; see the three ways to run.

Recent Requests

›

API Explorer

Every endpoint below is loaded live from the API’s own capability manifest, so this reference matches the running service.

Sign in to try POST endpoints live with your API key.
○
Loading endpoints...

Migrating from Unstructured

Already using the Unstructured API? AILANG Parse is a drop-in replacement for Office formats. Change your server URL:

# Before (Unstructured)
from unstructured_client import UnstructuredClient
client = UnstructuredClient(server_url="https://api.unstructured.io")

# After (AILANG Parse) — one line change
client = UnstructuredClient(
    server_url="https://docparse.ailang.sunholo.com"
)

The /general/v0/general endpoint returns element JSON in the Unstructured format, so your existing code keeps working.


Connect Your AI

Three ways for AI systems to use AILANG Parse:

CLI

Run it from scripts and pipelines. Best for batch processing.

docparse myfile.docx

REST API

Standard HTTP. Upload the file; send the dp_ key as a header. Scripts get a key with the device flow below.

curl -X POST .../api/v1/parse \
  -H "X-API-Key: dp_..." \
  -F "filepath=@file.docx" -F "outputFormat=blocks"

MCP Connector

For Claude, Claude Code, ChatGPT and Codex. Add this URL; the client signs you in with Google or GitHub (OAuth). No key to copy. Setup per client →

https://docparse.ailang.sunholo.com/mcp/connect/

Agents without a browser use /mcp/ with a key header instead. See two ways to sign in.


Claude Code Skill

Install the AILANG Parse skill in Claude Code to parse documents directly from your terminal.

# Run both inside Claude Code
/plugin marketplace add sunholo-data/docparse-skill
/plugin install ailang-parse@ailang-parse-marketplace

Once installed, run /mcp and choose Authenticate to sign in (OAuth), then ask Claude to parse or create a document. For use outside Claude, the skill also includes shell scripts that use a dp_ key:

# Scripts only: set your API key
export DOCPARSE_API_KEY="dp_your_key_here"

# Or get one via device auth (no browser needed)
bash skills/ailang-parse/scripts/device-auth.sh

# Parse a document
bash skills/ailang-parse/scripts/parse.sh document.docx blocks

# Check cost before parsing
bash skills/ailang-parse/scripts/estimate.sh report.pdf blocks

# List available test files
bash skills/ailang-parse/scripts/samples.sh

Agent Integration Guide

A step-by-step guide for AI agents that call AILANG Parse. Expand it to read every step.

API Capabilities (JSON) → Health Check (JSON)
Expand: Complete Agent Workflow (7 steps)

Step 1: Discover the API

# Health check — confirms service is up and version
curl https://docparse.ailang.sunholo.com/api/v1/health

# Full capability manifest — every endpoint, schema, auth, costs
curl https://docparse.ailang.sunholo.com/api/v1/capabilities

# Supported formats
curl https://docparse.ailang.sunholo.com/api/v1/formats

# Machine-readable tool definitions (Claude/OpenAI/MCP)
curl https://docparse.ailang.sunholo.com/api/v1/tools

Step 2: Get an API Key (Device Auth)

Skip this if your agent connects through the MCP connector /mcp/connect/: the client signs in with OAuth and holds the token. Device auth is for REST callers and the agent endpoint /mcp/, which uses keys.

Agents use the RFC 8628 Device Authorization flow: the user approves once in a browser, and the agent needs no browser after that.

# 1. Request a device code
curl -X POST https://docparse.ailang.sunholo.com/api/v1/auth/device \
  -H "Content-Type: application/json" \
  -d '{"label":"my-agent","scope":"parse"}'
# Returns: device_code, user_code (e.g. ABCD-1234), verification_url

# 2. Display the verification_url to the user. They open it and sign in (authorization is automatic).

# 3. Poll every 5 seconds until approved:
curl -X POST https://docparse.ailang.sunholo.com/api/v1/auth/device/poll \
  -H "Content-Type: application/json" \
  -d '{"deviceCode":"DEVICE_CODE_FROM_STEP_1"}'
# Returns: {"status":"approved", "api_key":"dp_...", "tier":"free"}

Save the api_key: it is shown only once. It keeps working in later sessions.

Try It: Request a Device Code

For CLI tools and AI agents. The agent requests a code, the user signs in to approve it, and the agent collects the key.

Step 3: List Test Samples

Test parsing with the built-in sample files, without uploading anything.

curl https://docparse.ailang.sunholo.com/api/v1/samples
Sample ID Format AI?
sample_docx_formattingDOCX (rich styles)No
sample_docx_tablesDOCX (merged cells)No
sample_docx_commentsDOCX (comments)No
sample_docx_track_changesDOCX (insertions/deletions/moves)No
sample_docx_footnotesDOCX (footnotes)No
sample_docx_hyperlinksDOCX (hyperlinks)No
sample_docx_real_worldDOCX (complex real-world)No
sample_pptx_notesPPTX (speaker notes)No
sample_pptx_formattingPPTX (rich text)No
sample_xlsx_mergedXLSX (merged cells)No
sample_xlsx_formulasXLSX (formulas)No
sample_xlsx_formatsXLSX (number formats)No
sample_csvCSV (format matrix)No
sample_markdownMarkdown (architecture guide)No
sample_htmlHTML (getting started)No
sample_odtODT (styled tables)No
sample_odpODP (text frames)No
sample_odsODS (merged cells)No
sample_epubEPUB (Alice in Wonderland)No
sample_eml_welcomeEML (welcome email + CSV attachment)No
sample_eml_releaseEML (release notes, text + HTML)No
sample_eml_bugEML (encoded headers, CC, attachments)No
sample_mbox_threadMBOX (4-message reply thread)No
sample_pdfPDF (table report)No (only with the AI backend)
sample_mp3Audio (transcription)Yes
sample_mp4Video (visual+audio)Yes

Use GET /api/v1/samples to get the test files from code.

Step 4: Estimate Cost

curl -X POST https://docparse.ailang.sunholo.com/api/v1/estimate \
  -H "Content-Type: application/json" \
  -d '{"filepath":"sample_docx_formatting","outputFormat":"markdown"}'
# Returns: {"format":"zip-office", "strategy":"deterministic", "ai_required":false, "estimated_ms":15}

Step 5: Parse a Document

Option A: Upload your own file (all tiers)

# Upload and parse any file via multipart/form-data
# The field name MUST be "filepath"
curl -X POST https://docparse.ailang.sunholo.com/api/v1/parse \
  -F "filepath=@report.docx" \
  -F "outputFormat=markdown" \
  -F "apiKey=dp_YOUR_KEY"

# Works with any supported format
curl -X POST https://docparse.ailang.sunholo.com/api/v1/parse \
  -F "filepath=@data.xlsx" \
  -F "outputFormat=blocks" \
  -F "apiKey=dp_YOUR_KEY"

Option B: Parse a built-in sample (no upload needed)

# Deterministic (Office/Web/Text) — same output every time, <15ms
curl -X POST https://docparse.ailang.sunholo.com/api/v1/parse \
  -H "Content-Type: application/json" \
  -d '{"filepath":"sample_docx_formatting","outputFormat":"markdown","apiKey":"dp_YOUR_KEY"}'

# AI-powered (PDF/images) — content depends on model
curl -X POST https://docparse.ailang.sunholo.com/api/v1/parse \
  -H "Content-Type: application/json" \
  -d '{"filepath":"sample_pdf","outputFormat":"markdown","apiKey":"dp_YOUR_KEY"}'

Output formats: blocks (structured JSON), markdown, html, a2ui (rich UI components).

All formats return the same block types: Text, Heading, Table, Image, Audio, Video, List, Section, Change.

File size limits: Free 10 MB, Pro 25 MB, Business 50 MB. Upload files up to 32 MB directly. Send larger files by sourceUrl, or with POST /api/v1/upload/url + gcsRef (Business tier).

Step 6: Handle Errors

Every error includes a suggested_fix field: a plain-text instruction you can act on.

Code Retryable When
INVALID_API_KEYNoKey missing, malformed, or revoked
QUOTA_EXCEEDEDYes (after reset)Daily or monthly request limit hit
AI_QUOTA_EXCEEDEDYes (after reset)Monthly AI parse limit hit
FILE_TOO_LARGENoFile exceeds format-specific size limit
INPUT_NOT_FOUNDNoFile path doesn't exist
UNSUPPORTED_FORMATNoFile extension not recognized
PARSE_FAILEDMaybeCorrupt or empty file
AI_UNAVAILABLEYesAI service unavailable
AUTHORIZATION_PENDINGYes (poll)Device flow: user hasn't approved
DEVICE_CODE_EXPIREDNoDevice code timed out
1. GET  /api/v1/capabilities     → learn the full API contract
2. POST /api/v1/auth/device      → acquire credentials (one-time)
3. GET  /api/v1/samples          → find test files to verify integration
4. POST /api/v1/estimate         → check cost before committing
5. POST /api/v1/parse            → parse the document
6. Check the response has request_id in meta
7. Monitor meta.quota_remaining between requests

Format Categories

Format Type
Office (DOCX, PPTX, XLSX, OD*)Deterministic
Text (HTML, MD, CSV, EPUB)Deterministic
PDFDeterministic by default; AI if you choose pdfBackend: "ai"
Image (PNG, JPG, etc.)AI

Deterministic formats use no AI and count only against your request quota. AI formats also count against your monthly AI parse limit and have their own file size limits. Free tier: 1,000 requests/month + 50 AI parses. See GET /api/v1/pricing for every tier.

Runnable Examples

# Quickstart: auth + first parse in one command
bash examples/quickstart.sh

# Full 7-step walkthrough
bash examples/agent_workflow.sh

# With existing key (skip auth)
DOCPARSE_API_KEY=dp_... bash examples/agent_workflow.sh

Client Libraries

Small client libraries that call the AILANG Parse API. They accept the same arguments as unstructured-client.

Python PyPI
pip install ailang-parse
Parse files, manage keys, Unstructured-compatible. Typed dataclasses.
JavaScript / TypeScript npm
npm install @ailang/parse
Browser + Node.js. Native fetch, zero dependencies, full TypeScript types.
Go Go
go get github.com/sunholo-data/ailang-parse-go
Context support, stdlib HTTP only. Typed structs for all 9 block types.
Python JavaScript Go
from ailang_parse import DocParse

client = DocParse(api_key="dp_your_key_here")

result = client.parse("report.docx")
for block in result.blocks:
    if block.type == "heading":
        print(f"H{block.level}: {block.text}")
    elif block.type == "table":
        print(f"Table: {len(block.rows)} rows")
    elif block.type == "change":
        print(f"{block.change_type} by {block.author}")

# Unstructured migration — one import change:
from ailang_parse import UnstructuredClient
client = UnstructuredClient(server_url="https://docparse.ailang.sunholo.com")
elements = client.general.partition(file="report.docx")
import { DocParse } from '@ailang/parse';

const client = new DocParse({ apiKey: 'dp_your_key_here' });

const result = await client.parse('report.docx');
for (const block of result.blocks) {
  if (block.type === 'heading') console.log(`H${block.level}: ${block.text}`);
  if (block.type === 'table') console.log(`Table: ${block.rows?.length} rows`);
  if (block.type === 'change') console.log(`${block.changeType} by ${block.author}`);
}

// Unstructured migration — one import change:
import { UnstructuredClient } from '@ailang/parse';
const uc = new UnstructuredClient({ serverUrl: 'https://docparse.ailang.sunholo.com' });
const elements = await uc.general.partition({ file: 'report.docx' });
client := docparse.New("dp_your_key_here")

result, err := client.Parse(ctx, "report.docx")
for _, block := range result.Blocks {
    switch block.Type {
    case "heading":
        fmt.Printf("H%d: %s\n", block.Level, block.Text)
    case "table":
        fmt.Printf("Table: %d rows\n", len(block.Rows))
    case "change":
        fmt.Printf("%s by %s\n", block.ChangeType, block.Author)
    }
}

// Unstructured migration:
uc := docparse.NewUnstructuredClient("https://docparse.ailang.sunholo.com")
elements, _ := uc.Partition(ctx, "report.docx")

Frequently Asked Questions

Is AILANG Parse a drop-in replacement for Unstructured?

Yes, for Office formats. AILANG Parse has a compatible endpoint at /general/v0/general that accepts the same multipart file upload as Unstructured. Change the endpoint URL and the output keeps track changes, merged cells and comments. See the integrations page for migration guides.

What output formats does the AILANG Parse API support?

The API supports structured JSON blocks, Markdown, HTML, plain text, Quarto (QMD), A2UI, and the Unstructured-compatible element format. Specify the output format with the output_format parameter. All formats preserve the same structural information.

Does the AILANG Parse API require an API key?

Yes, all parse requests require an API key. The Free tier provides 1,000 requests/month including 50 AI parses. Generate a key via the dashboard or the device auth flow (/api/v1/auth/device). Pro and Business tiers increase limits to 100,000 and 500,000 requests/month respectively.

Can I run AILANG Parse locally instead of using the cloud API?

Yes. Install the CLI for unlimited local parsing, or clone the repo and use the included Dockerfile to process batches in a container. Office parsing needs nothing else installed. See the Run Locally guide for details.