Amazon Bedrock vs Textract for IDP: When to Use Each
Developers evaluating AWS for intelligent document processing often ask: do we use Amazon Bedrock, Amazon Textract, or both? The answer is almost always "both", but the division of labour is not obvious from the service descriptions. Here is how we use each in production at EngageCentral, and when you should reach for one or the other.
The services, quickly
Amazon Textract is a purpose-built OCR and document analysis service. Give it an image or PDF. It returns text, key-value pairs (form fields), tables, and signatures with positional coordinates. Trained on billions of documents. Good at layout understanding.
Amazon Bedrock is AWS's managed access to foundation models. Claude Haiku and Claude Sonnet from Anthropic are the standouts for document work. Give them text or (for vision-enabled models) an image, plus a prompt. They reason, classify, extract structured data, and answer questions.
They do different things. Textract is OCR + layout. Bedrock is reasoning + extraction. The natural pattern is: Textract reads the document, Bedrock understands it.
The 2x2
| Task | Textract alone | Bedrock alone | Both |
|---|---|---|---|
| Simple OCR (receipt, business card) | ✓ (best latency/cost) | ✓ (vision model) | Overkill |
| Structured form extraction (key-value pairs) | ✓ (with Forms feature) | partial | Best |
| Table extraction | ✓ (with Tables feature) | partial | Best |
| Signature detection | ✓ only | ✗ | Best (Textract for presence, LLM for interpretation) |
| Classification (invoice vs receipt vs resume) | ✗ | ✓ (cheap and fast with Haiku) | Not needed |
| Semantic extraction (apply domain rules, normalise, reason) | ✗ | ✓ (essential) | Yes |
| Validation and sanity check | partial | ✓ | Best |
| Multilingual (APAC languages) | Mixed | Good | Best |
| Multi-page long documents | ✓ (async API) | Limited by context window | Textract extracts, Bedrock reasons over chunks |
| Hand-written text | ✓ (dedicated handwriting support) | Partial | Textract for OCR, Bedrock for interpretation |
Four production patterns
Pattern 1: Textract-only (when you can get away with it)
For simple, standardised documents where you need positional output (key-value pairs and tables) and no semantic reasoning:
Image → Textract AnalyzeDocument → structured JSON → downstreamWorks for: machine-generated invoices from a known vendor with consistent format, standardised forms, receipts where you only need total + merchant + date.
Advantage: cheap, fast, deterministic. Limitation: no semantic reasoning. If the document varies, Textract-only breaks.
Pattern 2: Bedrock-only (when the document is simple and readable)
For documents where OCR is trivial (clear typed text, printed documents) and the hard part is extraction logic:
Image → Bedrock vision model (Claude Sonnet) → structured JSON → downstreamWorks for: simple PDFs with high-quality rendering, screenshots of structured data, cases where you need the model's reasoning capability but the OCR is easy.
Advantage: fewer moving parts, no Textract cost. Limitation: more expensive per document than Textract on simple OCR. Worse at complex layout (tables, overlapping text).
Pattern 3: Textract + Bedrock in sequence (the default)
Our production default for most document types:
Image → Textract AnalyzeDocument → extracted text + layout
→ Bedrock Claude Sonnet (with domain-specific prompt) → structured JSON
→ Validation (rules + Bedrock Haiku sanity check) → final outputWorks for: anything serious. Invoices, contracts, resumes, KYC documents, insurance claims, contracts.
Advantage: best accuracy, best cost/quality trade-off, full flexibility. Overhead: two API calls, slightly more latency, more complex pipeline.
Pattern 4: Textract + Bedrock in parallel branches
For documents where you need to extract multiple distinct structures from the same source:
Image → Textract (async) ────┬─→ Bedrock (extract invoice header fields)
├─→ Bedrock (extract line items)
└─→ Bedrock (extract payment terms)
→ merge → structured JSONWorks for: complex multi-section documents where each section has different extraction logic.
Advantage: lower end-to-end latency via parallel branches. Overhead: more orchestration logic (Step Functions does this well).
Cost at scale
Pricing as of late 2026, rough numbers:
| Service | Approximate cost |
|---|---|
| Textract AnalyzeDocument (Tables + Forms) | $0.065 per page |
| Textract DetectDocumentText (OCR only) | $0.0015 per page |
| Bedrock Claude Haiku | $0.25 per million input tokens |
| Bedrock Claude Sonnet | $3 per million input tokens |
| Bedrock Claude Opus | $15 per million input tokens (we rarely use this for IDP) |
A typical 2-page invoice processed through Pattern 3:
- Textract AnalyzeDocument: $0.13 (2 pages)
- Bedrock Haiku for classification: ~$0.001
- Bedrock Sonnet for extraction (~3k input tokens, ~500 output tokens): ~$0.015
- Bedrock Haiku for validation sanity check: ~$0.002
- Total: ~$0.15 per invoice
At 10,000 invoices per month: $1,500/month in AWS consumption. At 100,000 invoices per month: $15,000/month.
Compare to proprietary IDP vendors at $0.50-$2.00 per invoice: the AWS-native stack is 5-20x cheaper at scale, with no per-vendor markup.
Where Textract still beats Bedrock
Three categories:
Signature detection. Textract's Signatures feature detects signature presence and location reliably. Bedrock can be prompted to look for signatures in a vision call but is less precise and more expensive.
Precise key-value pair positional data. If you need to know the (x, y, width, height) of a specific field for downstream use (e.g., redaction, highlighting in a UI), Textract returns this natively. Bedrock does not.
High-volume pure OCR. If you just need the text of a document with no reasoning, Textract DetectDocumentText at $0.0015/page beats any LLM path.
Where Bedrock still beats Textract
Also three:
Semantic normalisation. "Due Thirty Days After Receipt of Invoice" → 30 days. Bedrock handles this trivially. Textract gives you the raw text and leaves the interpretation to you.
Multi-language reasoning. Textract supports more languages for OCR than Bedrock for reasoning, but Bedrock's language coverage for extraction is broader than Textract's extraction (as opposed to detection) capability. In practice: both services' multilingual support is good but asymmetric; use Textract for OCR, Bedrock for the semantic layer.
Novel document types. New or rare document types where you cannot provide Textract with enough training signal. Bedrock's zero-shot extraction (with a good prompt) handles novelty better.
Common mistake: trying to skip Textract
We see this often: a team starts with Bedrock vision models ("Claude Sonnet can see images, why not just send it the raw PDF?") and discovers:
- Multi-page PDF support in vision models is limited
- Layout understanding (table structure, spatial relationships) is weaker than Textract
- Per-document cost is higher
- Precise positional output is not available
Bedrock vision is useful for prototyping and for cases where document quality is high. For production IDP at scale, Textract + Bedrock in sequence wins almost every time.
Common mistake: trying to skip Bedrock
The reverse also happens: "Textract already gives us key-value pairs, why do we need an LLM?" You need an LLM because:
- Textract returns raw extracted text with labels, not domain-normalised data
- You need to reason about edge cases (currency symbol ambiguity, date format inference, line-item/total consistency)
- You need to adapt to new document templates without retraining
- Downstream systems want clean JSON, not Textract's native structured output
The validation layer especially: an LLM sanity check on Textract's output catches ~80% of silent OCR errors (misread digits, confused column headers, boundary errors on tables) that would otherwise cause downstream problems.
What we standardised on
For every document that enters our pipeline, we run Pattern 3 by default:
- Textract for OCR + layout
- Claude Haiku for classification and lightweight routing
- Claude Sonnet for the main structured extraction
- Claude Haiku for validation sanity check
- Deterministic rules on top for business-specific validation
Pattern 4 (parallel branches) kicks in for complex multi-section documents (long contracts, multi-page claims) where parallelism improves latency.
Pattern 1 (Textract-only) kicks in for simple cases where business logic allows: e.g., "if this document is from vendor X with their standard template, Textract's extraction is sufficient, skip Bedrock."
Pattern 2 (Bedrock-only) we rarely use in production.
The point
Textract and Bedrock are complements, not substitutes. Textract does OCR and layout; Bedrock does reasoning and extraction. The engineering question is not "which" but "how to compose them". For a developer team evaluating IDP architecture on AWS, Pattern 3 is the right default and Patterns 1 and 4 are specialisations.
If you want to see our specific prompts, Step Functions state machine definitions, or benchmark results on your own document types, we are happy to talk.
Related reading
- Intelligent Document Processing on AWS: Textract + Bedrock Architecture
- From Receipt to GL Code in 3 Seconds: Inside EngageCentral's Pipeline on AWS
- The IDP Buyer's Guide for Singapore Finance Teams
About EngageCentral: Engage Central Pte Ltd (UEN 202432974N) is a Singapore-incorporated AI document intelligence company. We build productized SaaS (ReimburseMe, HireCentral) and custom document automation solutions on Amazon Bedrock and Textract, hosted in AWS Asia Pacific (Singapore).
Ready when you are.
Related reading
Intelligent Document Processing on AWS: Textract + Bedrock Architecture
/information/guides/aws-idp-architecture/
From Receipt to GL Code in 3 Seconds: Inside EngageCentral's Pipeline on AWS
/blog/receipt-to-gl-pipeline/
The IDP Buyer's Guide for Singapore Finance Teams
/information/guides/idp-buyers-guide-singapore/