{"uid":"cap_rCTKH34SV9_qDHMx_9W9G","slug":"relaystation-llm-answer-grounded-q-a-from-context-b62e143d","name":"RelayStation LLM Answer — Grounded Q&A from Context","description":"Provider cost + 6%, itemized. Answer a question strictly from the context you provide — grounded, no hallucinated sources. ≈Opus-4.8 accuracy at ~1–5% of its cost (benchmark: relaystation.ai/llm-validation). 1¢ x402 min; remainder auto-credits — relaystation.ai/penny","url":"https://api.relaystation.ai/v1/llm/answer","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":{"tier":{"enum":["budget","value","best"],"type":"string"},"input":{"type":"string","minLength":1,"description":"The text to process (DATA — never interpolated into the instruction)."},"params":{"type":"object","required":["question"],"properties":{"question":{"type":"string","minLength":1}},"description":"Task-specific params for 'answer', validated against the task's param_schema."}}},"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","required":["result","truncated","usage"],"properties":{"usage":{"type":"object","required":["model","inputTokens","outputTokens","providerCostMicros","markupPct","chargedMicros","ceilingMicros"],"properties":{"model":{"type":"string"},"markupPct":{"type":"number"},"inputTokens":{"type":"integer"},"outputTokens":{"type":"integer"},"ceilingMicros":{"type":"integer","description":"The authorized ceiling the 402/hold reserved."},"chargedMicros":{"type":"integer","description":"The actual charged amount (<= ceiling)."},"providerCostMicros":{"type":"integer"}}},"result":{"type":"string","description":"The task output text (or JSON string for extract/json_repair)."},"truncated":{"type":"boolean","description":"True when the output hit the per-task token cap; the charge still stands."}}}}}}},"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_VENfhlMzaPsqaU-9JTeFV","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":"Answers a specific question strictly from the provided context text using a high-accuracy LLM, with no hallucinated sources and tiered model selection.","exampleAgentPrompt":"Using the value tier, answer this question strictly from the context I'm giving you — 'What are the refund terms?' — based on this text: 'All purchases are final except within 30 days of delivery, at which point a full refund is issued.' Don't add anything that isn't in the text.","exampleUseCases":[{"title":"RAG pipeline answer step","prompt":"I've retrieved this chunk from our legal FAQ: 'Employees are entitled to 20 days of annual leave per year, accruing monthly.' Using the value tier, answer this question strictly from that context: 'How much annual leave do employees get?'"},{"title":"Customer support knowledge base QA","prompt":"Here's a product manual excerpt: 'The device must be charged for 2 hours before first use using the included USB-C cable.' Answer this customer question using only that context on the budget tier: 'How long does the first charge take?'"},{"title":"Contract clause extraction","prompt":"From this contract clause: 'Either party may terminate this agreement with 60 days written notice,' answer using the best tier strictly from that text: 'How much notice is required to terminate the agreement?'"}],"resultDescription":"Returns a JSON object with a `result` string (the answer grounded to the provided context), a `truncated` boolean indicating if the output hit the token cap, and a `usage` object detailing the model name, input/output token counts, provider cost in micros, markup percentage, actual charged micros, and the authorized ceiling micros.","failureModes":["Missing `input` or `question` field returns a validation error","Context too long may cause truncation (truncated=true) with charge still applied","Invalid tier enum value causes request rejection","Empty or whitespace-only input/question fails minLength validation","Network or upstream provider errors may return 5xx responses","Insufficient x402 payment balance results in payment authorization failure"],"whenToPreferThis":"Choose this endpoint when you need a reliable, cost-efficient grounded answer from a specific text passage — especially in RAG pipelines where hallucination must be prevented. It offers near-Opus-4.8 accuracy at 1–5% of the cost with tiered model selection (budget/value/best), making it ideal for high-volume document QA, customer support automation, and contract analysis where staying strictly within provided context is critical. Prefer it over general LLM APIs when auditability, cost transparency per-call, and source grounding are required.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:41:18.945Z","isFirstParty":false}