@@ -658,7 +658,7 @@ ocr_response = client.ocr.process(
658
658
model = " mistral-ocr-latest" ,
659
659
document = {
660
660
" type" : " image_url" ,
661
- " image_url" : " https://media-cldnry.s-nbcnews .com/image/upload/t_fit-560w,f_avif,q_auto:eco,dpr_2/rockcms/2023-11/short-quotes-swl-231117-02-33d404.jpg "
661
+ " image_url" : " https://raw.githubusercontent .com/mistralai/cookbook/refs/heads/main/mistral/ocr/receipt.png "
662
662
}
663
663
)
664
664
```
@@ -712,7 +712,7 @@ const ocrResponse = await client.ocr.process({
712
712
model: " mistral-ocr-latest" ,
713
713
document: {
714
714
type: " image_url" ,
715
- imageUrl: " https://media-cldnry.s-nbcnews .com/image/upload/t_fit-560w,f_avif,q_auto:eco,dpr_2/rockcms/2023-11/short-quotes-swl-231117-02-33d404.jpg " ,
715
+ imageUrl: " https://raw.githubusercontent .com/mistralai/cookbook/refs/heads/main/mistral/ocr/receipt.png " ,
716
716
}
717
717
});
718
718
```
@@ -726,7 +726,7 @@ curl https://api.mistral.ai/v1/ocr \
726
726
"model": "mistral-ocr-latest",
727
727
"document": {
728
728
"type": "image_url",
729
- "image_url": "https://media-cldnry.s-nbcnews .com/image/upload/t_fit-560w,f_avif,q_auto:eco,dpr_2/rockcms/2023-11/short-quotes-swl-231117-02-33d404.jpg "
729
+ "image_url": "https://raw.githubusercontent .com/mistralai/cookbook/refs/heads/main/mistral/ocr/receipt.png "
730
730
}
731
731
}' -o ocr_output.json
732
732
```
@@ -877,4 +877,4 @@ For more information and guides on how to make use of OCR and leverage document
877
877
878
878
## FAQ
879
879
### Are there any limits regarding the OCR API?
880
- Yes, there are certain limitations for the OCR API. Uploaded document files must not exceed 50 MB in size and should be no longer than 1,000 pages.
880
+ Yes, there are certain limitations for the OCR API. Uploaded document files must not exceed 50 MB in size and should be no longer than 1,000 pages.
0 commit comments