# tokenguard LLM Answer API

> tokenguard LLM Answer API is a paid API for AI agents from eltociear-tokenguard.hf.space, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-15).

Answers natural language questions about crypto, DeFi, ERC-20 tokens, OFAC sanctions, and on-chain data by searching the live web and synthesizing results with citations.

## Facts

- Endpoint: POST https://eltociear-tokenguard.hf.space/llm/answer
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/tokenguard-llm-answer-api-6e71bb23
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_dY117DcBf9ddsoWi_PHKF

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 tokenguard-llm-answer-api-6e71bb23 -d '<json body>'
```

Example prompt: Search the live web and tell me whether the ERC-20 token at contract address 0xabc123 has any known safety issues or honeypot flags — give me up to 5 sources and keep the answer under 400 words.

## When to prefer this

Choose this endpoint when you need a synthesized, cited natural-language answer about crypto/DeFi topics — especially ERC-20 token safety, OFAC sanctions screening, or DeFi analytics — and want live web evidence rather than a static database lookup. Prefer it over raw search APIs when you need the answer synthesized into prose with citations, and over static on-chain data APIs when you need broader contextual or news coverage.

## Known failure modes

- Query too vague or off-topic returns a low-quality or generic answer
- max_sources set to 0 or invalid integer may cause a parameter error
- Live web search may return stale or inaccurate information for rapidly changing on-chain data
- Payment failure (HTTP 402) if x402 micropayment is not properly authorized before the call
- Rate limiting or Hugging Face Spaces cold-start latency may cause timeouts
- Contract addresses not indexed by public web may yield no useful sources

## How this service works

What is the actual answer to this question, according to the live web right now? Runs a multi-engine search, reads the top pages, and returns one synthesised answer with inline [1][2] citations and the source URLs behind them — the whole search-read-summarise loop in a single paid call instead of a dozen

## Output

A JSON object containing a synthesized natural-language answer with inline citation numbers, the search engine used (DuckDuckGo), a list of up to 8 source URLs with titles mapped to citation numbers, and the underlying LLM provider name.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "query": {
   "type": "string",
   "description": "Question to answer from the live web"
  },
  "max_tokens": {
   "type": "integer",
   "description": "Answer length cap (default 700)"
  },
  "max_sources": {
   "type": "integer",
   "description": "1-8 pages to read (default 4)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "query": "What does the x402 payment-required header contain?",
  "answer": "It carries the accepted payment options, each with scheme, network, amount and payTo address [1], plus the x402 protocol version [2].",
  "engine": "duckduckgo",
  "sources": [
   {
    "n": 1,
    "url": "https://example.com/spec",
    "title": "x402 spec"
   },
   {
    "n": 2,
    "url": "https://example.com/docs",
    "title": "x402 docs"
   }
  ],
  "provider": "llm7"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/tokenguard-llm-answer-api-6e71bb23/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from eltociear-tokenguard.hf.space](https://www.zero.xyz/host/eltociear-tokenguard.hf.space/llms.txt)
