curl --request POST \
--url https://api.example.com/v1/ocrExtract text from PDFs and images
curl --request POST \
--url https://api.example.com/v1/ocrcurl -X POST https://api.dedaluslabs.ai/v1/ocr \
-H "Authorization: Bearer $DEDALUS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "mistral-ocr-latest",
"document": {
"type": "document_url",
"document_url": "https://arxiv.org/pdf/1706.03762"
}
}'
data:application/pdf;base64, {base64_data}{
"pages": [
{
"index": 0,
"markdown": "# Attention Is All You Need\n\nAshish Vaswani, Noam Shazeer...\n\n# Abstract\n\nThe dominant sequence transduction models..."
},
{
"index": 1,
"markdown": "## 1 Introduction\n\nRecurrent neural networks..."
}
],
"model": "mistral-ocr-latest"
}
| Parameter | Type | Required | Description |
|---|---|---|---|
model | string | No | OCR model. Default: mistral-ocr-latest |
document.type | string | Yes | Always document_url |
document.document_url | string | Yes | HTTPS URL or data URI |
Was this page helpful?