Skip to the page

LiteLLM

Google PSE stops on January 1, 2027. The setting to change.

LiteLLM's google_pse search provider calls Google's Custom Search JSON API with GOOGLE_PSE_API_KEY and GOOGLE_PSE_ENGINE_ID. Google closed that API to new customers and ends it on January 1, 2027.

LiteLLM reads Google's address from one variable. Set GOOGLE_PSE_API_BASE=https://api.specstream.ai/customsearch/v1 and put a SpecStream key in GOOGLE_PSE_API_KEY. The same request goes out and the same JSON comes back; our test passed by this base.

SpecStream scores 97.9 F-score on all 1,000 SimpleQA Verified questions and costs $5 per 1,000 searches, with no daily limit. A new account gets $10 of credit, no card, which covers 2,000 searches.

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

LiteLLM's Google PSE provider and what replaces it, from each company's own pages on Nov 10, 2026

SpecStreamGoogle PSETavilySerper
LiteLLM settingGOOGLE_PSE_API_BASE=https://api.specstream.ai/customsearch/v1, or SEARXNG_API_BASE=https://api.specstream.ai/searxng/<key>GOOGLE_PSE_API_KEY and GOOGLE_PSE_ENGINE_ID. GOOGLE_PSE_API_BASE defaults to https://www.googleapis.com/customsearch/v1TAVILY_API_KEY. TAVILY_API_BASE defaults to https://api.tavily.comSERPER_API_KEY. SERPER_API_BASE defaults to https://google.serper.dev
Open to a new accountYes. Create a key and start with $10 of credit, no cardNo. Closed to new customers, and existing customers have until January 1, 2027Yes, with 1,000 free credits every monthYes, with 2,500 free queries
Price per 1,000 searches$5, with up to 10 results a search$5 per 1,000 queries after 100 free queries a day, for existing customers only$0.008 a credit on pay as you go. A basic search is 1 credit and an advanced search 2$1.00 per 1,000 in the pack of 50,000 credits
LimitNo daily limit. Up to 8,800 searches a minute on one account10,000 queries a dayOn a monthly plan, requests stop when the month's credits run out300 queries per second on the largest pack
How long it lastsCredit you buy never expiresUntil January 1, 2027, when Google ends the APICredits reset on the first day of each monthCredits are valid for 6 months
What answers the searchThe whole live web, read at the moment of the call, in Google's JSON. 97.9 F-score on all 1,000 SimpleQA Verified questionsThe Programmable Search Engine you configuredTavily's search. Its own post reports 97.6% on SimpleQASerper's search, bought in credit packs from 50,000 credits

Why LiteLLM users point GOOGLE_PSE_API_BASE at SpecStream

Other Google PSE alternatives for LiteLLM

How SpecStream scores

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

How to move LiteLLM's Google PSE provider to SpecStream

1. Create a key under Agents & API in the SpecStream workspace. A new account gets $10 of credit, no card, which covers 2,000 searches.

2. Check the key with the call LiteLLM will send. A 200 with items means LiteLLM gets the same.

curl "https://api.specstream.ai/customsearch/v1?key=$SPECSTREAM_API_KEY&cx=any&q=test&num=10"

3. Where LiteLLM runs, set the base and the key, and keep GOOGLE_PSE_ENGINE_ID.

GOOGLE_PSE_API_BASE=https://api.specstream.ai/customsearch/v1
GOOGLE_PSE_API_KEY=<YOUR_SPECSTREAM_KEY>

4. Restart LiteLLM and run a search through the google_pse provider as you do today. Each search shows up in your SpecStream request log with its price.

Frequently asked questions

Something we didn't answer? Talk to a human

Why is Google PSE not working in LiteLLM?
Google closed the Custom Search JSON API to new customers and ends it on January 1, 2027, so a new project gets no key. Set GOOGLE_PSE_API_BASE=https://api.specstream.ai/customsearch/v1 with a SpecStream key in GOOGLE_PSE_API_KEY and the provider works again.
What is the best Google PSE alternative for LiteLLM?
SpecStream, at $5 per 1,000 searches with no daily limit and 97.9 F-score on all 1,000 SimpleQA Verified questions. It answers LiteLLM's own Google PSE call in Google's JSON, so one variable moves it.
What is GOOGLE_PSE_API_BASE in LiteLLM?
The address LiteLLM sends Google PSE searches to, by default https://www.googleapis.com/customsearch/v1. It holds the whole endpoint, so set it to https://api.specstream.ai/customsearch/v1.
Do I still need GOOGLE_PSE_ENGINE_ID?
Yes, LiteLLM refuses to search without it. Keep your current value: SpecStream accepts cx and does not use it, and searches the whole live web.
How much does LiteLLM web search cost with SpecStream?
$0.005 a search of up to 10 results, or $5 per 1,000. Credit you buy never expires, and the first $10 of credit covers 2,000 searches.
Is Google Custom Search shutting down?
Yes, on January 1, 2027 for existing customers, and it is already closed to new customers. Google names Vertex AI Search for up to 50 domains.

Sources

SpecStream wrote this page. LiteLLM's settings come from its source on GitHub, and each provider's figure from that company's own page.

  1. LiteLLM Google PSE provider, transformation.pygithub.com/BerriAI/litellm/blob/main/litellm/llms/google_pse/search/transformation.py, read Nov 10, 2026
  2. LiteLLM SearXNG provider, transformation.pygithub.com/BerriAI/litellm/blob/main/litellm/llms/searxng/search/transformation.py, read Nov 10, 2026
  3. LiteLLM Tavily provider, transformation.pygithub.com/BerriAI/litellm/blob/main/litellm/llms/tavily/search/transformation.py, read Nov 10, 2026
  4. LiteLLM Serper provider, transformation.pygithub.com/BerriAI/litellm/blob/main/litellm/llms/serper/search/transformation.py, read Nov 10, 2026
  5. LiteLLM docs, Google PSE searchdocs.litellm.ai/docs/search/google_pse, read Nov 10, 2026
  6. Google Custom Search JSON API overviewdevelopers.google.com/custom-search/v1/overview, read Nov 10, 2026
  7. Vertex AI Search pricingcloud.google.com/generative-ai-app-builder/pricing, read Nov 10, 2026
  8. Tavily API creditsdocs.tavily.com/documentation/api-credits.md, read Nov 10, 2026
  9. Tavily pricingtavily.com/pricing, read Nov 10, 2026
  10. Tavily, SealQA and SimpleQA posttavily.com/blog/tavily-ranks-1-on-sealqa-and-simpleqa, read Nov 10, 2026
  11. Serperserper.dev/, read Nov 10, 2026
  12. Brave Search APIbrave.com/search/api/, read Nov 10, 2026
  13. SpecStream benchmarksspecstream.ai/benchmarks, read Nov 10, 2026
  14. SpecStream pricingspecstream.ai/pricing, read Nov 10, 2026
  15. SpecStream for agentsspecstream.ai/agents.md, read Nov 10, 2026