Skip to content

API Changelog

Every change to the OpenOCR API, dated and documented.

Programmatic access: GET /api/changelog returns this data as JSON; its api_version field and its own X-API-Version header are the newest entry on this page. Responses from the API itself (api.open-ocr.com) also carry an X-API-Version header, but it is still 2026-02-28 and has not changed with the additive changes listed here, so use the dates on this page, not that header, to tell what your integration can rely on.

v2026-11-22November 22, 2026Latest
  • A PDF sent as base64 without page_count is now read whole, up to the engine's max_pages_per_request, and charged for each page read. It used to read page 1 only. page_count is now an optional cap: send it to read only the first pages, as before.
  • If your balance cannot cover every page of a PDF sent without page_count, the request is refused with 402 insufficient_balance before anything is read or charged. The message gives the page count, the cost and how many pages your balance covers. With an explicit page_count nothing changes.
  • A PDF of more than 20 pages on an engine that cannot read PDFs directly runs as a background job (202 with a poll_url), whether its length comes from page_count or from a base64 document sent without it.
  • Images, PDFs sent by URL, and PDFs the router cannot parse in time (neither is counted before it is read) still read one page unless page_count says otherwise. The same rules apply to POST /v1/ocr/batch items.
v2026-11-15November 15, 2026
  • Additive: pdf_routing, per-page control over how a PDF is read, on POST /v1/ocr (since November 13 for synchronous requests; since November 15 also with mode: "async" and for PDFs over 20 pages, which run as background jobs). Up to 1,000 pages and the engine's max_pages. Pages read from the PDF's own text are billed at the PDF Text Layer price, skipped pages are free, and policy errors are refused before any charge. Not available on /v1/ocr/batch, with scale-to-zero open models, engines that read PDFs natively, a request-level fallback or the demo key. See /docs/pdf-routing.
  • Deprecated: scanned_handling and fallback_engine. Without pdf_routing they are validated but change nothing; with it they are aliases for pdf_routing.needs_ocr and pdf_routing.ocr_engine.
v2026-11-06November 6, 2026
  • Additive: Dashboard Settings now offers an account-wide provider rule. Set companies allowed to process your documents, companies that must never process them, or both; empty lists allow any company. Names match the served_by / Processed by value without regard to case. The rule applies to every request. A request's provider.only list intersects with the account allow list, and provider.ignore adds to the account deny list, so a request can only narrow the account rule.
v2026-11-05November 5, 2026
  • Additive: responses now include served_by, which company actually processed the document. For an OpenRouter engine it is the host OpenRouter used (for example "DeepInfra"), or "unknown" when OpenRouter did not say; for any other engine it is that engine's own vendor (for example "google"). It is null when the host is unknown or was not recorded, which includes requests made before 2026-11-05 and multi-page PDF jobs, where pages can be served by different hosts. It appears in the sync response, async job status and result, batch items, GET /v1/ocr/{request_id} and idempotent replays. No existing field was renamed or removed, and engine still names the model you chose.
  • Additive: provider, to choose which company runs the model. POST /v1/ocr (sync and async) and batch items accept an optional provider object in OpenRouter's shape: order, only, ignore and allow_fallbacks (default true; false makes order restrictive). Names must match the served_by values, up to 20 per list and 64 characters each. On an OpenRouter engine the object is passed through, and engines marked do-not-train keep that rule. A direct engine has one host: if only omits it, ignore lists it, or order omits it while allow_fallbacks is false, the request is a 400 (provider_not_served) naming the host, with no charge. Order alone is a preference when allow_fallbacks is absent or true, so the engine runs. Requests without provider are unchanged. See /docs/api#provider.
