units — the processing units that job consumed. Usage
endpoints roll those up for a time range.
- Python
- TypeScript
- cURL
GET /v1/usage/overview is the dashboard rollup. The SDK does not wrap that route yet — call it over HTTP.
Units are not the same as wall-clock seconds. A 96-page parse reports 96 units even if wait_seconds returned in one request. A failed or cancelled job may still report units for work that ran before it stopped. Failed and cancelled jobs finalize at zero billable credits even after partial delivery; their measured units remain available independently.
Final credits
Every job also reportscredits, the amount it is billed, already priced by the credit schedule
named in credit_schedule_version. Don’t multiply it by a per-tool rate. A failed or cancelled job finalizes with
credits: 0 and empty usage.lines, even if it delivered partial results. When a dollar price sheet was
pinned, its cost.total_usd is zero with no cost lines. Cancellation before completion is free even when a progressive classify or extract published labels or values. Failed or cancelled jobs finalized before this policy keep the credits they were billed. A cancelled job returns no
results (result_state: "cancelled"; see Cancellation). It is null and
usage_final is false while the job is queued or running and until its usage is settled. Once
usage_final is true, credits never changes, even after the payload expires or the job is
deleted. GET /v1/usage sums credits over jobs whose usage is final and counts the rest in
unfinalized_jobs.
Credit schedule 4
One credit is one parsed page. A spreadsheet counts one page-equivalent per 500 non-empty text cells in each sheet. Historical audio jobs counted one per started minute; new audio/video processing is unsupported. Each tool that reads a document pays a parse part and its own part:parse_mode: "high" adds OCR correction, so it doubles the parse part only: a high-effort parse is 2
credits a page, a split or classify 3, an extract 4. parse.parse_mode: "high" on a split, classify or extract
bills the same. Ground takes no top-level parse_mode, and its parse.parse_mode accepts only low and medium,
which bill the same as the default. parse.figures.mode does not change the price.
Credit schedule 6: ordinary jobs, with the unapplied-mode waiver. A parse_mode of "medium" or "high" on a
file type that parses the same at every mode (today every type except PDF, image and Word), or on a reused
parse_result, runs the low Parse, bills low and is named in the result’s warnings. Jobs without the
included-image policy report credit_schedule_version: 6.
Credit schedule 5: included images, without that waiver. This is the included-image rule from the change that
put embedded-image OCR into the ordinary Extract and Ground price. A high mode on an email or a spreadsheet still
billed high. Jobs finalized under that rule keep reporting credit_schedule_version: 5. Credits are frozen when
usage is finalized, so those jobs are not rewritten.
Credit schedule 7: included images, plus the waiver. A new extract or ground with the included-image policy
uses the schedule 5 price, and also bills low when the mode was not applied. It reports credit_schedule_version: 7.
Images in emails, HTML and spreadsheets
Credit schedules 5 and 7:
extract and ground include images. A job accepted as extract or ground with the admission-pinned included-image policy reads embedded images at no extra charge. Its image_ocr usage line retains the measured quantity at zero rate and credits, and its total credits and
cost are the ordinary per-page or per-item price. A job finalized before the unapplied-mode waiver reports credit_schedule_version: 5. A job finalized with that waiver reports credit_schedule_version: 7. units can
still count image work that was not billed. Jobs accepted without the included-image policy settle under schedule 4 or 6, and parse, split
and classify keep the image charge described below.
The same rule applies to every tool that parses the file, so a
split, classify or extract of the
email with 30 photos pays its usual per-page rate once and 30 more credits for the images. A schedule 5 or 7
extract does not pay the 30.
- Only images that were read count. An image Parse skipped or could not decode is free.
- The same image counts once. Identical image bytes inside one file are read once and billed once, however many times the file repeats them. In a workbook this holds across sheets too: a logo on every sheet is one image.
- Read pictures are no longer cells. A spreadsheet’s text bills per 500 non-empty cells as before. A picture that is read bills as an image instead of a cell. A picture that could not be read stays a cell, so a tab never bills less than before.
- Very large workbooks read a limited number of pictures. A workbook too large for the standard reader still has its pictures read, up to 500 distinct pictures per workbook, and a few size limits per picture. Pictures past a limit are not read and are free. The tab’s text says how many were left.
- High effort doubles the image rate under schedule 4. With
parse_mode: "high"each image is 2 credits, like each page. Under schedule 6 these file types run the low Parse at every mode, so each image stays 1 credit. Schedule 7 includes those images in the ordinary price, so they add no credits. - Reused parses waive the images. When a parse is waived as
reused_parse, its images are waived with it. - Nothing else changes. A PDF, an Office file rendered as pages, a presentation, and an image file bill as before. Their images are already paid through the page.
extract or ground reserves no credits for its images.
Images a ground job reads in an email
This section applies to ground jobs priced by schedule 4 or 6. A schedule 5 or 7 ground job pays 5 credits per
requested item whatever images it reads, so the second row of the table below is 10, not 16.
A ground job on an email file pays one credit for each distinct image Ground reads, on top of 5 credits
per item. Ground reads an email’s images only to look for items its text search of the message did not find.
A job whose items were all found in the text, or whose email holds no image, pays 5 credits per item as before.
- The same image counts once. Identical image bytes in one email are read once and billed once.
- Only completed reads count. An image whose read finished is billed even if it found none of your items. An image whose read failed with a provider or transport error is free.
- Ground reads at most 30 images of one email, so a
groundjob never pays for more than 30. - High effort does not apply.
groundtakes no high-effort Parse, so each image is 1 credit. - An exact repeat is free. A repeat of your own earlier
groundjob waives its items and its images. - HTML and spreadsheets read no images in
ground. Only an email source is charged for images.
ground job that reuses a parse_result of an email still reads the live original email’s images, so it is billed for them the same way. A funded ground request on an email reserves its images (at most 30) with its items before any image is read,
and Ground then reads no more images than were reserved.
What a job was charged for
Onceusage_final is true, a job’s usage lists what its credits were charged for, one line per
part. Before waivers, each line’s credits is quantity × credits_per_unit × multiplier; a waived
line has 0 credits. The lines add up to
the job’s credits. A 2-page extract sent with parse_mode: "high":
image_ocr line, in unit: "image":
parse_mode: "high" the same email is 62 credits: the page line and the image line each have
multiplier: 2. image_ocr is listed after the parse line and before the tool’s own operation line. A job
whose parse read no images has no image_ocr line. Clients should accept part and unit values they do not
know yet.
Reused parses
Asplit or extract whose source is one of your succeeded parse jobs
({"type": "parse_result", "job_id": ...}) at low effort does not pay for the parse again when it reads the stored text. Its parse line stays in
usage at 0 credits, with a waiver explaining the reused work. An image_ocr line, when the parse read
images, stays listed at 0 credits with the same waiver:
part: "job", reason: "repeat_of_job"). Cache misses, changed settings, expired artifacts, and another tenant’s work do not qualify. A spreadsheet parse_result that reads the original workbook again is still charged for parsing.
The waiver’s source_job_id is always null. Billing history outlives source-job visibility, so it records the discount reason without publishing another job’s ID.
The job.usage_finalized webhook carries the same usage. It is null on jobs finalized before usage breakdowns were introduced.
Jobs finalized under schedule 3 keep their credits: an email or HTML file was one page whatever it held,
and a spreadsheet’s pictures counted as cells. Jobs finalized under schedule 2 keep theirs too: split was 1
credit a page, and high effort doubled the whole job.
See Usage for the field list.
Dollar component prices
When the deployment has an approved dollar price sheet, a finished perception job also returnscost. It lists Parse and the requested operation separately, with
quantities, USD unit prices and totals. Dollar amounts are decimal strings to keep
small charges exact. They are calculated from component quantities, independently
of credits.
Each line’s execution is its price tier: fresh for the normal price, or reused
for verified reuse of your tenant’s earlier work. An OCRed image is priced like a parse page, so its
own line is a parse line counted in pages, except in a schedule 5 or 7 extract or ground, whose cost has
no image line. Reuse has a lower unit price, which is zero on sheets that make
cache hits free. reuse_reason distinguishes reused parsing from a reused complete result.
These fields do not report provider prompt-token caching. Another tenant’s cached
work does not qualify for your reuse price.
cost.parse_mode is the mode the job’s Parse lines are priced at. It is the requested
parse_mode, or low when the job could not use it: a reused parse_result, or a file type that does not apply
that mode (PowerPoint applies high but not medium). A classify over several sources reports low only when none
of them used the requested mode. A mix such as a PDF and a PowerPoint at medium, or a PDF and a spreadsheet at
high, reports the requested mode although one source ran at low, because that is how the job is priced. The
field is absent on ground, which takes no top-level parse_mode and prices any image OCR at the low Parse rate.
It is also absent until NDI enables it for your environment, and on costs finalized before then. The SDKs read an
absent field as null.
The price-sheet version is saved when the job is accepted. Once usage is final,
the same dollar amounts appear in job reads, job lists and the usage webhook, even
after rates change or the result is deleted. A job accepted without a price sheet,
an older job, or work with unknown component quantities returns cost: null rather
than inventing a zero price. A failed or cancelled job with a pinned price sheet is
the exception: it is not charged, so its cost.total_usd is zero with no lines. Before finalization cost is also null.
cost is a price breakdown, not proof that Drex debited its wallet. This additive
response does not change existing credit settlement. Dollar settlement requires
approved rates and coordinated adoption by the billing consumer.
The legacy /api/v1/usage and organization allowance balances report finalized
resource consumption in credits_used, including free failed or cancelled work and image work included in schedule 5 or 7 Extract and Ground prices.
They describe the admission allowance, not a customer charge. Use /v1/usage
credits_total for billable totals. Only /v1 admission also reserves work in flight.