{"uid":"cap_sHzuQcnOB556LzKwj3WdY","slug":"sitecheck-text-answer-qa-over-provided-text-261cc0cb","name":"SiteCheck Text Answer (QA over provided text)","description":"Answers a question from the given text only (max 30,000 characters), with supporting quotes and their character offsets. Each quote is checked against the text and dropped if it does not occur in it. answerable is false when the text does not contain the answer. Model output: verify before relying on it.","url":"https://api.sitecheck-api.workers.dev/api/text/answer?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","description":"The only source for the answer (max 30,000 characters)"},"question":{"type":"string","description":"Question to answer (max 500 characters)"}}},"responseSchema":{"type":"json","example":{"note":"Quotes are verified as exact substrings of the text; the answer itself is model-written.","answer":"40 euros a year","quotes":[{"end":55,"quote":"The membership fee is 40 euros a year, paid in January.","start":0}],"question":"What does the text say the fee is?","checkedAt":"2026-10-15T18:21:09.358Z","answerable":true,"quotesDropped":0}},"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_VoE3P8jcM3SeDThjfmahp","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":"Answers a natural-language question using only the supplied text as the source, returning a model-written answer with verified exact-substring quotes.","exampleAgentPrompt":"Using only this contract text I'm pasting, answer the question: 'What is the notice period for termination?' — and show me the exact quote from the document that supports your answer.","exampleUseCases":[{"title":"Contract clause extraction for legal review","prompt":"I've pasted the full text of a vendor agreement below. Can you answer: 'What are the payment terms?' and give me the exact sentence from the document that says so?"},{"title":"Policy FAQ answering from support docs","prompt":"Here's our company refund policy document. Based only on this text, answer: 'How many days does a customer have to request a refund?' and quote the relevant passage."},{"title":"Research fact verification from article text","prompt":"I have this long news article about the EU AI Act. From only this text, answer: 'What is the compliance deadline mentioned?' and show me the exact substring from the article."}],"resultDescription":"A JSON object containing the model-written answer to the question, one or more exact-substring quotes (each with start and end character offsets) from the source text that support the answer, an 'answerable' boolean indicating whether the question could be resolved from the text, the timestamp the check was performed, and a count of any quotes that were dropped.","failureModes":["Text exceeds 30,000 character limit — request rejected or truncated","Question exceeds 500 character limit — request rejected","'answerable' returns false if the question cannot be answered from the supplied text","Quotes may be dropped (quotesDropped > 0) if they cannot be verified as exact substrings","Empty or missing 'text' or 'question' fields cause validation errors","Payment failure (x402) if USDC balance is insufficient"],"whenToPreferThis":"Choose this endpoint when you need to answer a specific question grounded strictly in a user-supplied text corpus, with verifiable exact-substring citations — not web search, not external knowledge. Ideal for contract analysis, policy lookups, document QA, and any scenario where hallucination must be minimized by constraining the model to the provided source. Prefer over generic LLM chat when auditability and quote verification matter.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T12:48:17.038Z","isFirstParty":false,"canonicalSlug":"sitecheck-text-answer-qa-over-provided-text-261cc0cb"}