Parse a document synchronously
Admit a parse job, wait up to the sync wait limit, and return the selected terminal parse
representation when ready. output_format defaults to the versioned provider-neutral
openparser@1; raw returns a stable provider envelope around the selected provider's
untouched successful result. Terminal failed within the wait window returns 422
ErrorResponse; terminal indeterminate returns 504 ErrorResponse. Returns 202
with a durable job reference and Location if the wait limit expires first.
Example (multipart/form-data):
curl -X POST 'https://api.openparser.dev/parse' \ -H 'Authorization: Bearer YOUR_API_KEY' \ -H "Idempotency-Key: $(uuidgen 2>/dev/null || openssl rand -hex 16)" \ -F 'request={"ocr_model":"paddleocr-vl-1.6","output_format":"openparser@1"};type=application/json' \ -F 'file=@./document.pdf'Authorization
bearerAuth Existing Eigenpal API key presented as a bearer token.
In: header
Header Parameters
Client-supplied idempotency key. Required on every parse or extract POST. Must be unique per distinct
request body for a given tenant and operation.
1 <= length <= 256Request Body
multipart/form-data
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/parse" \ -H "Idempotency-Key: 7f9f2f3d-0f8a-4f0a-9a2b-2f6f0a7d2c11" \ -H "Authorization: Bearer $OPENPARSER_API_KEY" \ -F request="{ \"ocr_model\": \"string\" }"{ "output_format": "openparser@1", "document_id": "doc_01h2example", "provenance": { "provider": "paddle", "model": "paddleocr-vl-1.6" }, "text": "# Invoice\\n\\nTotal due: $1,234.56", "markdown": "# Invoice\n\nTotal due: $1,234.56\n", "pages": [ { "number": 1, "width": 1700, "height": 2200, "unit": "pixel", "element_ids": [ "e0", "e1" ], "reading_order": [ "e0", "e1" ] } ], "elements": [ { "id": "e0", "kind": "text", "role": "heading", "text": "# Invoice", "spans": [], "languages": [], "locations": [ { "page_number": 1, "bbox": { "left": 72, "top": 48, "right": 220, "bottom": 92 } } ], "confidence": { "score": 0.98, "scope": "recognition", "calibrated": false } }, { "id": "e1", "kind": "text", "role": "paragraph", "text": "Total due: $1,234.56", "spans": [], "languages": [], "locations": [ { "page_number": 1, "bbox": { "left": 72, "top": 180, "right": 420, "bottom": 220 } } ], "confidence": { "score": 0.95, "scope": "recognition", "calibrated": false } } ], "text_annotations": [], "relations": [], "assets": []}List compatible LLM models GET
Returns a cached, normalized OpenRouter catalog filtered to models that advertise strict structured output (`structured_outputs` + `response_format`), have valid finite provider-list cost (internally) that is converted to customer retail rates, produce text, and are not expired. Default `mode=suggested` returns a short recommended subset. `mode=search` discovers the full compatible catalog with optional `q` / pagination. Field grounding and schema suggestion remain restricted to certified models.
Parse a document asynchronously POST
Admit a durable parse job and return immediately. Example (`multipart/form-data`): ```bash curl -X POST 'https://api.openparser.dev/parse/async' \ -H 'Authorization: Bearer YOUR_API_KEY' \ -H "Idempotency-Key: $(uuidgen 2>/dev/null || openssl rand -hex 16)" \ -F 'request={"ocr_model":"paddleocr-vl-1.6","output_format":"openparser@1"};type=application/json' \ -F 'file=@./document.pdf' ```