Skip to the page

LiteLLM web search

One key behind the search providers it ships.

On November 10, 2026, LiteLLM's own provider code searched through SpecStream on production with only the address and key changed: Parallel, Perplexity Search, Linkup, You.com and SearchApi. Google PSE and SearXNG passed on November 9.

Set the provider's _API_BASE variable to its SpecStream address and its key variable to your SpecStream key. For Parallel that is PARALLEL_AI_API_BASE=https://api.specstream.ai/parallel. Your search_provider and your code stay as they are.

SpecStream is the most accurate web search API in the world: 97.9 F-score on all 1,000 SimpleQA Verified questions, at $5 per 1,000 searches. New accounts get $10 of credit, which covers 2,000 searches.

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

Each LiteLLM search provider and the setting that points it at SpecStream, from LiteLLM's source on Nov 10, 2026

Setting in LiteLLMValue for SpecStreamWhat LiteLLM sends by default
ParallelPARALLEL_AI_API_BASE, key in PARALLEL_AI_API_KEYhttps://api.specstream.ai/parallel (Parallel migration guide)https://api.parallel.ai, with /v1/search added
Perplexity SearchPERPLEXITY_API_BASE, key in PERPLEXITYAI_API_KEYhttps://api.specstream.ai/perplexity (Perplexity Search migration guide)https://api.perplexity.ai, with /search added
LinkupLINKUP_API_BASE, key in LINKUP_API_KEYhttps://api.specstream.ai/linkup/v1 (Linkup migration guide)https://api.linkup.so/v1, with /search added
You.comYOUCOM_API_BASE, key in YOUCOM_API_KEYhttps://api.specstream.ai/you (You.com migration guide)https://ydc-index.io, with /v1/search added
SearchApiSEARCHAPI_API_BASE, key in SEARCHAPI_API_KEYhttps://api.specstream.ai/searchapi/api/v1/search (SearchApi migration guide)https://www.searchapi.io/api/v1/search, the whole address
Google PSEGOOGLE_PSE_API_BASE, key in GOOGLE_PSE_API_KEYhttps://api.specstream.ai/customsearch/v1 (Google PSE migration guide)https://www.googleapis.com/customsearch/v1, the whole address
SearXNGSEARXNG_API_BASE, key in SEARXNG_API_KEYhttps://api.specstream.ai/searxng (SearXNG migration guide)No default: LiteLLM stops until the address is set

Why LiteLLM teams set SpecStream behind their search providers

Other search providers in LiteLLM

How SpecStream scores

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

How to set SpecStream as web search in LiteLLM

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

2. Check the key with the call LiteLLM will make.

import requests

KEY = "YOUR_SPECSTREAM_KEY"
reply = requests.post(
    "https://api.specstream.ai/perplexity/search",
    headers={"Authorization": f"Bearer {KEY}"},
    json={"query": "open source vector databases", "max_results": 5},
).json()

for result in reply["results"]:
    print(result["title"], result["url"])

3. Set the provider's base variable and key variable from the table where LiteLLM runs. For Perplexity Search:

PERPLEXITY_API_BASE=https://api.specstream.ai/perplexity
PERPLEXITYAI_API_KEY=<YOUR_SPECSTREAM_KEY>

4. Restart LiteLLM or the proxy and search with the same search_provider as before. Every call is billed as one search on your key, inside the spending limit the key carries.

When an agent needs a whole dataset in place of a results page, write the request in plain words. SpecStream reads it back as the conditions every row must meet, quotes the most it can cost, and delivers the rows after you approve.

Frequently asked questions

Something we didn't answer? Talk to a human

