Skip to the page

Cloudflare AI Gateway web search in 2026

Prices, limits, SpecStream.

Cloudflare's Web Search API, in beta since October 2, 2026, sends a query through your AI Gateway to Ceramic.ai at $0.25 per 1,000, Linkup at $5.00 or Exa at $7.00. A call returns 10 results at most, and gateway credits carry a 5% fee.

SpecStream is the live web data engine for teams and agents. Add it to the same gateway as a custom provider: $1 per 1,000 searches with speed=fast, up to 100 results a call, and page reading and structured rows on the same key.

New accounts get $10 of credit, no card. It covers 10,000 fast searches.

Web search through AI Gateway, provider by provider

SpecStreamCeramic.aiLinkupExa
Price per 1,000 searches$1 with speed=fast, $5 on the default search, which also answers from the pages. Up to 10 results each$0.25 per 1,000 requests at list price$5.00 per 1,000 requests, fast search depth$7.00 per 1,000 requests, auto search type
What you pay on topNothing. The gateway passes the call to SpecStream as a custom provider, and your SpecStream balance paysList price with no markup. Credits bought through Unified Billing carry a 5% fee, or the provider bills your own keyList price with no markup. Credits bought through Unified Billing carry a 5% fee, or the provider bills your own keyList price with no markup. Credits bought through Unified Billing carry a 5% fee, or the provider bills your own key
10,000 searches a day$10 a day with speed=fast, $50 on the default search$2.63 a day with the 5% credit fee$52.50 a day with the 5% credit fee$73.50 a day with the 5% credit fee
Results per call1 to 100, set with num, and page 1 to 10 continues the same ranked list1 to 101 to 101 to 10
What comes backEach source's url, title, site, snippet and published date. passages=true adds the text of each page closest to the question. The default search adds the answer with the page it was read from and its read timeURL and title, with a description of each page up to 8,000 charactersURL and title, with raw search results and no generated answerURL and title, with Exa's highlights as the description
Data keptSet per key: a zero_retention key keeps no request text and no answer after the reply, and an eu_egress_only key sends its searches out only from MadridZero Data Retention: YesZero Data Retention: YesZero Data Retention: No
Reading the pagesExtract API on the same key: up to 20 pages, PDFs, Word and Excel files a call at $0.80 per 1,000 pages, and a page with no text is not chargedSearch results only: a URL, a title and an optional description, image, favicon and last modified dateSearch results only: a URL, a title and an optional description, image, favicon and last modified dateSearch results only: a URL, a title and an optional description, image, favicon and last modified date
Structured rowsDeep Search: a request in plain words returns every match on the live web as structured rows, with a source URL and read time on every value, at 5¢, 15¢ or $1 a rowA list of results for each queryA list of results for each queryA list of results for each query

Why teams on AI Gateway add SpecStream

The web search providers in AI Gateway

How SpecStream scores

The same numbers as the benchmarks page, from the official tasks and scorers.

How to search with SpecStream from a Worker

1. Create a key under Agents & API in the workspace, with finds:spend and a spending limit. A new account gets $10 of credit, no card, which covers 10,000 fast searches.

2. Store it as a Worker secret (npx wrangler secret put SPECSTREAM_API_KEY) and call SpecStream where your Worker calls env.AI.websearch() today, for example inside the web_search tool your model calls:

const reply = await fetch("https://api.specstream.ai/v1/web-search", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${env.SPECSTREAM_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({ q: toolCall.arguments.query, speed: "fast", num: 10 }),
});
const { data } = await reply.json();
const results = data.sources.map((s) => ({ url: s.url, title: s.title, description: s.snippet }));

3. To keep the call in your gateway logs, send it to the gateway address of the custom provider above in place of https://api.specstream.ai. An agent built with the Cloudflare Agents SDK can also use SpecStream over MCP: see the Cloudflare Agents guide.

Frequently asked questions

Something we didn't answer? Talk to a human

How much does web search cost in Cloudflare AI Gateway?
$0.25 per 1,000 requests on Ceramic.ai, $5.00 on Linkup and $7.00 on Exa, at each provider's list price with no markup. Credits bought through Unified Billing carry a 5% fee, so 1,000 Exa searches take $7.35 of what you paid. SpecStream costs $1 per 1,000 with speed=fast and $5 on the default search, through the gateway as a custom provider.
Which search providers does Cloudflare's Web Search API support?
Three: Ceramic.ai (ceramic, the default), Exa (exa) and Linkup (linkup). Any other HTTPS API, SpecStream included, goes through AI Gateway as a custom provider, with the same logs.
How many results does Cloudflare's Web Search API return?
10 at most per request, for a query of up to 1,024 characters. SpecStream returns 1 to 100 results for one search, and page continues the same ranked list.
Is Cloudflare's Web Search API generally available?
No. Cloudflare announced it in beta on October 2, 2026. A new SpecStream account gets $10 of credit, no card, and can search the same day.
Can I bring my own search key to AI Gateway?
Yes, for Ceramic.ai, Exa and Linkup: store the key on the gateway under an alias and the provider bills you directly. For SpecStream, send your SpecStream key as the Bearer token through the custom provider, and SpecStream bills your balance.
Does SpecStream work in a Cloudflare Worker?
Yes. One fetch to https://api.specstream.ai/v1/web-search costs $0.001 for up to 10 results with speed=fast. Agents built with the Cloudflare Agents SDK can also use the MCP server at https://api.specstream.ai/mcp.

Sources

SpecStream wrote this page. Each figure about Cloudflare and its providers comes from Cloudflare's own documentation.

  1. Cloudflare Web Search API, providers and pricingdevelopers.cloudflare.com/web-search/providers/, read Nov 12, 2026
  2. Cloudflare Web Search API, how to usedevelopers.cloudflare.com/web-search/how-to-use/, read Nov 12, 2026
  3. Cloudflare Web Search API, aboutdevelopers.cloudflare.com/web-search/about/, read Nov 12, 2026
  4. Cloudflare changelog, Web Search APIdevelopers.cloudflare.com/changelog/product/web-search/, read Nov 12, 2026
  5. AI Gateway, Unified Billingdevelopers.cloudflare.com/ai-gateway/features/unified-billing/, read Nov 12, 2026
  6. AI Gateway, custom providersdevelopers.cloudflare.com/ai-gateway/configuration/custom-providers/, read Nov 12, 2026