{"uid":"cap_7s6r4RBLJImSRLf8htGaa","slug":"relaystation-ask-document-b34ba562","name":"RelayStation Ask Document","description":"$0.08/document. Ask natural-language questions of a document and get grounded answers (Textract Queries) — no OCR pipeline to build. 155 tools, one balance — relaystation.ai","url":"https://api.relaystation.ai/v1/doc/ask-document","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":{"type":"object","properties":{"file":{"type":"object","description":"cputools input-source: { inline: <base64 ≤ 4 MiB> } or { inputKey: <scratch key from /v1/cputools/upload-url, ≤ 50 MB> }."},"questions":{"type":"array","items":{"type":"string","maxLength":200,"minLength":1},"maxItems":15,"minItems":1}}},"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.08","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.08/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.08","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.08","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_cyo7CT5xdgJTZmAllQxJl","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.08","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Ask natural-language questions against a document (PDF, image, etc.) and receive grounded, extracted answers using AWS Textract Queries — no OCR pipeline required.","exampleAgentPrompt":"I have a scanned PDF of an invoice — can you ask it these three questions: 'What is the total amount due?', 'What is the invoice date?', and 'Who is the vendor?' and give me the answers?","exampleUseCases":[{"title":"Invoice field extraction for accounting","prompt":"I've uploaded a scanned supplier invoice — please ask it: 'What is the invoice number?', 'What is the total amount?', and 'What is the payment due date?' and return the answers so I can log them."},{"title":"ID document data pull for onboarding","prompt":"I have a scanned driver's license image — can you ask it 'What is the full name?', 'What is the date of birth?', and 'What is the expiry date?' and give me those extracted values?"},{"title":"Contract clause lookup for legal review","prompt":"Here's a scanned PDF of a contract — please ask it 'What is the termination notice period?', 'Who are the parties involved?', and 'What is the effective date?' so I can review those terms quickly."}],"resultDescription":"Returns structured answers corresponding to each question posed, grounded in the document's content via Textract Queries — typically key-value pairs or extracted text spans per question, without requiring a custom OCR pipeline.","failureModes":["File too large (inline base64 must be ≤4 MiB; upload key path supports ≤50 MB)","Document format not supported by Textract","Questions array empty or exceeds 15 items","Question string too long (max 200 chars) or too short (min 1 char)","Low-quality scan yields low-confidence or empty answers","Network or upstream Textract service error"],"whenToPreferThis":"Choose this endpoint when you need to extract specific fields or answer targeted questions from scanned or digital documents without building or maintaining an OCR pipeline. It is ideal for structured forms, invoices, contracts, IDs, and tax documents where you know exactly what data points you need. Prefer it over general OCR when you want grounded, question-specific answers rather than full-page text dumps.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:50:54.886Z","isFirstParty":false}