Skip to the page

Vertex AI grounding with your search API

Drop-in SIMPLE_SEARCH at $1 per 1,000.

SpecStream answers Google Vertex AI's externalApi SIMPLE_SEARCH grounding spec natively at POST https://api.specstream.ai/vertex/search, returning [{"snippet", "uri"}] directly to Gemini at $1 per 1,000 searches ($0.001 a call on the fast tier) instead of $35 per 1,000 grounded prompts on Google Search grounding. SpecStream is state of the art on the live web, setting a new bar in research, extraction and search. On WideSearch it outscores every search API at under a tenth of the cost, with 64.0 item F1 on all 200 tasks against 57.6 for Parallel and 56.1 for Exa (published scores, Sep 9, 2026), and holds top published scores across 12 public benchmarks: WideSearch 200x4 (7.00% Avg@4 success rate, 57.32% Avg@4 item F1), 66.7% on Seal-0, 71.26% on Seal-Hard, 60.7% on FinSearchComp Global T3, 90.78% on FRAMES, 84.9% on cloro FreshQA, 99 on SimpleQA Verified, 88.51% on TRACE Extract v6, 0.7812 on search-provider-bench Extract, 0.914 on WCXB, 0.971 on Scrapinghub, and 40 of 40 on scrapingbench (benchmarks).

Set endpoint: 'https://api.specstream.ai/vertex/search' and put your SpecStream key in apiAuth.apiKeyConfig.apiKeyString (sent as ?key=<key>, X-Goog-Api-Key, or Bearer token). No glue server or proxy function is required.

New accounts get $10 of credit, no card. It covers 10,000 grounded Vertex AI searches.

SpecStream SIMPLE_SEARCH vs built-in Vertex AI Search grounding

SpecStream (`/vertex/search`)Vertex AI built-in grounding
EndpointPOST https://api.specstream.ai/vertex/search (api_spec: SIMPLE_SEARCH)Google Search grounding tool or custom self-hosted Cloud Run proxy
Authentication?key=<key> (what Vertex AI sends from apiKeyConfig.apiKeyString), X-Goog-Api-Key, or Authorization: BearerGCP IAM / Vertex billing account
Request and response shapeAccepts {"query": "..."} (and optional ?num=1..100, default 10); returns [{"snippet": "...", "uri": "https://..."}]Vertex AI externalApi SIMPLE_SEARCH OpenAPI contract
Pricing$1 per 1,000 searches ($0.001 a call for up to 10 results). $10 free credit on sign-up, no card$35 per 1,000 grounded requests on Vertex AI Google Search grounding
Zero retention and EU egressPer-key zero_retention: true, eu_egress_only: true, and engine_rule country filtersTied to Google Search indexing and retention settings
BenchmarksWideSearch 64.0 item F1, SimpleQA Verified 99, Seal-0 66.7%, Seal-Hard 71.26%, FRAMES 90.78%, cloro FreshQA 84.9% (benchmarks)Standard Google Search grounding

Why teams wire Vertex AI externalApi directly to SpecStream

How SpecStream scores

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

3-line setup for Vertex AI externalApi grounding

1. Create a SpecStream API key in the workspace. New accounts get $10 of credit, no card (10,000 grounded searches).

2. Verify the exact SIMPLE_SEARCH response in curl:

# Test SpecStream's Vertex AI SIMPLE_SEARCH endpoint directly ($1 per 1,000)
curl -X POST "https://api.specstream.ai/vertex/search?key=$SPECSTREAM_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query": "open source vector databases"}'

3. In Python (google-genai SDK on Vertex AI):

from google import genai
from google.genai import types

client = genai.Client(vertexai=True, project="YOUR_GCP_PROJECT", location="us-central1")
tool = types.Tool(
    retrieval=types.Retrieval(
        external_api=types.ExternalApi(
            api_spec="SIMPLE_SEARCH",
            endpoint="https://api.specstream.ai/vertex/search",
            api_auth=types.ApiAuth(api_key_config=types.ApiAuthApiKeyConfig(api_key_string=os.environ["SPECSTREAM_API_KEY"])),
        )
    )
)
res = client.models.generate_content(model="gemini-2.5-flash", contents="Latest vector database benchmarks", config=types.GenerateContentConfig(tools=[tool]))

4. In TypeScript (direct fetch or @google/genai Vertex config):

const res = await fetch(`https://api.specstream.ai/vertex/search?key=${process.env.SPECSTREAM_API_KEY}`, {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({ query: "open source vector databases" }),
});
const snippets: { snippet: string; uri: string }[] = await res.json();

5. Over MCP (Claude, Cursor, VS Code, ChatGPT):

// MCP client config (Claude, Cursor, VS Code, ChatGPT, Windsurf)
{
  "mcpServers": {
    "specstream": {
      "url": "https://api.specstream.ai/mcp",
      "headers": { "Authorization": "Bearer YOUR_SPECSTREAM_API_KEY" }
    }
  }
}
// Call tool: search_web({"q": "open source vector databases"})

Replacing Google Custom Search JSON API before January 1, 2027? See our Google Custom Search migration guide or test queries live in our Web search tester.

Vertex AI grounding migration questions

Something we didn't answer? Talk to a human

What exact format does POST /vertex/search return?
It returns a JSON array of {"snippet": "...", "uri": "https://..."} objects matching Google Cloud's externalApi SIMPLE_SEARCH specification, and an empty array [] when nothing matches.
How does Vertex AI pass the SpecStream API key?
When configured via apiAuth.apiKeyConfig.apiKeyString, Vertex AI appends ?key=<your_key> to the endpoint URL. SpecStream also accepts X-Goog-Api-Key and Authorization: Bearer headers.
How many snippets are returned per grounding call?
10 results by default ($0.001 per call, $1 per 1,000). Pass ?num=20 (up to 100) in the endpoint address if you want more snippets per call.
Does SpecStream log prompts or queries sent from Vertex AI?
Create a SpecStream API key with zero_retention: true and no query text or search result is retained after the response leaves our EU server.
Can I also replace Google Custom Search JSON API with the same account?
Yes. The same API key and balance cover /customsearch/v1 (Google CSE drop-in), /vertex/search, native /v1/web-search, and /v1/extract.

Sources

Verified directly against `finder/search_dialects/vertex.py` and Google Cloud Vertex AI grounding docs.

  1. SpecStream pricingspecstream.ai/pricing, read Nov 24, 2026
  2. SpecStream benchmarksspecstream.ai/benchmarks, read Nov 24, 2026
  3. Vertex AI Grounding with Your Search APIdocs.cloud.google.com/vertex-ai/generative-ai/docs/grounding/grounding-with-your-search-api, read Nov 12, 2026