ocr
Ocr
OCR endpoint for extracting text from documents and images.
Supports two input modes:
1. JSON body (Mistral OCR API compatible):
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:
curl -X POST "http://localhost:4000/v1/ocr" -H "Authorization: Bearer sk-1234" -F "model=mistral-ocr" -F "file=@document.pdf"
post/ocr
Request
- Base URL: https://api.sea-lion.ai (the document declares no server; this is the origin it was published from)
- URL: https://api.sea-lion.ai/ocr
- Auth: one of:
- API key in header x-litellm-api-key
- API key in header x-litellm-api-key
- API key in header x-litellm-api-key
- API key in header x-litellm-api-key
- API key in header x-litellm-api-key
- API key in header x-litellm-api-key
Response
Successful Response
unknown required
Changes
No recorded changes to this operation across all 78 revisions of this API.