---
title: "Ocr"
method: POST
path: "/v1/ocr"
tags: ["ocr"]
---

# Ocr

`POST /v1/ocr`

OCR endpoint for extracting text from documents and images.

Supports two input modes:

**1. JSON body** (Mistral OCR API compatible):
```bash
curl -X POST "http://localhost:4000/v1/ocr"         -H "Authorization: Bearer sk-1234"         -H "Content-Type: application/json"         -d '{
        "model": "mistral-ocr",
        "document": {
            "type": "document_url",
            "document_url": "https://arxiv.org/pdf/2201.04234"
        }
    }'
```

**2. Multipart form file upload**:
```bash
curl -X POST "http://localhost:4000/v1/ocr"         -H "Authorization: Bearer sk-1234"         -F "model=mistral-ocr"         -F "file=@document.pdf"
```

## Response `200`

Successful Response

- unknown

---

[API](https://skmtc.net/sea-lion/apis/litellm-api.md) · [All operations](https://skmtc.net/sea-lion/apis/litellm-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/sea-lion/litellm-api/revisions/1e929292ddd5/schema)
