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.
| Rate | Price |
|---|---|
| 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.
| Model | What it does | Price | Parameters | Context |
|---|---|---|---|---|
| Granite Docling V2 500M | Page to Markdown, or every element with its type and box in one call. | $0.10 / 1M input | 0.54B | 32K |
| PP-OCRv6 | 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. | $0.02 / 1M input | 20M | — |
| Granite Docling V2 2B | Page to Markdown, or every element with its type and box in one call. | $0.10 / 1M input | 2.2B | 32K |
| dots.mocr | Multilingual document layout parsing and markdown OCR. | $0.20 / 1M input | 3B | 24K |
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.
- ParseBench94.5
| Reading | Example |
|---|---|
| Qualitative | Clear structure, grounded in the input |
| Quantitative | OmniDocBench v1.6: 93.6. |
| Cost and performance | Lower 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 a400. - image_urlYes
One per request. A second
image_urlpart is a400. - 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.parsereturns every element with its type, box and text;layoutreturns 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.
| Method | Returns |
|---|---|
| markdown | Reading-order Markdown string (default). Tables come back as HTML, formulas as LaTeX. |
| parse | Block items with bbox_xywh, label, and text |
| layout | Region items with bbox_xywh, label, and order, no text |
| ocr | The page text in reading order, without tables and formulas |
| table | Only the tables, as HTML, each with its caption |
| formula | Only 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:
The reply is the block container, alone in text mode and under content in JSON mode. Trimmed to four blocks:
| Label | Text |
|---|---|
heading | Markdown heading, one # per level |
table | HTML, after its caption |
formula | LaTeX between $$ |
code | A fenced code block |
list_item | One item, as - or 1. |
picture | Its caption and description; no text when it has neither |
text, page_header, page_footer, and other labels | Markdown |
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.
Response
One <document> block per PDF, one <page> block per page:
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.
