Last reviewed: 2026-11-21 (Asia/Shanghai)
Budget Amazon Textract Core as a charge for processed pages under a specific API and feature set, then add downstream LLM inference separately. Choose DetectDocumentText when the application needs lines and words. Choose AnalyzeDocument when it needs supported structured outputs such as tables or form fields. Analysis already returns detected text, so retrieving that text does not require an additional detection pass.
That choice can dominate the preprocessing bill. AWS’s current US West (Oregon) examples price 5,000 pages at $7.50 for text detection versus $325 for Forms and Tables analysis, using the first-million-page rates. These outputs serve different tasks; validate the required output before choosing the cheaper path. This guide covers Textract Core, the API family named in those examples.
Match the API to the output your application consumes
Start with the fields the application actually reads after extraction. A summarizer might consume only paragraphs. An invoice workflow might need cell relationships or key-value pairs. Sending both through the same feature configuration makes their costs harder to control and may buy analysis the summarizer never uses.
The DetectDocumentText reference
describes a synchronous operation that returns detected text as page, line and word blocks. The AnalyzeDocument reference
documents FeatureTypes, including TABLES, FORMS, QUERIES, SIGNATURES and LAYOUT. It explicitly says all detected lines and words are included, even when they are unrelated to the selected features.
| Required output | Candidate configuration | Acceptance check |
|---|---|---|
| Lines and words for a text summary | DetectDocumentText | Required passages survive extraction |
| Table cells and their relationships | AnalyzeDocument with TABLES | Expected rows, columns and values are recoverable |
| Form fields plus table structure | AnalyzeDocument with FORMS and TABLES | Required key-value pairs and cells are present |
Treat these as candidates to evaluate on representative documents. Removing table relationships can reduce the quality of an answer even if every word remains in the OCR result. Preserve labeled examples of the fields or facts the application must recover, and approve a configuration only after it meets that requirement.
These two API operations are synchronous. Their references point to StartDocumentTextDetection and StartDocumentAnalysis for asynchronous processing. A batch estimate below is a sum across documents, not a claim that one synchronous request accepts an arbitrary multipage batch. Keep your integration’s file, page and request limits separate from this cost worksheet.
Calculate the page charge without counting OCR twice
The Textract pricing page says Analyze Document output includes OCR irrespective of the selected feature type. Reuse its text blocks when that analysis is already required. Calling text detection first and then analysis on the same pages creates a second operation that needs its own budget justification.
For a worked estimate, AWS’s Oregon pricing examples show these first-million-page rates:
| Approved route | Example USD per page | Charge for 5,000 pages |
|---|---|---|
| Detect Document Text | $0.0015 | $7.50 |
| Analyze Document: Tables | $0.015 | $75.00 |
| Analyze Document: Forms and Tables | $0.065 combined | $325.00 |
The combined Forms and Tables rate comes from AWS’s example adding $0.05 for Forms and $0.015 for Tables. Avoid generalizing that addition rule to every feature combination: the same page lists specific combination prices for Queries with other features. Look up the exact set you intend to request.
Suppose a validated routing policy sends 4,000 pages to text detection and 1,000 pages to Forms and Tables analysis. The page charge is:
4,000 × $0.0015 + 1,000 × $0.065 = $71.00
The 1,000 analysis pages already include OCR. Adding a separate $1.50 detection allowance for them would describe an additional pass, not a required component of analysis. Sending all 5,000 pages through Forms and Tables would instead estimate $325.00. The $254.00 difference is arithmetic for this document mix and rate tier, not a measured production saving.
Before using these numbers, confirm the destination Region, current feature prices and applicable monthly volume tier. If the planned volume crosses a tier boundary, split it between the relevant rates. Discounts, credits and free-tier eligibility need account evidence. This worksheet excludes taxes, storage, compute and model inference.
Put the estimate in front of the dispatcher
Keep an approved price record keyed by Region, API, complete feature set, tier and review date. Reject a request when no matching record exists. An unknown feature must not silently inherit the text-detection price.
The following local calculator demonstrates the mixed batch above. Save it as cost-check.mjs and run node cost-check.mjs. It makes no API calls and represents only the stated Oregon rate tier. Values use millionths of a US dollar so the calculation does not repeatedly round sub-cent page charges.
// Oregon, first-million-page example rates checked 2026-11-21.
const rateMicroUsd = Object.freeze({
text: 1500,
tables: 15000,
forms_tables: 65000,
});
const segments = [
{ pages: 4000, mode: "text" },
{ pages: 1000, mode: "forms_tables" },
];
const capMicroUsd = 75_000_000;
let totalMicroUsd = 0;
for (const { pages, mode } of segments) {
if (!Number.isSafeInteger(pages) || pages <= 0 ||
!Object.hasOwn(rateMicroUsd, mode)) {
throw new Error("HOLD: invalid page count or unpriced route");
}
totalMicroUsd += pages * rateMicroUsd[mode];
if (!Number.isSafeInteger(totalMicroUsd)) {
throw new Error("HOLD: estimate exceeds safe integer range");
}
}
console.log(`Estimated page charge: $${(totalMicroUsd / 1e6).toFixed(2)}`);
if (totalMicroUsd > capMicroUsd) {
console.error("HOLD: page-charge cap exceeded");
process.exitCode = 2;
} else {
console.log(`ALLOW: within the $${(capMicroUsd / 1e6).toFixed(2)} page-charge cap`);
}
The expected estimate is $71.00 with an allow decision. Lowering the cap to 70_000_000 should produce a hold and exit status 2. An unsupported mode should fail before approval. These checks exercise local budgeting logic; they do not validate OCR quality or account billing.
In the application, attach the approved page count and feature set to the work item. Dispatch exactly that configuration. If a request adds Forms, changes Region, or expands the document set after approval, recompute its estimate. If several workers share one budget, reserve their approved amounts together before dispatch so each worker cannot independently spend the same remainder.
Set a separate allowance for repeat processing. Do not treat the worksheet’s cap as an AWS billing limit: it controls only the work your application admits. A timeout or missing response does not establish that an attempt cost nothing. Keep uncertain attempts visible while investigating them, rather than restoring their entire allowance immediately.
Reconcile OCR pages and model tokens as separate costs
Record an internal document reference, operation, complete feature set, Region, approved pages, reported page count, attempt outcome and price-record version. Both API references document DocumentMetadata, including page information. Use that response metadata as a reconciliation signal; your billing evidence remains necessary to establish the charged amount.
Keep extracted text and customer fields out of the cost record. For each route, compare approved pages with observed processing and investigate repeated document attempts or unexpected feature changes. A rising cost per accepted document can reflect a more expensive route or more attempts even when LLM token usage stays flat.
The downstream model still needs its own input, output and retry budget. If the pipeline also sends original PDF pages to a vision model, include that work explicitly. The PDF input budgeting guide explains the model-side page and token controls. Carry OCR and inference into the workload unit cost scorecard as separate cost components before calculating cost per accepted document.
For the next batch, classify a representative document sample by required output, approve its API and feature set, and run the estimate before opening dispatch. Schedule any paid quality canary separately under an approved test allowance. Expand processing only when extraction quality meets the task and page-level records can explain the estimate.
Sources checked
Checked on November 21, 2026, Asia/Shanghai. These are live official references for an evergreen budgeting task; the prices are the public examples observed at review time.
- Amazon Textract pricing — Core page billing, OCR included in analysis, Oregon examples, volume tiers and feature-combination prices.
- DetectDocumentText API reference — text block output, synchronous operation and document metadata.
- AnalyzeDocument API reference — feature selection, included lines and words, synchronous operation and document metadata.