# `Perplexed.Search.Cloudflare`
[🔗](https://github.com/agoodway/perplexed/blob/v0.2.0/lib/perplexed/search/cloudflare.ex#L1)

Cloudflare Web Search API (through AI Gateway) as a `Perplexed.Search` provider.

One endpoint fronts three upstream engines, chosen with `:provider`:
`"ceramic"` (Cloudflare's default upstream, long page descriptions),
`"linkup"` (fast raw results) and `"exa"` (auto mode, page highlights).
Requests bill at each engine's list price through AI Gateway credits, or
to a provider key stored on the gateway. At most ten results per request.

Needs `config :perplexed, cloudflare_account_id:` and a
`cloudflare_api_token:` with Workers AI Read and AI Gateway Read;
`cloudflare_gateway_id:` defaults to `"default"`.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
