All models

IBM

Granite Docling V2 500M

About

Granite Docling V2 500M is a 0.54B open-weight model from IBM. Page to Markdown, or every element with its type and box in one call. It accepts text, images, and documents. Context window is 32K. Released November 30, 2026.

  • Parameters

    0.54B

    Published parameter count.

  • Context window

    32K

    Tokens of context on a request.

  • 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.10
Cached input / 1M$0.02
Output / 1M$0.20

Compare

Granite Docling V2 500M is one of the catalog's OCR models. The table is each model's published price, size, and context.

ModelWhat it doesPriceParametersContext
Granite Docling V2 500MPage to Markdown, or every element with its type and box in one call.$0.10 / 1M input0.54B32K
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—
Granite Docling V2 2BPage to Markdown, or every element with its type and box in one call.$0.10 / 1M input2.2B32K
dots.mocrMultilingual document layout parsing and markdown OCR.$0.20 / 1M input3B24K

Benchmarks

Published scores for Granite Docling V2 500M, from the Granite Docling V2 500M model card. Page content 1 − NED on DocLang ground truth revised by IBM. Not comparable with the leaderboard scores of each benchmark.

Evals
ReadingExample
QualitativeClear structure, grounded in the input
QuantitativeOmniDocBench v1.6: 93.6.
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

    249 ms

  • Throughput

    —

  • Requests

    65

Supported inputs

  • textOptional

    A text part replaces the method's prompt. The model reads only DocLang prompts, so send the media alone and pick the output with method. A request with no media part is a 400.

  • image_urlYes

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

  • video_urlNo

    A 400.

  • document_urlYes

    A PDF, up to 128 pages, rasterized per page at document_dpi (default 96). See Document Inputs.

  • Default method markdown. parse returns every element with its type, box and text; layout returns the boxes and types alone.
  • Context window 32,768 tokens, with a maximum output of 16,384 tokens.
  • Weights: ibm-granite/granite-docling-v2-500m, a 0.54B fine-tune of Granite 4.0 350M. Aliases are listed below.

Methods

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

MethodReturns
markdownReading-order Markdown string (default). Tables come back as HTML, formulas as LaTeX.
parseBlock items with bbox_xywh, label, and text
layoutRegion items with bbox_xywh, label, and order, no text
ocrThe page text in reading order, without tables and formulas
tableOnly the tables, as HTML, each with its caption
formulaOnly the formulas, as LaTeX between $$

Text mode emits the payload alone for one image, and one <document> / <page> block per PDF, each page declaring its kind in format. In JSON mode an image content is the string or the container above, and a document page content is always doc.page.blocks. See Methods & Response Format.

Each method sends a fixed DocLang prompt: <doclang> for markdown and parse, <doclang> [<task>] for the others. markdown and parse read the same reply, so they bill the same output tokens. A method that finds nothing on the page, such as formula on a page with no formula, returns an empty string. The model places boxes on a 512 grid; the Gateway normalizes every box to 0-1 against the image or rasterized page.

Grounding

parse returns what is on the page and where it is, in one call. Send the media alone; the method picks the prompt:

response = client.chat.completions.create(
    model="ibm-granite/granite-docling-v2-500m",
    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": "parse"},
)

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

The reply is the block container, alone in text mode and under content in JSON mode. Trimmed to four blocks:

{"object": "doc.page.blocks", "items": [{"block_id": 0, "bbox_xywh": [0.0723, 0.0215, 0.2188, 0.0137], "label": "page_header", "text": "ACME Corp - Annual Report"}, {"block_id": 1, "bbox_xywh": [0.0723, 0.0762, 0.3789, 0.0312], "label": "heading", "text": "## Annual Report 2024"}, {"block_id": 2, "bbox_xywh": [0.0723, 0.1406, 0.125, 0.0195], "label": "heading", "text": "## Overview"}, {"block_id": 3, "bbox_xywh": [0.0723, 0.1777, 0.5703, 0.0176], "label": "text", "text": "The company reported revenue of $1.2M, up from $0.9M in 2023."}]}
LabelText
headingMarkdown heading, one # per level
tableHTML, after its caption
formulaLaTeX between $$
codeA fenced code block
list_itemOne item, as - or 1.
pictureIts caption and description; no text when it has neither
text, page_header, page_footer, and other labelsMarkdown

On a PDF each page's content is doc.page.blocks with the same items. Set method="layout" for the boxes and labels alone.

Aliases

ibm-granite/granite-docling-v2-500m (preferred), granite-docling-v2-500m, and ibm-granite/Granite-Docling-V2-500M all resolve to this model.

Estimate cost

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

$0.45

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="ibm-granite/granite-docling-v2-500m",
    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

One <document> block per PDF, one <page> block per page:

invoice.pdf2 pages

Page 0

ACME Corp - Annual Report

Annual Report 2024

Overview

The company reported revenue of $1.2M, up from $0.9M in 2023.

Table 1: Revenue by year

<table><tr><td>Metric</td><td>2023</td><td>2024</td></tr><tr><td>Revenue</td><td>0.9M</td><td>1.2M</td></tr><tr><td>Profit</td><td>0.1M</td><td>0.3M</td></tr></table>

Growth follows the compound rate:

$$r=(R1/RO)^{(1/n)}-1$$

Page 1

Page 1

ACME Corp - Annual Report

Annual Report 2024

Overview

The company reported revenue of $1.2M, up from $0.9M in 2023.

Table 1: Revenue by year

<table><tr><td>Metric</td><td>2023</td><td>2024</td></tr><tr><td>Revenue</td><td>0.9M</td><td>1.2M</td></tr><tr><td>Profit</td><td>0.1M</td><td>0.3M</td></tr></table>

Growth follows the compound rate:

$$r=(R1/RO)^{(1/n)}-1$$

Page 1

A single image returns the Markdown string alone, with no wrapper.

Get an API key. Ship vision today.