v2026-11-01November 1, 2026
  • Webhook event names now match the outcome. A failed request's webhook says "event": "ocr.failed" instead of "ocr.completed". The status field is unchanged. If you filter on event, accept both values or you will stop seeing failures.
  • A PDF request with page_count over 20, on an engine that cannot read PDFs directly, sent without mode: "async", now sends the webhook named in webhook_url. These always answered 202 but never sent it. If your balance is too low for the full page count, the count is lowered, and a lowered count of 20 or fewer runs synchronously with the result in the response and no webhook.
  • A partial read arrives as event "ocr.failed" with status "partial". You are charged for it. With OCR history on, text cut off at the output allowance or by the loop check is in extracted_text; after a timeout extracted_text is null and the recovered text is only in extracted_text_preview (up to 2,000 characters). With history off expect both to be null. A receiver that only accepts "ocr.completed" must also handle "ocr.failed".
  • status "refunded" can carry cost_usd above 0 when the provider billed us for an attempt that failed (pass-through), or if the refund could not be recorded. Read cost_usd for the amount charged.
  • A large PDF with OCR history off: the success webhook has extracted_text and extracted_text_preview null and content_availability "result_not_retained"; with history on the field is absent. A large PDF that fails during preparation, before any engine reads a page, is refunded with cost_usd 0; its ocr.failed event comes from the repair sweep, about 30 seconds or more after the failure.
v2026-10-19October 19, 2026
  • Prepared provider-retirement notices. After coordinated router/catalog activation, requests naming a retired engine use its designated replacement at that engine’s price; top-level replacement and a warning disclose the change. An explicit engine_unavailable fallback takes priority. Retired engine pages remain live with a replacement link. See /changelog#2026-10-19-retired-engines.
v2026-10-17October 17, 2026
  • Batch retry protection activated. POST /v1/ocr/batch requires Idempotency-Key. The same key and body replay completed items without another submission or charge; changed bodies return 409. Indeterminate items require reconciliation before another paid attempt. See /docs/endpoints.
  • Webhook signing version 2 activated in production at 2026-10-17T18:10:00.000Z. OCR callbacks use your account signing secret from Dashboard Settings, shared across API keys and sessions. The insecure API-prefix/session scheme is no longer used. Update your raw-body verifier before resuming callbacks. See /docs/webhooks.
v2026-03-02March 2, 2026
  • GET /api/usage now accepts Authorization: Bearer <api_key> header auth
  • Query api_key auth on /api/usage is deprecated fallback for migration only
  • Docs updated with preferred header-based examples and migration guidance
v2026-02-28February 28, 2026
  • Added X-API-Version header to all responses
  • Added /v1/changelog endpoint for programmatic version tracking
  • Added X-RateLimit-* headers (Limit, Remaining, Reset) to all authenticated endpoints
  • Added webhook management API: CRUD, test ping, delivery history
  • Added onboarding checklist API for first-time user guidance
  • Phase 2 parameter normalization: dpi, page_range, detect_tables support
  • File upload validation: 20MB maximum file size enforced client-side
v2026-02-27February 27, 2026
  • Added country of origin metadata to engine configs
  • Engine detail endpoints: /v1/engines/:id/stats, /v1/engines/:id/latency, /v1/engines/:id/uptime
  • Phase 1 parameter normalization: unified settings.language with automatic code mapping
  • Native engine passthrough via native_settings parameter
  • Response includes applied_settings showing resolved configuration
v2026-02-25February 25, 2026
  • Enabled cloud OCR engines: openai/gpt-4o, openai/gpt-4.1-mini-ocr, anthropic/claude-sonnet, google/gemini-2.5-flash
  • Fixed connection pooling: switched to session-mode for prepared statement support
  • Added /v1/engines/health endpoint for real-time engine availability
  • Added docTR, RapidOCR, OCRmyPDF to local engine fleet
v2026-02-22February 22, 2026
  • Initial public API release (v1)
  • Core endpoint: POST /v1/ocr with base64 and URL input types
  • Batch processing: POST /v1/ocr/batch (up to 20 items)
  • 6 local OCR engines: Tesseract, EasyOCR, docTR, Surya, RapidOCR, OCRmyPDF
  • API key authentication with SHA-256 hashed storage
  • Usage tracking and Stripe-based billing
  • Idempotency-Key support for safe retries