{"query":"chat completions","count":1,"total":1,"results":[{"id":"exa.web.answer","provider":"exa","provider_display":"Exa","name":"Answer a question with citations","summary":"Get an LLM answer to a question informed by Exa search results. Fully compatible with OpenAI's chat completions endpoint.","method":"POST","path":"/answer","scope":"any_account","tier":"core","kind":"data","domain":"answer","call_template":"treg call exa.web.answer --method POST --data '{\"query\":\"What year was the HNSW algorithm paper published and by whom?\"}'","cost":{"type":"per_call","value":5,"currency":"USD","per":1000,"unit":"call","source":"observed","source_url":"https://exa.ai/pricing","checked":"2026-08-27","confidence":"verified","note":"$0.005 per answer (OBSERVED 2026-08-27: costDollars.total 0.005). Platform billing settles the exact costDollars.total.","usd":0.005},"async":null,"platform_eligible":true,"platform_blocked":null,"miss":null,"status":null,"status_note":null,"superseded_by":null,"verified":"2026-08-27","added":"2026-08-27","docs_url":"https://docs.exa.ai/reference/answer","has_example":true,"input":{"bodyType":"json","body":{"query":{"type":"string","required":true,"note":"a question or instruction; Exa searches, reads, and writes an answer with citations","example":"What year was the HNSW algorithm paper published and by whom?"},"text":{"type":"boolean","required":false,"note":"true also returns the full text of each cited page"},"outputSchema":{"type":"object","required":false,"note":"JSON Schema draft-7; when set, `answer` is a JSON object in that shape instead of prose"},"stream":{"type":"boolean","required":false,"note":"server-sent events; leave false through the proxy"}},"note":"response is {answer, citations: [{url, title, publishedDate, author, text?}], costDollars}. This is the one Exa route that runs a model over the results; for raw results use exa.web.search."},"test_request":{"body":{"query":"What year was the HNSW algorithm paper published and by whom?"}},"capability":"web.answer","capability_description":"Answer a question from live web research, with cited sources","platform":"web","platform_label":"Open web & SEO data","score":24.9478,"observed":{"samples":374316,"decided":374063,"ok_rate":0.9999,"p50_ms":1657,"p95_ms":3680,"last_ok_days":0,"hit_rate":1.0,"hit_samples":217400},"wallet":{"payable":true,"protocols":["mpp"],"minimum_payment_micro":10000,"fee_bps":0,"note":"pay per call with a wallet, no account. A payment is at least $0.01; the call is charged only its real price, and the rest stays as this wallet's credit for its next calls (credit is not paid back as money)."}}],"hints":["treg catalog get exa.web.answer   # params, cost and an example response","treg call exa.web.answer --method POST --data '{\"query\":\"What year was the HNSW algorithm paper published and by whom?\"}'   # run it — key injected server-side"]}