All models

ibm-granite

Granite Docling V2 500M

About

Granite Docling V2 500M is an open-weight model from ibm-granite. IBM Granite Docling V2 (500M): 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. It accepts text, images, and documents. Context window is 32K. Released July 24, 2026.

  • Context window

    32K

    Tokens of context on a request.

  • 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
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 500MIBM Granite Docling V2 (500M): 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
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 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
dots.mocrMultilingual document layout parsing and markdown OCR.$0.20 / 1M input3B24K

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

Methods

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

MethodReturns
markdownThe page as Markdown
parsePayload for this method
layoutLayout regions
ocrLines of text
tableTables as Markdown
formulaFormulas as Markdown

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": "text", "text": "What is happening in this image?"},
                {"type": "image_url", "image_url": {"url": "https://storage.googleapis.com/vlm-data-public-prod/hub/examples/image.caption/car.jpg"}},
            ],
        }
    ],
)

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

Get an API key. Ship vision today.