Skip to content

API

API backend configuration for DeepSeek-OCR text extraction.

Novita AI

https://novita.ai/models/model-detail/deepseek-deepseek-ocr

Note: DeepSeek-OCR-2 API availability may vary by provider — check novita.ai for updated model slugs as providers onboard the new version.

DeepSeekOCRTextAPIConfig

Bases: BaseModel

API backend configuration for DeepSeek-OCR / DeepSeek-OCR-2 text extraction.

Uses litellm for provider-agnostic API access. Primary provider: Novita AI (official hosting).

Example
# Novita AI (reads NOVITA_API_KEY from env)
config = DeepSeekOCRTextAPIConfig(
    model="novita/deepseek/deepseek-ocr",
)