81trust / 100
Llm Context
by LLM grounding context in Search & web
x402 APIPassing, checked 4 h ago
Web search that returns READY-TO-USE grounding text, not links: for one query you get the passages an independent search index extracted from the pages it ranked, flattened into chunks with their source URL and title and an approximate token count, under a token budget you choose (1024-32768, default 4096). Use it to ground a model or a RAG pipeline in one call, where search + extract would take several.
POST https://agent402.tools/api/llm-context
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 272 ms typical, 272 ms slowest 5%
- Last check
- 4 h ago
- Next check
- any minute now
How to call it
# See the payment challenge (nothing is charged)
curl -i -X POST "https://agent402.tools/api/llm-context" \
-H "content-type: application/json" \
-d '{"maxTokens":2048,"query":"x402 payment protocol"}'import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client().register(
"eip155:8453",
new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fagent402.tools%2Fapi%2Fllm-context
const res = await pay("https://agent402.tools/api/llm-context", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"maxTokens":2048,"query":"x402 payment protocol"}),
});
console.log(await res.json());Example input
{
"maxTokens": 2048,
"query": "x402 payment protocol"
}Example output
{
"chunks": [
{
"text": "x402 revives the HTTP 402 Payment Required status code so a server can quote a price and a client can pay per request...",
"title": "x402: An open standard for internet-native payments",
"tokensApprox": 34,
"url": "https://www.x402.org/"
}
],
"fetchedAt": "2026-08-22T12:00:00.000Z",
"query": "x402 payment protocol",
"source": "brave-llm-context",
"tokensApprox": 34,
"totalChunks": 1,
"truncated": false,
"untrustedContent": true
}Security scan
- No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 4 h ago | Passed | 402 | 272 ms | $0.02 |