Document ExtractionAsk AIpost https://{endpoint}/v2/extractBody Paramsextractor_idstringrequiredExtractor IDimagefileThe image file, can be a JPG, PNG or PDF file Either specify this or provide the image_url parameterimage_urlstringURL of the image to be processed in jpg or png format, or URL of a pdf filepdf_dpinumberDefaults to 150DPI of the uploaded pdf fileocr_enginestringenumOCR Enginegoogleazureazure-v4tesseractAllowed:googleazureazure-v4tesseractoriginal_file_namestringoriginal file nameasyncstringenumDefaults to falseFlag for using the asynchronous modetruefalseAllowed:truefalseauto_adjust_image_sizestringenumDefaults to trueFlag for auto adjusting image size for better extraction result, it will take a longer for extraction if enabledtruefalseAllowed:truefalseoutput_ocrstringenumDefaults to falseFlag for returning OCR result in the response.yesnotruefalsepreserve-whitespaceAllowed:yesnotruefalsepreserve-whitespaceprocessing_modestringenumDefaults to per-pageProcessing mode: If set, it will override the processing mode setting on the specified extractor. Please note that the per-file mode is not supported by all models. When it is not applicable, only the first page of the file will be processed.per-pageper-filemultiple-documents-per-pagemultiple-documents-per-fileAllowed:per-pageper-filemultiple-documents-per-pagemultiple-documents-per-fileextra_datastringlength ≤ 2048Pass extra data as ASCII string to FormX. For structured data, consider represent it as JSON. For string containing non-ASCII string, consider encode it with base64import_to_accuracy_centerstringenumDefaults to falseshould import to accuracy centertruefalseAllowed:truefalseResponses 200Success 202Accepted async extraction 4XXFailureUpdated about 1 month ago