Documentation Index
Fetch the complete documentation index at: https://docs.docex.dev/llms.txt
Use this file to discover all available pages before exploring further.
Changelog
Week of May 11, 2026
New features
- Vision runs API — The pipeline is now task-agnostic. Use
POST /v1/runswith a prompt and any image or PDF to run vision, OCR, or custom analysis. Reference a built-in schema viaschemaId, or pass your own inlineschemafor fully custom tasks like phishing detection or content moderation. See API reference and schemas. - Dynamic 2× upstream pricing — Billing is now based on the actual upstream provider cost with a transparent 2× markup, estimated before queueing and trued-up after completion. Refunds are issued automatically when the actual cost is below the estimate. See billing.
- Job idempotency — Submit the same run twice and get the same job back. Safe to retry without double-charging.
- Cost confirmation and budgets — Jobs estimated above $1.00 now require explicit confirmation via
confirmCost: true, or you can set a hardmaxCostUsdbudget that aborts the job if the estimate exceeds it. - Structured errors — All API and SDK errors now return a
DocexErrorshape withcode,suggestion, andretryableflags. The SDK automatically retries retryable errors with exponential backoff. See errors. - Dashboard, wallet, and API keys — A new web dashboard for managing API keys, viewing usage, and topping up your prepaid USD wallet. GitHub OAuth login is supported.
Updates
- SDK renamed to
docexdev— Install withnpm install docexdev. Import:import { createDocex } from "docexdev". See installation. - Legacy
/v1/extractionsendpoints — Now redirect automatically to/v1/runs. Existing integrations continue to work. docTypeHintparameter — Mapped internally toschemaId. Existing code continues to work without changes.- Provider routing — Model selection now goes through OpenRouter with model-level optimization, expanding the pool of available providers and improving fallback behavior.
- Rate limits — Per-key rate limits are now enforced on the worker API. Retryable
RATE_LIMIT_EXCEEDEDerrors include a suggested backoff.
Bug fixes
- Improved image dimension parsing — replaced the previous dependency with a zero-dependency parser for better reliability across formats.
- Hardened dashboard DOM handling to eliminate null-reference errors on initial load.
- Fixed Cloudflare Pages deploys when the account ID was not passed explicitly.