Skip to main content
Sarvam AI provides language models built for Indian languages. The plugin uses Sarvam’s OpenAI-compatible Chat Completions endpoint and automatically strips <think> reasoning blocks from streamed output.
Vision Agents uses Stream Video for real-time WebRTC transport by default. External WebRTC transports are supported as well. Most AI providers offer free tiers to get started.
Get your Sarvam API key from the Sarvam dashboard.
Sarvam also provides speech-to-text and text-to-speech. You can use all three in the same agent.

Installation

Quick start

Set SARVAM_API_KEY in your environment or pass api_key directly.

Parameters

Available models

Sarvam-m supports “hybrid thinking” — it emits <think> reasoning blocks before the answer. The plugin automatically strips these so they don’t reach TTS.

Function calling

See the Function Calling guide for details.

Next steps

Sarvam STT

Streaming speech-to-text for Indian languages

Sarvam TTS

Streaming text-to-speech for Indian languages