English · 简体中文
- Product Overview, Capabilities, and Limitations
- Deployment and Integration
- Evaluation and Operating Costs
- Model Architecture and Training
- Online Services and Licensing
- Troubleshooting and Feedback
OXR (Optical Everything Recognition) is an open-source document parsing model from the SoMark team. With 1.3B parameters, it turns PDFs and document images into Agent-Friendly data in Markdown or JSON, with layout coordinates included.
OXR currently performs well on digital documents, including academic papers, research reports, complex tables, formulas, and A3 exam papers. Natural-scene images, such as photos of documents, are not a focus of this version, so we recommend testing thoroughly on your own documents before use.
File formats: OXR supports PDFs and common images such as png, jpg, jpeg, bmp, tiff, and webp. gif, heic, heif, and Office files are not supported yet; convert Office files to PDF before submitting. See API alignment: File formats.
Languages: OXR has mainly been trained on Chinese and English. It should work well on CJK and Western languages, but performance on other languages is not guaranteed. Multilingual support is not a focus of this version, and we will keep improving it in future releases.
Traditional OCR mainly recognizes text. OXR also recognizes document elements and structure: it can recognize 13 document element types, from formulas and tables to chemical equations, chemical structures, and code blocks, with bounding box coordinates and reading order. See the README for details.
The OXR model itself does not handle detection. Layout analysis is an independent, pluggable module handled by a separate lightweight model, while OXR handles recognition and reading order.
A built-in layout model is included in the layout_analysis folder of the OXR weights, and you can replace it with your own. See this blog post for the design details.
OXR does not parse CAD files such as DWG or DXF directly. Please convert them to PDF or images first.
Because different use cases expect very different results from CAD drawings, OXR parses them as general documents. SoMark's commercial version offers several dedicated solutions for CAD drawings. If you're interested, contact the SoMark team at somark.ai.
6. Can OXR directly extract information such as dates, amounts, and IDs into a specified field structure?
Not currently. You can first use OXR to parse the document, then feed the parsed results to a large language model (LLM) to extract the required fields, such as dates, amounts, and ID numbers.
OXR does not currently support merging tables across pages. If you need this, you can use SoMark.
OXR is a complete, standalone open-source document parsing model for teams that want to use an open-source model or self-host.
SoMark is a commercial, production-grade document parsing engine from the same team, powered by a separate model. It is not a wrapper around OXR or a "full version" of it. Their APIs are compatible, so you can reuse the same integration tools.
If you need features such as cross-page merging, title level recognition, PDF to Office, or custom development, consider SoMark. See the OXR overview.
OXR's API is compatible with the SoMark API, so SoMark's ecosystem fully supports OXR services, including the Free OXR API and self-hosted deployments. You can integrate OXR via:
| Method | Best for |
|---|---|
| API | Direct HTTP integration |
| CLI | Terminals, scripts, and batch jobs |
| SDK | Apps, services, and code integration (Python and JavaScript) |
| Skill | Skill-based agent platforms |
| MCP | MCP-based AI clients |
For the CLI and SDK, just change the Base URL. See the Getting Started Overview.
10. How can OXR integrate a custom layout analysis model? How are cropped regions and coordinates passed to the recognition stage?
OXR supports replacing its layout analysis module. To use your own model:
- Follow the built-in service's interface and return element categories, bounding boxes, and confidence scores for each page.
- Configure the service URL in
config.yaml.
OXR uses the coordinates to crop page regions for content recognition and determines the reading order. If your model already provides reading order, you can configure OXR to skip that step.
For interface and configuration details, see services/layout_analyze and oxr/model/prompts.py in this repository.
We released the original 1.3B model in BF16. We recommend starting with 24GB of GPU memory on a single GPU, though community reports show it can also run on 12–16GB. See the README for full requirements.
No. OXR runs on vLLM, so in principle it can run on any hardware that vLLM supports.
Yes, though it will be slower. You can also consider quantized community versions, such as GGUF or ONNX.
Yes, but setting up the official version on a Mac takes more effort. You can check whether the community has a solution, and PRs are welcome.
No. The OXR series is not designed for on-device use, and we believe on-device scenarios are better served by other approaches.
Yes, it can run fully offline. OXR's weights are open source. Once the runtime environment is set up, it does not call any external services during parsing.
Ollama is not officially supported yet. You can check whether the community has a solution, and PRs are welcome.
We do not provide official versions in these formats. You can check whether the community has published one.
We currently support and recommend vLLM 0.25.1. vLLM updates frequently, and we have not tested every version. Since OXR does not use particularly complex operators, later versions should generally work as well.
See the OXR evaluation documentation, which lists the results, evaluation scope, and related notes for olmOCR-bench, OmniDocBench, and DocParsingBench. Per-language evaluation results are not currently available.
You can estimate it based on your hardware cost and actual throughput:
Per-page cost ≈ hourly hardware cost ÷ pages processed per hour
Throughput varies considerably with hardware, document types, and concurrency settings, so we recommend benchmarking with your own documents on your target hardware. For reference, OXR reaches about 0.99 pages/s end-to-end on a single NVIDIA RTX PRO 6000 Blackwell GPU. See the OXR evaluation documentation for the test conditions.
Yes. OXR uses an in-house model architecture, pretrained from scratch and built specifically for document parsing.
RSI (Recursive Self-Improvement) is the training approach OXR uses during post-training. See this blog post for details.
OXR does not learn from your documents while you use it. We improve the model using online data from the OXR Free API only. SoMark data is strictly confidential and is never used for training.
The RSI training code is not open source.
No. Accounts on SoMark's China site (somark.cn) and international site (somark.ai) are separate, so you need to register on each one.
Yes. Based on community feedback, we simplified the license on November 6, 2026, by removing the previous competition clause and applying a single size-based rule instead. OXR is released under the OXR Open Source License, a custom license based on Apache 2.0 with additional terms. The key terms are:
- If you and your Affiliates exceed USD 2,000,000 in either Total Funding (equity or debt) or Annual Revenue, you need a separate commercial license from us, for both internal use and products or services offered to third parties. Personal use and non-commercial research, including academic research, benchmarking, evaluation, and teaching, are not restricted by this term.
- If you use OXR to provide products or services to third parties without a commercial license, you must prominently display "Powered by SoMark OXR" with a link to GitHub.
See the full LICENSE for details. For commercial licensing, contact official@somark.ai.
27. Why can reading order results differ between the online demo and a local deployment? How can I troubleshoot the difference?
Differences in GPU, CUDA version, and vLLM version can all lead to different outputs. We recommend first matching the official environment exactly (see the requirements and Docker setup in the README), then comparing again to rule out environmental factors.
You can report issues on GitHub Issues. Please include a description of the problem, steps to reproduce, your environment, and sample files.
If your files can't be shared publicly, submit them through our feedback page. Please remove any sensitive information first. Our focus is on the parsing issue rather than the specific content of your documents, but please make sure you have the right to share the materials you submit.