{"uid":"cap_K0SDbSQjUn1iMAEDMp2_G","slug":"relaystation-pdf-text-extraction-565fa12c","name":"Relaystation PDF Text Extraction","description":"$0.002/page. Pull text and structure out of a PDF — clean input for LLMs and search. 1¢ x402 min; remainder auto-credits — relaystation.ai/penny","url":"https://api.relaystation.ai/v1/pdf/extract-text","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"properties":{}},"type":{"type":"string","const":"http"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_YR2CjXs0qiT7nWTxB0GF5","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Extracts clean text and structure from a PDF file, optimized as input for LLMs and search pipelines","exampleAgentPrompt":"Can you pull all the text out of this PDF — https://example.com/report.pdf — and give me clean, structured content I can feed into my LLM pipeline?","exampleUseCases":[{"title":"RAG pipeline document ingestion","prompt":"I have a PDF research paper at this URL — can you extract all the text from it so I can chunk it and index it for my RAG pipeline?"},{"title":"Searchable contract archive","prompt":"Pull the text out of this contract PDF so I can store it in my search index and make it queryable later."},{"title":"LLM summarization pre-processing","prompt":"Before I summarize this 20-page PDF report with my LLM, extract the clean text from it so the model isn't dealing with raw PDF encoding issues."}],"resultDescription":"Returns extracted text content and structural information from the PDF, cleaned and formatted for direct use as LLM input or search indexing — billed at $0.002 per page with a $0.01 minimum via x402.","failureModes":["PDF is password-protected or encrypted — extraction fails or returns partial content","PDF contains only scanned images without text layer — returns empty or minimal text (use OCR endpoint instead)","Invalid or inaccessible PDF URL — returns error indicating the file could not be fetched","Malformed PDF file — parsing error returned","Insufficient x402 payment credits — request rejected with payment required error"],"whenToPreferThis":"Use this endpoint when you have a native (text-layer) PDF and need clean, LLM-ready text extracted cheaply at $0.002/page. Prefer this over the OCR-based sibling endpoint for digital PDFs that already contain a text layer, since it is faster and cheaper. Choose the OCR pipeline endpoint instead for scanned single-page documents. Ideal for RAG ingestion, search indexing, or any workflow that needs machine-readable text from PDFs.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:44:31.611Z","isFirstParty":false}