DoublewordDoubleword

Model Name

deepseek-ai/DeepSeek-OCR-2

DeepSeek OCR 2

  • Type: OCR
  • Capabilities: vision

Overview

Meet DeepSeek-OCR-2 - Deepseek's latest OCR model. This model expands on Deepseek-OCR with a novel causal vision encoder that captures reading order to enhance structured extraction of text.


Usage Tips

Use Free OCR. for plain text extraction when you want only the text content from the image, without preserving layout or structure.

messages = [{"role": "user", "content": [{"type": "text", "text": "Free OCR."}, {"type": "image_url", "image_url": {"url": image_url}}]}]

Use <|grounding|>Convert the document to markdown. for structured markdown extraction when you want to preserve headings, paragraphs, lists, and tables.

messages = [{"role": "user", "content": [{"type": "text", "text": "<|grounding|>Convert the document to markdown."}, {"type": "image_url", "image_url": {"url": image_url}}]}]

Pricing

PriorityInput Tokens (per 1M)Output Tokens (per 1M)
High (1h)$0.08$0.08
Standard (24h)$0.05$0.05

Playground

Open this model in the Playground.