All models

PaddlePaddle

PP-OCRv6

About

PP-OCRv6 is a 20M open-weight model from PaddlePaddle. PaddleOCR PP-OCRv6 medium text detection and recognition, GPU end to end; scene OCR JSONL on image chat; text returns plain text; document_url fan-out via text. It accepts images and documents. Released June 11, 2026.

  • Parameters

    20M

    Published parameter count.

  • License

    Apache-2.0

    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
Input / 1M$0.02
Cached input / 1M$0.02
Output / 1M$0.40

Compare

PP-OCRv6 is the smallest of these OCR models, at 20M, and its published input rate is the lowest, $0.02 / 1M input.

ModelWhat it doesPriceParametersContext
PP-OCRv6PaddleOCR PP-OCRv6 medium text detection and recognition, GPU end to end; scene OCR JSONL on image chat; text returns plain text; document_url fan-out via text.$0.02 / 1M input20M—
PaddleOCR-VL 1.6PaddleOCR-VL-1.6 for OCR, tables, formulas, and charts.$0.15 / 1M input0.9B16K
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

Benchmarks

Published scores for PP-OCRv6, from the PP-OCRv6 paper. Medium tier.

Evals
ReadingExample
QualitativeClear structure, grounded in the input
QuantitativeDetection Hmean: 86.2.
Cost and performanceLower listed rate, mid-pack latency

Performance

Latency is the end-to-end round trip. Throughput is completion tokens divided by that time. It is a request rate, not decode speed.

  • Latency

    57 ms

  • Throughput

    7,511 tok/s

  • Requests

    4,456

Examples

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

    Invoice text lines with boxes

    ocr

Supported inputs

  • textNo

    A request with no media part is a 400.

  • image_urlYes

    One per request. A second image_url part is a 400.

  • video_urlNo

    Not accepted.

  • document_urlYes

    One PDF, up to 128 pages, rasterized per page at document_dpi (default 96). redact reads a PDF one page per call only: document_mode: "document" is a 400. See Document Inputs.

  • Default method ocr.
  • Aliases: pp-ocrv6, pp-ocrv6:realtime, pp-ocrv6-realtime.

Methods

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

MethodReturns
ocrRegion items with bbox_xywh, optional poly_xy, text, score
detectRegion items with bbox_xywh and optional poly_xy, geometry only
textRecognized text stitched in reading order
redactThe text with each span replaced by [ENTITY_n], and one item per span with offset, length, entity, score, and bbox_xywh

The payload kind is the same for an image and for each page of a PDF. Text mode emits the payload alone for one image, and one <document> / <page> block for a PDF. In JSON mode an image content is the tagged container above, and a document page content is always doc.page.blocks. See Methods & Response Format.

Coordinates are normalized 0-1 against the image or rasterized page, at precision decimals (default 4). text is plain scene text stitched in reading order, not generative Markdown.

Method parameters

ParameterDefaultDescription
score_threshold0.5ocr and text: drop text regions below this recognition confidence (0.0-1.0). detect returns every region.
word_boxesfalsetrue adds a box for every word, grouped under its line. ocr: each image line gains words, and each PDF line block lists its word blocks in child_ids. detect: one box per word. text ignores it. Same price.
presetpiiredact: the entities to find. pii is person, address, phone, email, government ID, date of birth, and financial account. phi adds date, health ID, URL, and IP address.
threshold0.25redact: drop spans below this score (0.0-1.0).
include_textfalseredact: true adds the removed text to each span as text.

Word boxes

Set word_boxes to highlight a word or phrase on the original page. Boxes are normalized 0-1, axis-aligned, and the height of their line. Punctuation stays with its word, and confidence is per line, not per word. See the Word Boxes guide.

response = client.chat.completions.create(
    model="paddleocr/pp-ocrv6",
    messages=[
        {
            "role": "user",
            "content": [
                {
                    "type": "image_url",
                    "image_url": {
                        "url": "https://storage.googleapis.com/vlm-data-public-prod/hub/examples/document.receipt/playground/2.jpg"
                    },
                },
            ],
        }
    ],
    extra_body={"method": "ocr", "method_params": {"word_boxes": True}},
)

Each image line gains a words list, in reading order:

