deepseek-ai/DeepSeek-OCR — Free API

siliconflow/deepseek-ai-deepseek-ocr
chat

What is deepseek-ai/DeepSeek-OCR?

DeepSeek OCR is a specialized optical character recognition model, available free on SiliconFlow's API. Unlike general-purpose models, it is optimized specifically for extracting text from images, documents, and screenshots. OpenAI-compatible endpoint. Ideal for document digitization pipelines and data extraction workflows. Free tier requires registration.

Model ID
deepseek-ai-deepseek-ocr
Base URL
https://api.siliconflow.cn/v1

deepseek-ai/DeepSeek-OCR API Code Example

Paste your API key and run. See the config generator for Claude Code, Cursor, and more tools.

from openai import OpenAI

client = OpenAI(
    base_url="https://api.siliconflow.cn/v1",
    api_key="YOUR_API_KEY"
)

response = client.chat.completions.create(
    model="deepseek-ai-deepseek-ocr",
    messages=[{"role": "user", "content": "Hello!"}]
)
print(response.choices[0].message.content)
import OpenAI from "openai";

const openai = new OpenAI({
  baseURL: "https://api.siliconflow.cn/v1",
  apiKey: "YOUR_API_KEY",
});

const completion = await openai.chat.completions.create({
  model: "deepseek-ai-deepseek-ocr",
  messages: [{ role: "user", content: "Hello!" }],
});

console.log(completion.choices[0].message.content);
curl https://api.siliconflow.cn/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "deepseek-ai-deepseek-ocr",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

Other Free Models from SiliconFlow

More About SiliconFlow

How to get an API key, rate limits, platform limitations, and tool configuration — everything you need to set up SiliconFlow as a free LLM API backend.

View SiliconFlow full guide →