Skip to the page

SpecStream for Mistral API

SpecStream is the live web data engine for teams and agents. Declare web_search as a function for a Mistral model and answer each call with the SpecStream Search API. It works on Chat Completions as well as the Agents API.

What you get

On Chat Completions
A function tool works on every endpoint that takes tools, including Chat Completions, where Mistral's own web_search does not run.
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.
A price you can read
Each call of up to 10 results is {search} per 1,000 searches, from your balance.

Set it up

  1. Create a SpecStream API key and set it as SPECSTREAM_API_KEY.
  2. Add a web_search function with a q parameter to the tools of your Mistral call.
  3. On each tool call, call GET https://api.specstream.ai/v1/web-search and send the result back as a tool message.

The full setup guide has every step, with what to do if something doesn’t arrive.

Live web data, in Mistral API.

Ask in your own words for companies, places, people, filings or anything else the web lists.