Europe/Bucharest
BlogCase study · list prices checked 30 November 2026Published November 30, 2026

AWS Bedrock vs Textract: list-price math on a real pipeline

Should the OCR step of a document pipeline run on Amazon Textract or on a Claude model in Amazon Bedrock? I built a pipeline at Upscore that checks the documents people upload when they sell a property in Spain, and it uses both. Textract reads each page for $0.0015, Claude Sonnet 4.5 judges the text, and the decision that moves the bill is which Textract API you call.
  • Textract does the reading with its cheapest API, text detection, at $0.0015 a page. Claude Sonnet 4.5 on Bedrock does the judging, in one call per run, on text only.
  • At list price, the text of a page costs more to send to the model ($0.0050 to $0.0099) than Textract charges to read it.
  • Textract Forms is $0.05 a page, 33 times the price of text detection. My pipeline has never called it.
  • The first design had three stages. Two stages replaced it in under two days.
  • Every cost here is arithmetic on public list prices. The pipeline stores no token usage, so there is no measured cost in this article.
The two services do different jobs, so the split comes first. Textract turns a file into text. Photos and scans in PNG or JPEG go through the synchronous DetectDocumentText call. PDFs and TIFFs go through the asynchronous StartDocumentTextDetection, and when Textract finishes it publishes to an SNS topic that starts a second Lambda, which pages through GetDocumentTextDetection. Those three operations are the whole Textract surface of the pipeline. From the response I read only the LINE blocks, and I keep the text of each page, the average confidence per page and the average for the document. Bedrock does the judging. One call per run goes to Claude Sonnet 4.5 through an EU inference profile. The model gets the OCR text, the document category we expect (the schema lists 15), the name it should find, the page count and Textract's average confidence. It never sees the image or the PDF. It answers in JSON: a risk score from 0 to 100, one of 3 decisions, a list of signals and a one-line summary. The prompt sets three bands (0 to 30, 31 to 70, 71 to 100) and tells the model that a high score sends the document to a person for review. Garbled OCR text alone, the prompt says, is no reason to reject a document. Here is the price of one page under each option, from the AWS price lists and Anthropic's documentation on 30 November 2026. Textract prices are for the first million pages a month and are the same in Oregon, London and Ireland.
Option
Per page
Per 1,000 pages
Textract, Detect Document Text$0.0015$1.50
Textract, Tables$0.015$15
Textract, Forms$0.05$50
Textract, Forms + Tables + Queries$0.07$70
Bedrock Data Automation, standard output$0.01$10
Bedrock Data Automation, custom output (up to 30 fields)$0.04$40
Claude Sonnet 4.5, the page's text as input$0.0050 to $0.0099$4.95 to $9.90
Claude Sonnet 4.5, the page's image as inputup to $0.0052up to $5.17
The last two rows need a word. Anthropic's PDF documentation says the text of a page typically uses 1,500 to 3,000 tokens, and the image of a page at most 1,568. I priced those at $3.30 per million input tokens, the regional Bedrock rate for Sonnet 4.5, which is 10% above the global rate of $3.00. Put the options together and you get three routes for a page.
Route
Input cost per page
Textract text detection, then the text to Sonnet 4.5$0.0065 to $0.0114
PDF sent straight to the model (text plus page image)$0.0101 to $0.0151
Page image onlyup to $0.0052
Output tokens come on top in every route. The OCR line is the smallest one in the table. Reading a page with Textract costs less than a third of sending that page's image to the model, and less than a third of sending its text. So the bill barely moves whether Textract goes first or the model reads the image itself. The expensive choice sits inside Textract. Textract Forms costs $0.05 a page. That is 33 times text detection and almost 10 times a page image sent to Sonnet 4.5. Forms, Tables and Queries together are $0.07. My pipeline has never called AnalyzeDocument, in any commit. The first version of the prompts did plan for it: the classification prompt asked the model to flag documents where form or table extraction would help, and the risk prompt had a slot for that output. I never built that path. Look at what the pipeline asks. Is this the document we expect, with the right name on it? Does it look authentic? Those are judgments over the whole text, and the model makes them from plain lines of text. If your job is to pull dozens of fields out of a fixed form into a database, the sums change. Then Bedrock Data Automation, at $0.01 to $0.04 a page, belongs in your comparison next to Forms. The first commits, on 26 January 2026, built three stages. Textract did the OCR. Claude Haiku classified the document, one call per chunk of pages, with the chunk results merged by weighted vote. Claude Sonnet then scored the risk, helped by rule-based signals and a name check across documents. That design reached the main branch on 27 January and was replaced on 28 January. It lasted under two days. The replacement is what runs now: OCR, then one Sonnet call with one prompt where there used to be two. I didn't write down why at the time, so I'll stick to what the history shows. Two model stages became one, and the page chunks that each cost a Haiku call now travel in a single request. A model call inside a queue-driven pipeline needs a cap on its size and a cap on how many run at once. The text is cut at 80,000 characters before it goes into the prompt, and the answer is capped at 2,000 output tokens. At roughly 4 characters per token that is about 20,000 input tokens, so the model step tops out at under 10 cents a run at list price: $0.066 in and $0.033 out. Concurrency is the other cap. Each of the two OCR Lambdas can run 50 at a time. The model Lambda is limited to 5 and takes 1 message at a time from its queue, so the queue and the reserved concurrency together are the throttle for Bedrock. The call itself gets 3 attempts. The structured output is plain: the prompt asks for JSON and the code parses the reply, with neither tool use nor a JSON schema in between. If I built it today I'd validate that JSON against a schema before storing it. Cost allows it. A page image is at most $0.0052, about what the same page costs as text. Two facts are worth weighing before you drop Textract. Textract returns a confidence for every line, and my pipeline passes the document average to the model so it knows how far to trust the text. Anthropic's vision documentation also warns that an image scaled down to fit the size limits can leave text less legible, which matters for a dense scan. I haven't run the two routes side by side on the same documents, so the first thing to do if you're choosing today is that test: a few dozen of your own worst pages through both. Deciding where a model belongs in a product you already run is the work I do in an AI architecture review. Added on 30 November 2026. The pipeline runs Sonnet 4.5, so the tables above use its price. If you're choosing a model today you'd price Claude Sonnet 5.5, which on Bedrock is $2.20 per million input tokens at the regional rate and $2.00 at the global rate. At $2.20, a page image costs up to $0.0034. The text of a page costs $0.0033 to $0.0066 on Anthropic's figure of 1,500 to 3,000 tokens. One caution on the text. Anthropic's pricing page says models from Claude 4.7 on use a tokenizer that produces about 30% more tokens for the same text, which would put a dense page at up to $0.0086. I haven't counted tokens on the same pages with both models, so treat the text range as a bracket. The order of the table holds. Textract text detection at $0.0015 is still the smallest line, now under half the price of a page image. Forms at $0.05 is more than 14 times a page image. The pipeline facts come from the code and the git history of the system I built at Upscore, checked on 30 November 2026: which API calls it makes, what goes into the prompt, the limits and the dates. The prices are list prices read the same day from the AWS price lists behind the Amazon Textract pricing page and the Amazon Bedrock pricing page, and from Anthropic's pricing page. Tokens per page come from Anthropic's PDF support documentation, and the legibility warning from its vision documentation. The costs are my arithmetic on those prices. They are list-price estimates, and Upscore's actual bill is outside this article. So are accuracy figures and volumes, because I have no measurement of either that I would put my name to. Two assumptions sit under the sums. The figure of 4 characters per token is a rule of thumb. And the regional rate assumes an EU inference profile is billed at the tier AWS's price list calls "Regional".
Share this post:
On this page