Search your agent can cite — in tokens it can afford.
One request returns a verbatim quote and its source identifier in a token-lean payload. Your agent attributes every claim — and pays for a sentence, not a scraped page.
curl https://api.aptrouter.com/v1/search \ -H "Authorization: Bearer $APT_KEY" \ -H "X-Token-Budget: 120" \ -d '{ "query": "EU AI Act high-risk obligations" }' 200 OK 6.4 ms · 1 credit { "quote": "High-risk AI systems shall be designed and developed...", "source": "eur-lex.europa.eu · AI-Act · Art.14", "published": "2024-06-13", "tokens": 74, "fabricated_citations": 0 }
Three steps. No invention anywhere in them.
Extract, don't generate
The evidence sentence is lifted character-for-character from a fetched source. The model never rewrites it, so it can't drift.
Every quote carries its origin
A stable source id and publish date ship with each quote, so your agent — and your auditor — can trace it back.
Built for what agents pay
Abbreviated keys and an X-Token-Budget header keep the response near 74 tokens — a fraction of a scraped page.
No fabrication, by construction.
Grounding isn't a prompt we hope holds. It's an architecture: if a quote can't be found in a fetched source, it isn't returned.
Span-verified quotes
Each quote is checked to exist as a contiguous span in the source before the response is built.
Source allowlist
Retrieval runs against curated, dated corpora — not the open web's worst neighborhoods.
Abuse guard
Per-key rate limits and a monthly credit ceiling cap blast radius and runaway spend.
Empty over wrong
No confident match? You get an empty result, not a plausible guess. Silence beats a fabricated cite.
fabricated citations by architecture — every quote is extracted verbatim from a fetched source.
tokens per result vs ~480 for a typical scraped page your agent would otherwise read.
single-digit p99 on cached retrieval, measured at the edge in us-east and eu-west.
A recorded example — not a live playground.
This shows the exact shape you'll get back. Wire it to your key to run real queries against the live index.
{ "quote": "Providers shall ensure traceability of the system's functioning...", "source": "eur-lex.europa.eu · AI-Act · Art.12", "tokens": 68, "fabricated_citations": 0 }
One credit per call. Verbatim every time.
1 credit per /v1/search call, billed against your monthly ceiling.