What is OXR
OXR (Optical Everything Recognition) is an open-source model from the SoMark team. It turns PDFs and document images into Agent-Friendly data in Markdown or JSON, with layout coordinates included. Pretrained from scratch, OXR uses a recursive self-improvement (RSI) loop during post-training—a first in document parsing. With just 1.3B parameters, OXR ranks #1 on olmOCR-Bench, OmniDocBench, and DocParsingBench while delivering industry-leading parsing speed. OXR is the first to make its layout analysis module independent and pluggable. This design accelerates parsing and supports replacing the built-in layout model with a custom one.OXR on GitHub
Source code, Docker deployment, and model downloads
Online demo
Upload a document and see the parsing result, no sign-up needed
Relationship with SoMark
OXR’s API is compatible with the SoMark API. Although OXR does not support some specialized capabilities, SoMark’s ecosystem fully supports deployed OXR services.- A self-hosted OXR and the Free OXR API both work with SoMark’s official CLI and SDK tools (somark-py and somark-js). Just change the Base URL.
- Paths, parameter names, and response structure match the SoMark API.
Free API
OXR provides a free API so you can test parsing on your own documents without registering or requesting an API key. We’ll keep the free API online until we can no longer afford to run it.somark.cn is a mirror of somark.ai. Choose the domain that works best for your region.
Upload limits
File size
Up to 10MB per file
Page count
Up to 20 pages per request
Usage
The Free OXR API requires no authentication. Setapi_key to any value, such as dummy.
Self-hosted OXR
You can deploy OXR with Docker on your own GPU server. Usehttp://<host>:8000/v1 as the Base URL. The 10MB / 20-page limits do not apply. See the OXR repository for deployment steps.
API alignment
See the parameter-by-parameter comparison between OXR and SoMark
Star OXR on GitHub ⭐
Star OXR on GitHub
github.com/SoMarkAI/OXR


