# Brave Search LLM Context via Locus x402

> Brave Search LLM Context via Locus x402 is a paid API for AI agents from brave.x402.paywithlocus.com, paid per call via x402, $0.035/call, status unknown (last checked 2026-09-15).

Fetches privacy-first web search results optimized for LLM consumption, returning summarized context from Brave's independent index with freshness and token controls.

## Facts

- Endpoint: POST https://brave.x402.paywithlocus.com/brave/llm-context
- Price: $0.035/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/brave-search-llm-context-via-locus-x402-4d262602
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_QlalxwbYdjHfCOztTvgD0

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability brave-search-llm-context-via-locus-x402-4d262602 -d '<json body>'
```

Example prompt: Search the web for the latest news on OpenAI's GPT-5 release using Brave Search, limiting results to the past week and keeping the context under 4096 tokens.

## When to prefer this

Choose this endpoint when you need web search results formatted specifically for LLM consumption, with token budget control and freshness filtering. Prefer it over generic search APIs when privacy matters (Brave's independent index avoids Google/Bing tracking), when you need to cap context size for prompt engineering, or when paying per-call via x402/USDC is acceptable. It is particularly well-suited for agents that need grounded, current web knowledge without building their own scraping pipeline.

## Known failure modes

- Empty or vague query returns low-quality or no results
- Freshness filter set incorrectly returns stale or out-of-range content
- Token limit too low truncates important context
- Payment failure if insufficient USDC balance is available
- Rate limiting or timeout if query is too broad
- maximum_number_of_urls exceeding 50 causes validation error

## How this service works

Independent web search — web, news, images, videos, AI answers, and LLM context. Privacy-first search from a large independent index.

## Output

A JSON object containing LLM-optimized web search context aggregated from up to 50 URLs, capped at a configurable token limit (default 8192), along with payment settlement details (USDC amount) and a request ID for status tracking.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "q": {
   "type": "string"
  },
  "freshness": {
   "type": "string"
  },
  "maximum_number_of_urls": {
   "type": "number"
  },
  "maximum_number_of_tokens": {
   "type": "number"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {},
  "payment": {
   "scheme": "exact",
   "settledUsdc": "0.001000",
   "authorizedMaxUsdc": "0.001000"
  },
  "request": {
   "id": "00000000-0000-4000-8000-000000000000",
   "statusUrl": "/requests/00000000-0000-4000-8000-000000000000"
  },
  "success": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/brave-search-llm-context-via-locus-x402-4d262602/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from brave.x402.paywithlocus.com](https://www.zero.xyz/host/brave.x402.paywithlocus.com/llms.txt)
