{"uid":"cap_r594_g5zE4YJwE7f4u9d9","slug":"gedx402-ai-search-rag-answer-from-urls-85681979","name":"GEDX402 AI Search – RAG Answer from URLs","description":"Single-hop cited RAG answer — one x402 POST indexes URL(s), hybrid retrieval, and chat/fast synthesis with session_token for follow-up queries. $0.625 USDC per request. Agent search: rag answer, research, cited answer, hybrid retrieval.","url":"https://rag.gedx402.com/v1/aisearch/outcome/answer","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"url":{"type":"string"},"poll":{"type":"boolean"},"urls":{"type":"array","items":{"type":"string"}},"top_k":{"type":"integer"},"budget":{"type":"object","additionalProperties":true},"rerank":{"type":"boolean"},"question":{"type":"string"},"rewrite_query":{"type":"boolean"},"retrieval_type":{"enum":["hybrid","vector","keyword"],"type":"string"}}},"responseSchema":{"type":"json","example":{"answer":"Configure AI Search by … [1]","credits":{"queries_remaining":4,"index_ops_remaining":0},"citations":[{"url":"https://example.com/docs","index":1,"score":0.92,"snippet":"…"}],"provenance":{"fetched_at":"2026-06-18T12:00:00.000Z","latency_ms":2400,"content_sha256":"a1b2c3d4e5f6789012345678901234567890abcd"},"query_path":"/v1/aisearch/ged-abc123/query","session_id":"550e8400-e29b-41d4-a716-446655440000","instance_id":"ged-abc123","instructions":"Send session_token via X-AISearch-Session-Token header or body on query_path — no x402 until credits exhausted.","session_token":"abc123…"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.625","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.625/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.625","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.625","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_gPSG2rYxqyMvGj8ZcFAic","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.625","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches and indexes one or more public URLs, then answers a natural-language question using retrieved content chunks, returning a cited answer and a session for follow-up queries.","exampleAgentPrompt":"Fetch https://docs.example.com/getting-started and answer this question using hybrid retrieval with up to 10 chunks: 'How do I configure authentication?' — pay with USDC on Base, no API key needed.","exampleUseCases":null,"resultDescription":"A JSON object containing a natural-language answer with inline citation numbers, an array of citations (URL, snippet, relevance score), a session token and query path for follow-up questions without additional payment, remaining query and index-op credit counts, and provenance data including fetch timestamp and content hash.","failureModes":["URL is not publicly accessible or returns non-200 — indexing fails with an error on that URL","Question field missing — no answer generated, likely returns a 400 or empty answer","Payment not received or insufficient USDC — x402 payment required response returned before processing","All query credits exhausted — follow-up queries require a new payment","URL content too large or unsupported format — indexing may partially fail or truncate","poll=false with slow indexing — answer may be empty or low quality if index not ready"],"whenToPreferThis":"Choose this endpoint when you need to answer natural-language questions grounded in specific public web content (up to 5 URLs) and want cited, retrievable answers without managing API keys or vector database infrastructure. It is ideal for agents that need to do lightweight RAG over fresh URLs on demand, paid per-call via USDC on multiple chains. Prefer it over general web search when you have specific source URLs and need traceable citations.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:34:06.453Z","isFirstParty":false}