{
  "bbox_xywh": [0.0332, 0.0829, 0.2598, 0.0331],
  "text": "Total: $99.00",
  "score": 0.987,
  "words": [
    {"bbox_xywh": [0.0332, 0.0829, 0.0977, 0.0331], "text": "Total:"},
    {"bbox_xywh": [0.1465, 0.0829, 0.1465, 0.0331], "text": "$99.00"}
  ]
}

Redact

Set method="redact" to find personal or health data before you store or share a page. The reply is the page text with each span replaced by a placeholder such as [PERSON_1]; equal values share one number. Each span carries its placeholder's offset and length in that text, the entity, a score, and the box to mask on the page. On a PDF, block 0 of each page is the redacted text, then one block per span.

response = client.chat.completions.create(
    model="paddleocr/pp-ocrv6",
    messages=[
        {
            "role": "user",
            "content": [
                {
                    "type": "image_url",
                    "image_url": {
                        "url": "https://storage.googleapis.com/vlm-data-public-prod/hub/examples/document.invoice/invoice_1.jpg"
                    },
                },
            ],
        }
    ],
    extra_body={"method": "redact"},
)

The pii preset on an invoice photo, in text mode:

{
  "object": "img.redact.spans",
  "items": [
    {"offset": 23, "length": 11, "entity": "address", "score": 0.397, "bbox_xywh": [0.0955, 0.1712, 0.1114, 0.0123]},
    {"offset": 35, "length": 11, "entity": "address", "score": 0.397, "bbox_xywh": [0.0955, 0.1864, 0.1506, 0.0132]},
    {"offset": 78, "length": 9, "entity": "phone", "score": 0.9883, "bbox_xywh": [0.1506, 0.2034, 0.104, 0.0132]},
    {"offset": 88, "length": 9, "entity": "email", "score": 0.8423, "bbox_xywh": [0.2705, 0.2034, 0.1677, 0.0132]},
    {"offset": 144, "length": 10, "entity": "person", "score": 0.6846, "bbox_xywh": [0.2007, 0.264, 0.0747, 0.0132]}
  ],
  "text": "LOGO GOES HERE INVOICE\n[ADDRESS_1]\n[ADDRESS_2] Date: November 11, 2023\nPhone: [PHONE_1] [EMAIL_1] Invoice # 9999999\nhttp://invoice.com\nBill To: [PERSON_1] Service To: Tampa Aquarium\n1335 Martin Luther King Jr Ave, 249 Windward Passage,\nDunedin, FL 34698 Clearwater, FL 33767\nPO # Sales Rep Service Date Terms Due Date\nProduct ID Description Qty/Hours Unit Price Line Total\n1111 Service 1.00 200.00 200.00\n2222 Parts AAA 1.00 100.00 100.00\n3333 Parts BBB 2.00 50.00 100.00\nSubtotal 400.00\nNotes: Discount % 0%\nDiscount Amount 0.00\nTOTAL 400.00\nPAID 0.00\nTOTAL DUE 400.00\nTHANK YOU FOR YOUR BUSINESS!",
  "entities": ["person", "address", "phone", "email", "government_id", "date_of_birth", "financial_account"]
}

Estimate cost

Estimate. A page is 256 input tokens and 1,000 output tokens.

$0.41

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="paddleocr/pp-ocrv6",
    messages=[
        {
            "role": "user",
            "content": [
                {
                    "type": "image_url",
                    "image_url": {
                        "url": "https://storage.googleapis.com/vlm-data-public-prod/hub/examples/document.receipt/playground/2.jpg"
                    },
                },
            ],
        }
    ],
    extra_body={"method": "ocr"},
)

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

Response

A single image returns the region container alone, with no wrapper:

{"object": "img.ocr.lines", "items": [{"bbox_xywh": [0.0332, 0.0138, 0.1719, 0.0331], "poly_xy": [[0.0332, 0.0138], [0.2051, 0.0138], [0.2051, 0.047], [0.0332, 0.047]], "text": "Invoice", "score": 0.998}, {"bbox_xywh": [0.0332, 0.0829, 0.2598, 0.0331], "text": "Total: $99.00", "score": 0.987}]}

For PDFs, each page's content is doc.page.blocks, and every region becomes one block with the same geometry under a zero-based block_id. See the Document OCR guide.

Get an API key. Ship vision today.