> SpecStream is the live web data engine for teams and agents. This is the Markdown copy of https://specstream.ai/integrations/mistral-api. Every page, with what SpecStream does and costs: https://specstream.ai/llms.txt

# 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.

[Read the guide](https://specstream.ai/docs/integrations/mistral-api.md)

## 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.

Status

Live

Category

[Agent frameworks & builders](https://specstream.ai/integrations.md#frameworks)

Built by

SpecStream

You need

A Mistral API key, the mistralai SDK, and a SpecStream API key.

Pricing

[You pay for the matches](https://specstream.ai/pricing.md)

Setup guide

[Read the guide](https://specstream.ai/docs/integrations/mistral-api.md)

Help

[Talk to a human](https://specstream.ai/talk-to-a-human.md)

## 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](https://specstream.ai/docs/integrations/mistral-api.md) has every step, with what to do if something doesn’t arrive.

## Also in Agent frameworks & builders

The same live web data, in the other tools of this kind.

-   [OpenAI API](https://specstream.ai/integrations/openai.md)
-   [OpenAI Agents SDK](https://specstream.ai/integrations/openai-agents-sdk.md)
-   [LangChain](https://specstream.ai/integrations/langchain.md)
-   [LlamaIndex](https://specstream.ai/integrations/llamaindex.md)
-   [CrewAI](https://specstream.ai/integrations/crewai.md)
-   [Vercel](https://specstream.ai/integrations/vercel.md)
-   [Haystack](https://specstream.ai/integrations/haystack.md)
-   [See all](https://specstream.ai/integrations.md#frameworks)

## Live web data, in Mistral API.

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

[Read the guide](https://specstream.ai/docs/integrations/mistral-api.md)[Talk to a human](https://specstream.ai/talk-to-a-human.md)