How do I add web search to LiteLLM?
Set one base variable and one key variable for a search provider LiteLLM ships. PARALLEL_AI_API_BASE=https://api.specstream.ai/parallel with your SpecStream key in PARALLEL_AI_API_KEY gives litellm.search the whole live web at $5 per 1,000 searches, and it passed on production on November 10, 2026.
What is the api_base for Perplexity search in LiteLLM?
https://api.specstream.ai/perplexity, set as PERPLEXITY_API_BASE. LiteLLM adds /search itself and reads the key from PERPLEXITYAI_API_KEY, so set that variable and not PERPLEXITY_API_KEY.
How do I use Parallel search in LiteLLM?
Call litellm.search with search_provider="parallel_ai". Set PARALLEL_AI_API_BASE=https://api.specstream.ai/parallel and your SpecStream key in PARALLEL_AI_API_KEY, and each call costs $0.005 for up to 10 results.
Does LiteLLM's google_pse provider work after January 1, 2027?
Not on Google's address, which Google ends on January 1, 2027. Set GOOGLE_PSE_API_BASE=https://api.specstream.ai/customsearch/v1, keep GOOGLE_PSE_ENGINE_ID, and the provider reads items[] as before.
How much does web search in LiteLLM cost with SpecStream?
$0.005 a call of up to 10 results, $5 per 1,000 searches, on every provider you point at SpecStream. New accounts get $10 of credit, no card, and credit you buy never expires.
Do I need a SearXNG server for LiteLLM's searxng provider?
No. Set SEARXNG_API_BASE=https://api.specstream.ai/searxng and your key in SEARXNG_API_KEY, and SpecStream answers in SearXNG's JSON at about 0.82 s a search at the median on production.
Can one key serve several LiteLLM search providers?
Yes. One SpecStream key answers Parallel, Perplexity Search, Linkup, You.com, SearchApi, Google PSE and SearXNG, each through its own variable, with one balance and one request log.

Sources

SpecStream wrote this page. Each LiteLLM setting comes from LiteLLM's source on GitHub, and each figure on another provider from that company's own page.

  1. LiteLLM Parallel search providergithub.com/BerriAI/litellm/blob/main/litellm/llms/parallel_ai/search/transformation.py, read Nov 10, 2026
  2. LiteLLM Perplexity search providergithub.com/BerriAI/litellm/blob/main/litellm/llms/perplexity/search/transformation.py, read Nov 10, 2026
  3. LiteLLM Linkup search providergithub.com/BerriAI/litellm/blob/main/litellm/llms/linkup/search/transformation.py, read Nov 10, 2026
  4. LiteLLM You.com search providergithub.com/BerriAI/litellm/blob/main/litellm/llms/you_com/search/transformation.py, read Nov 10, 2026
  5. LiteLLM SearchApi search providergithub.com/BerriAI/litellm/blob/main/litellm/llms/searchapi/search/transformation.py, read Nov 10, 2026
  6. LiteLLM Google PSE search providergithub.com/BerriAI/litellm/blob/main/litellm/llms/google_pse/search/transformation.py, read Nov 10, 2026
  7. LiteLLM SearXNG search providergithub.com/BerriAI/litellm/blob/main/litellm/llms/searxng/search/transformation.py, read Nov 10, 2026
  8. Google Custom Search JSON API overviewdevelopers.google.com/custom-search/v1/overview, read Nov 9, 2026
  9. Parallel search modesdocs.parallel.ai/search/modes.md, read Nov 10, 2026
  10. Parallel pricingdocs.parallel.ai/getting-started/pricing.md, read Nov 10, 2026
  11. Parallel rate limitsdocs.parallel.ai/getting-started/rate-limits.md, read Nov 10, 2026
  12. Perplexity Search API overviewdocs.perplexity.ai/docs/search/overview.md, read Nov 10, 2026
  13. Perplexity pricingdocs.perplexity.ai/docs/getting-started/pricing.md, read Nov 10, 2026
  14. Linkup pricingdocs.linkup.so/pages/documentation/platform/pricing.md, read Nov 10, 2026
  15. Linkup rate limitsdocs.linkup.so/pages/documentation/platform/rate-limits.md, read Nov 10, 2026
  16. You.com billingyou.com/docs/administration/billing.md, read Nov 10, 2026
  17. You.com plansyou.com/plans?hsLang=en, read Nov 10, 2026
  18. You.com rate limitsyou.com/docs/rate-limits.md, read Nov 10, 2026
  19. SearchApi pricingsearchapi.io/pricing, read Nov 10, 2026
  20. SpecStream benchmarksspecstream.ai/benchmarks, read Nov 10, 2026
  21. SpecStream pricingspecstream.ai/pricing, read Nov 10, 2026
  22. SpecStream for agentsspecstream.ai/agents.md, read Nov 10, 2026