All models

VLM Run

OCR Auto

About

OCR Auto is an open-weight model from VLM Run. Routes each method to its best OCR engine: ocr and redact to PP-OCRv6, markdown to a fast CPU parser (Nemotron Parse on error), layout to Nemotron Parse (dots.mocr on error). It accepts text, images, and documents.

Each method is routed: markdown to a CPU document parser, ocr and layout to models on the Gateway. The reply's model names the engine that ran, and a routed call bills as that model.

  • License

    —

    License on the weights.

Pricing

Token rates are US dollars per 1M tokens. Image rates are per 1K images. Audio rates are per 1M audio seconds.

RatePrice
Min per call$0.001

Compare

OCR Auto has the lowest published input rate of these OCR models, $0.001 min per call.

ModelWhat it doesPriceParametersContext
OCR AutoRoutes each method to its best OCR engine: ocr and redact to PP-OCRv6, markdown to a fast CPU parser (Nemotron Parse on error), layout to Nemotron Parse (dots.mocr on error).$0.001 min per call——
dots.mocrMultilingual document layout parsing and markdown OCR.$0.20 / 1M input3B24K
GLM-OCRCompact multilingual document OCR and markdown extraction.$0.10 / 1M input0.9B8K
Granite Docling V2 2BIBM Granite Docling V2 (2B): page to Markdown with HTML tables; `parse` for each element's box, type and text, `layout` for boxes and types only; `ocr`, `table` or `formula` for just that content.$0.10 / 1M input—32K

Benchmarks

No published eval is on file for this model.

ReadingExample
QualitativeClear structure, grounded in the input
QuantitativeNo published score on file.
Cost and performanceLower listed rate, mid-pack latency

Examples

  • Commercial invoice from ACME Supply Co. with twelve line items and totals

    Invoice to Markdown

    markdown

Methods

Methods this model serves. Payload shapes are in the docs.

MethodReturns
markdownThe page as Markdown
ocrLines of text
redactPayload for this method
layoutLayout regions

Supported inputs

  • image_urlYes

    One per request. An engine that cannot read an image is skipped for the next one in the route.

  • video_urlNo

    Not accepted.

  • document_urlYes

    A PDF. markdown parses it on the CPU parser; ocr and layout run their model a page at a time. See Document Inputs.

  • Default method markdown.
  • Alias: ocr:auto.

Routes

MethodRuns onOn a 5xx, falls back toReply
markdown (default)The CPU document parserrednote-hilab/dots.mocr markdownThe document as one Markdown string
ocrpaddleocr/pp-ocrv6 ocrnonePP-OCRv6's lines, with boxes, text, and scores
layoutnvidia/nemotron-3.5-parse layoutrednote-hilab/dots.mocr parse_layoutdoc.page.blocks per page: bbox_xywh and label, plus text when dots.mocr ran

A fallback runs on a 5xx or a network error only. A 4xx (a bad document, a bad parameter) returns as is. A method that runs on another model replies as that model does.

Method parameters

ParameterDefaultDescription
ocrautomarkdown on the CPU parser: force runs OCR on every page, off on none, and auto leaves it to the parser.

Pricing

The CPU parser bills a flat $0.001 per call, whatever the page count. A method that runs on another model bills at that model's rates: ocr as PP-OCRv6, layout as Nemotron 3.5 Parse, and a fallback as dots.mocr.

Quick start

Call this model on the OpenAI-compatible gateway. The model id is already filled in.

from openai import OpenAI

client = OpenAI(
    base_url="https://gateway.vlm.run/openai",
    api_key="<VLMRUN_API_KEY>",
)

response = client.chat.completions.create(
    model="vlm-run/ocr:auto",
    messages=[
        {
            "role": "user",
            "content": [
                {
                    "type": "document_url",
                    "document_url": {
                        "url": "https://storage.googleapis.com/vlm-data-public-prod/hub/examples/finance.sec-filings/tsla-8k.pdf"
                    },
                },
            ],
        }
    ],
    extra_body={"method": "markdown"},
)

print(response.choices[0].message.content)

Response

markdown returns the document as one Markdown string, with no <document> wrapper:

Bid Set

…

Get an API key. Ship vision today.