/extract (header)Ask AIpost deprecatedhttps://{endpoint}/extractBody ParamsHeadersX-WORKER-FORM-IDstringrequiredForm IDX-WORKER-IMAGE-URLstringURL of the image to be processed in jpg or png format, or URL of a pdf fileX-WORKER-ENCODINGstringenumDefaults to rawEncoding of the request body, allowed raw or base64rawbase64Allowed:rawbase64X-WORKER-PDF-DPInumberDefaults to 150DPI of the uploaded pdf fileX-WORKER-OCR-ENGINEstringenumOCR Enginegoogleazureazure-v4tesseractAllowed:googleazureazure-v4tesseractX-WORKER-ORIGINAL-FILE-NAMEstringoriginal file nameX-WORKER-ASYNCstringenumDefaults to falseFlag for using the asynchronous modetruefalseAllowed:truefalseX-WORKER-SHOULD-MULTI-PAGE-PDFstringDefaults to falseFlag for processing all pages in a PDF file. If "false", only the first page is proccessed.X-WORKER-SHOULD-DETECT-MULTI-DOCUMENTstringDefaults to falseFlag for detecting multiple documents in a page. Turn this on if more than one documents are in each page. For example, 3 identity cards in a scanX-WORKER-AUTO-ADJUST-IMAGE-SIZEstringenumDefaults to trueFlag for auto adjusting image size for better extraction result, it will take a longer for extraction if enabledtruefalseAllowed:truefalseX-WORKER-OUTPUT-OCRstringenumDefaults to falseFlag for returning OCR result in the response.yesnotruefalsepreserve-whitespaceAllowed:yesnotruefalsepreserve-whitespaceX-WORKER-EXTRA-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 base64X-WORKER-SHOW-CONFIDENCEstringenumDefaults to falseFlag for showing confidence score in responsetruefalseAllowed:truefalseX-WORKER-RETURN-REQUEST-IDstringenumDefaults to falseFlag for including request_id in the responsetruefalseAllowed:truefalseResponses 200Success 202Accepted async extraction 4XXFailureUpdated 3 months ago