answer
web.answerAnswer natural-language questions with AI-generated prose and citations from live web search, enabling verification of every source.
Instructions
[$0.08/call, wallet required] AI-generated answer to a natural-language question, grounded in live web search results with source citations. Returns clean prose plus a structured citations array (URL, snippet, favicon) - backed by an independent search index, not the model's training data. Useful when an agent needs a synthesized answer plus the receipts to verify or follow up.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | Yes | Natural-language question (max 400 chars) | |
| country | No | Optional 2-letter country code (default us) | |
| language | No | Optional 2-letter language code (default en) | |
| max_tokens | No | Optional cap on the generated answer length in tokens (default 1024, min 64, max 4096). Lower for TL;DR; higher for research questions. | |
| Idempotency-Key | No | Optional client-supplied key. Replaying the same key with the same payment/PoW credential and request body returns the original result instead of charging again. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| answer | Yes | ||
| citations | No | ||
| citationCount | No |