import { OCRRequest } from "@mistralai/mistralai/models/components";
let value: OCRRequest = {
model: "Durango",
document: {
imageUrl: {
url: "https://knotty-exasperation.org/",
},
type: "image_url",
},
};
Field |
Type |
Required |
Description |
model |
string |
✔️ |
N/A |
id |
string |
➖ |
N/A |
document |
components.Document |
✔️ |
Document to run OCR on |
pages |
number[] |
➖ |
Specific pages user wants to process in various formats: single number, range, or list of both. Starts from 0 |
includeImageBase64 |
boolean |
➖ |
Include image URLs in response |
imageLimit |
number |
➖ |
Max images to extract |
imageMinSize |
number |
➖ |
Minimum height and width of image to extract |