SpecStream for Gemini Live API
SpecStream is the live web data engine for teams and agents. Declare web_search as a function in a Gemini Live session and answer each call with the SpecStream Search API. The model speaks the answer while your code keeps every source URL.
What you get
- Beside your other functions
- The search is one of your function_declarations, so it goes in the same session as the rest of your tools.
- The sources stay in your code
- Each call returns the answer, the page it was read from and the ranked results, so you can log or show every URL.
- Paid per search
- Each call of up to 10 results is one Search API call from your balance, with no quote and no approval.
Set it up
- Create a SpecStream API key and set it as SPECSTREAM_API_KEY.
- Declare a web_search function with a q parameter in the session config's tools.
- On each tool_call, call GET https://api.specstream.ai/v1/web-search and send the result with session.send_tool_response.
The full setup guide has every step, with what to do if something doesn’t arrive.
Live web data, in Gemini Live API.
Ask in your own words for companies, places, people, filings or anything else the web lists.