Dataset
Estimate credit cost for document preprocessing
Changed onQuotes the credits that extracting a document dataset (pdf, docx, pptx, xlsx, html, or a zip of them) will reserve, from the page count of each document. Pass the same pages_to_process or documents_to_process you intend to launch with. Page counting runs in the background after upload, so isFinal: false means the quote is still partial — poll until it is true. Start extraction with POST /datasets/{dataset_id}/launch-preprocessing.
get/api/v1/datasets/{dataset_id}/preprocessing-credits
Request
- The document declares no server URL.
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
dataset_idstring required
Query parameters
pages_to_processnumber
Maximum number of pages to process. Documents are included until this budget is reached. If omitted, all pages are processed.
documents_to_processnumber
Maximum number of documents to process. If omitted, all documents are processed.
Response
Changes
- info
endpoint added
- info