{"uid":"cap_eKzrYl-UKDsuPSAr6qQNc","slug":"delx-commerce-pdf-text-extraction-cd3733d0","name":"Delx Commerce PDF Text Extraction","description":"Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.","url":"https://commerce.delx.ai/api/v1/x402/pdf-text?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"max_chars":{"type":"integer","default":200000,"maximum":200000,"minimum":1,"description":"Maximum UTF-8 characters returned; extraction remains bounded."},"pdf_base64":{"type":"string","maxLength":5592406,"minLength":1,"description":"One base64-encoded PDF up to 4 MiB decoded; application/pdf data URIs are accepted."},"file_base64":{"type":"string","maxLength":5592406,"minLength":1,"description":"Alias for pdf_base64."}}},"responseSchema":{"type":"json","example":{"text":"Extracted PDF text","bytes":48210,"chars":19,"model":"poppler-pdftotext","scope":"pdf_text","schema":"delx/pdf-text/v1","provider":"first-party","truncated":false,"attribution":"Text extracted locally by Delx with Poppler; no document is stored, fetched, or sent to a third-party provider. Scanned-image OCR is not included.","document_id":"pdf_6fd2b8d1b8ddf0f3e9a9b2c4d5e6f708","input_sha256":"6fd2b8d1b8ddf0f3e9a9b2c4d5e6f7081234567890abcdef1234567890abcdef","output_sha256":"c5f7b2d4c1e7a0f9b6d2e8c3a4f5b6071234567890abcdef1234567890abcdef","pages_observed":2,"sale_price_usdc":0.003,"upstream_cost_usd":0,"gross_margin_floor_usd":0.0028425}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_japwtWEXwMwsNtJHSI6Cf","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Extracts plain text from a base64-encoded PDF file, returning the full text content with metadata, for $0.003 USDC per call via x402.","exampleAgentPrompt":"Can you pull out all the text from this PDF I'm attaching — up to 200,000 characters — and give it back to me as plain text?","exampleUseCases":[{"title":"Contract review text extraction","prompt":"I have a legal contract as a PDF — can you extract all the text from it so I can analyze the clauses? Here's the file as a base64 string."},{"title":"Research paper content parsing","prompt":"Extract the full text from this academic paper PDF so I can summarize its findings. Limit it to 50,000 characters."},{"title":"Invoice data pre-processing","prompt":"I need the raw text pulled out of this invoice PDF before I run it through my data pipeline — can you extract all the text from it?"}],"resultDescription":"A JSON object containing the extracted plain text string, byte and character counts, number of pages observed, document ID, SHA-256 hashes of input and output for verifiability, the model used (poppler-pdftotext), a truncation flag, and pricing metadata. No document is stored or sent to third parties.","failureModes":["PDF exceeds 4 MiB decoded size — request rejected","base64 encoding is malformed or empty — parsing error","PDF contains only scanned images with no embedded text — returns empty or minimal text (OCR not supported)","max_chars set to 0 or exceeds 200,000 — validation error","Payment not included or insufficient USDC — x402 payment required response"],"whenToPreferThis":"Choose this endpoint when you need fast, verifiable, no-signup text extraction from text-layer PDFs and want pay-per-call USDC billing with cryptographic proof of delivery. Ideal for agent pipelines that process PDFs on demand without a subscription. Note: does not perform OCR on scanned-image PDFs.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T01:21:15.630Z","isFirstParty":false,"canonicalSlug":"delx-commerce-pdf-text-extraction-cd3733d0"}