{"name":"grounding-api","version":"1.0","description":"Detect LLM hallucinations: score how faithfully an answer is grounded in its source documents, claim by claim. Returns a 0-1 grounding score plus per-claim supported/partial/unsupported/contradicted labels.","auth":{"type":"rapidapi","via":"RapidAPI gateway","consumer_header":"X-RapidAPI-Key","note":"Subscribe on RapidAPI and call through the RapidAPI gateway. RapidAPI manages keys, billing, and quota."},"base_url":"https://anchor.rgtz.dev","openapi_url":"https://anchor.rgtz.dev/openapi.yaml","capability_status":{"ground":"ga","note":"Heuristic NLI-style scorer is the default. Optional LLM-as-judge backend (Bedrock) when configured; falls back to heuristic on error."},"operations":[{"id":"ground_answer","method":"POST","path":"/v1/ground","summary":"Score an answer against source documents and flag unsupported claims.","request_body":{"type":"object","properties":{"answer":"string — the LLM output to verify (required)","sources":"array — source text/urls: [\"doc text\", {\"text\":\"...\"}, {\"url\":\"https://...\"}] (required, >=1)","question":"string — optional question for context"},"required":"answer, sources"},"response":{"grounding_score":"number 0-1 — mean claim faithfulness","supported":"boolean — grounding_score >= 0.7","claim_count":"number","unsupported_count":"number — unsupported + contradicted","method":"heuristic|llm","claims":"array of { text, status, score, source_idx, reason }","source_count":"number","plan":"detected RapidAPI plan tier"},"headers":{"Idempotency-Key":"optional — safe retries, no double billing"},"example_request":{"answer":"The capital of France is Paris, population 12 million.","sources":["Paris is the capital of France. About 2.1 million live in the city."]}},{"id":"get_usage","method":"GET","path":"/v1/usage","summary":"Return the detected RapidAPI plan and per-plan limits (quota metered by RapidAPI)."}],"errors":{"envelope":"{ error: { code, message, hint, request_id } }","codes":["forbidden","invalid_request","payload_too_large","fetch_failed","ground_failed","internal_error"]},"tiers":{"free":{"max_bytes_per_op":50000,"max_claims":50},"pro":{"max_bytes_per_op":300000,"max_claims":300},"scale":{"max_bytes_per_op":1000000,"max_claims":1000}}}