csviverdeia/deepseek-ocr-2
DeepSeek-OCR 2 (3.4B) - OCR multilíngue com extração estruturada de documentos (markdown)
Run csviverdeia/deepseek-ocr-2 with an API
Use one of our client libraries to get started quickly. Clicking on a library will take you to the Playground tab where you can tweak different inputs, see the results, and copy the corresponding code to use in your own project.
Input schema
The fields you can use to run this model with an API. If you don't give a value for a field its default value will be used.
| Field | Type | Default value | Description |
|---|---|---|---|
| image |
string
|
Imagem com texto (.jpg/.png/.webp) para extrair OCR.
|
|
| mode |
None
|
markdown
|
Modo de extração.
|
| custom_prompt |
string
|
|
(Apenas se mode=custom) Prompt customizado. Deve começar com '<image>\n'.
|
| base_size |
integer
|
1024
Min: 512 Max: 2048 |
Resolução base (recomendado 1024).
|
| image_size |
integer
|
768
Min: 512 Max: 1536 |
Resolução de crop (recomendado 768).
|
| crop_mode |
boolean
|
True
|
Ativa modo crop dinâmico (mais preciso em documentos grandes).
|
{
"type": "object",
"title": "Input",
"required": [
"image"
],
"properties": {
"mode": {
"enum": [
"markdown",
"free_ocr",
"custom"
],
"type": "string",
"title": "mode",
"description": "Modo de extra\u00e7\u00e3o.",
"default": "markdown",
"x-order": 1
},
"image": {
"type": "string",
"title": "Image",
"format": "uri",
"x-order": 0,
"description": "Imagem com texto (.jpg/.png/.webp) para extrair OCR."
},
"base_size": {
"type": "integer",
"title": "Base Size",
"default": 1024,
"maximum": 2048,
"minimum": 512,
"x-order": 3,
"description": "Resolu\u00e7\u00e3o base (recomendado 1024)."
},
"crop_mode": {
"type": "boolean",
"title": "Crop Mode",
"default": true,
"x-order": 5,
"description": "Ativa modo crop din\u00e2mico (mais preciso em documentos grandes)."
},
"image_size": {
"type": "integer",
"title": "Image Size",
"default": 768,
"maximum": 1536,
"minimum": 512,
"x-order": 4,
"description": "Resolu\u00e7\u00e3o de crop (recomendado 768)."
},
"custom_prompt": {
"type": "string",
"title": "Custom Prompt",
"default": "",
"x-order": 2,
"description": "(Apenas se mode=custom) Prompt customizado. Deve come\u00e7ar com '<image>\\n'."
}
}
}
Output schema
The shape of the response you’ll get when you run this model with an API.
{
"type": "string",
"title": "Output"
}