wait_seconds is a query
parameter; Idempotency-Key is a header.
Classify, like Split, Extract and Ground, accepts a
parse_result source. Parse figures.mode defaults to
include. Pass describe to add a generated caption per figure. Field lists live on the generated curl pages in this tab. SDK
signatures are on Python and TypeScript.
Workspace delivery
Zero-retention tenants can submit Parse, Extract, Split, Classify or Ground withwait_seconds=0 by setting result_delivery: "workspace", an explicit
output_workspace_id for connected customer storage, and a workspace_file
source. NDI writes result.json and any artifacts to that workspace. Poll the job for
result_download_url and download result.json with your API key. The job reports
result_state: "not_retained". NDI refuses the request with 422 invalid_request
when the account is not Zero retention, the source is not a workspace file, the
output workspace is missing or has no customer storage, or the operation is Categorize.
A replay under the same idempotency key must send the same result_delivery and
output_workspace_id. If publishing to your storage fails, the job fails and is not billed.
See the Parse guide.
Parse settings for Split, Classify, Extract, and Ground
Split, Classify, Extract, and Ground read a Parse of the source first. The optionalparse section sets that
Parse with the same field names as POST /v1/parse. Leave it out and the operation reads the default Parse.
-
Figures. The real choice is to keep figures or omit them. The operation reads its own text from the Parse,
so the caption that
describeadds onPOST /v1/parsemakes no difference here.includeanddescribeare treated as the default, and onlyomitchanges the Parse. -
Default settings. A
parsesection that matches the default, such as{"parse_mode": "low"}or{"figures": {"mode": "include"}}, is the same request as no section. It is not stored with the job. -
Top-level fields. Split, Classify, and Extract also accept
parse_modeandpage_rangesat the top level. Set each one there or inparse. If you set both, they must name the same mode or the same pages, or the request fails withinvalid_request. -
Settings a file type cannot use. They are accepted, left out of the Parse, and listed in the result’s
warnings. See Warnings. Aparse_modeofmediumorhighon such a file runs the low Parse and bills as low. -
Billing.
parse.parse_mode: "high"bills the same as top-levelparse_mode: "high"when the file type applies it. See Units. -
Reused Parse. A
parse_resultsource reuses a finished Parse, so no Parse runs. Onlypage_rangesapplies, as a filter on the pages that Parse marked. Other settings are listed inwarnings. Run Parse with the options you want first instead. - Other Parse options. Output, chunking, and password options are not accepted here. The operation decides its own output, so those fields would have no effect.
- Caching. A Parse with custom settings is cached apart from the default Parse. Two requests with the same settings on the same file share one cached Parse.
-
Ground. Ground uses the requested Parse’s text to find where each target is and keeps its own OCR for
box placement. Ground reads a requested Parse only for PDF, image, and Word sources, and only on deployments
whose Ground provider reads a Parse. Text, HTML, email, JSON, spreadsheet, presentation, and diagram sources have their own readers. New audio/video processing is unsupported. Customer-managed storage and zero retention also leave Ground nothing
to read. In each of those cases the request still succeeds: Ground reads its default Parse and the result
carries the warning
Ground did not read the Parse for this source(or the file type’s own reason) for each setting.page_rangesalways applies to sources with pages: matches on other pages are dropped. If the requested Parse could not be prepared while the job ran, the job fails with the retryableinternal_error.