Skip to content

Latest commit

 

History

History
29 lines (24 loc) · 4.24 KB

ocrrequest.md

File metadata and controls

29 lines (24 loc) · 4.24 KB

OCRRequest

Example Usage

import { OCRRequest } from "@mistralai/mistralai/models/components";

let value: OCRRequest = {
  model: "Durango",
  document: {
    imageUrl: {
      url: "https://knotty-exasperation.org/",
    },
    type: "image_url",
  },
};

Fields

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