All models

DeepSeek

DeepSeek-OCR-2

About

DeepSeek-OCR-2 is a 3.4B open-weight model from DeepSeek. DeepSeek OCR 2 and markdown extraction. It accepts text, images, and documents. Context window is 32K. License is MIT. Released January 27, 2026.

  • Parameters

    3.4B

    Published parameter count.

  • Context window

    32K

    Tokens of context on a request.

  • License

    MIT

    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.25
Cached input / 1M$0.25
Output / 1M$0.80

Compare

DeepSeek-OCR-2 is one of the catalog's OCR models. The table is each model's published price, size, and context.

ModelWhat it doesPriceParametersContext
DeepSeek-OCR-2DeepSeek OCR 2 and markdown extraction.$0.25 / 1M input3.4B32K
PP-OCRv6PaddleOCR PP-OCRv6 medium text detection and recognition; scene OCR JSONL on image chat; text returns plain text; document_url fan-out via text.$0.01 / 1M input20M
dots.mocrMultilingual document layout parsing and markdown OCR.$0.20 / 1M input3B32K
PaddleOCR-VL 1.6PaddleOCR-VL-1.6 for OCR, tables, formulas, and charts.$0.15 / 1M input0.9B16K

Benchmarks

Published scores for DeepSeek-OCR-2, from the OmniDocBench leaderboard.

Evals
ReadingExample
QualitativeClear structure, grounded in the input
QuantitativeOmniDocBench v1.6: 90.25.
Cost and performanceLower listed rate, mid-pack latency

Methods

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

MethodReturns
ocrLines of text
markdownThe page as Markdown
free_ocrPlain text
grounding_ocrBoxes for a phrase you name

Estimate cost

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

$1.10

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/v1/openai",
    api_key="<VLMRUN_API_KEY>",
)

response = client.chat.completions.create(
    model="deepseek-ai/deepseek-ocr-2",
    messages=[{"role": "user", "content": "What is in this image?"}],
)

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

Get an API key. Ship vision today.