Welcome to Model APIs Documentation
Model APIs bring two model families together. Both use the same API key, the same sarvamai SDK, and the same credit balance, so you can mix them in one app.
Get started
Token Factory (Open-Weight)
Open-weight LLMs on https://api.sarvam.ai/v2, compatible with the OpenAI SDK. Switch models by changing the model field.
DeepSeek V4 Pro, Kimi K3.1 Pro, Qwen 3.8 27B, the Clef decision model, and EmbeddingGemma 2 text embeddings are on Provisioned Throughput and are enabled per organisation.
Moving from another provider? Follow the migration guide for OpenRouter, Fireworks AI, or Together AI.
Sarvam Models
Combine them
Both families use the same key, so a voice agent is three calls: Saaras hears the caller, an LLM decides what to say, and Bulbul says it.
Build with your tools
- Integrations: LiveKit, Pipecat, Twilio, Exotel, Vobiz, Vapi, n8n, the Vercel AI SDK, and LangChain.
- Developer Tools: the MCP server, Markdown and llms.txt, Context7, and Agent Skills for AI coding assistants.
- Cookbook: step-by-step notebooks, from first calls to full pipelines.
- Migrations: switch speech and Gemini workloads from ElevenLabs, Cartesia, Deepgram, or Gemini.
Resources
- All Models: every model across both families, with language support and how to choose.
- Building for Indian Languages: language coverage, code-mixing, scripts, numerals, and telephony audio.
- Authentication: send your API subscription key, or a Bearer token, with every request.
- Errors & Troubleshooting: error codes, retry strategies, and fixes for common issues.
- Account & Billing: organisations, workspaces, team invites, and payments.
- Changelog: new features, model updates, and breaking changes.
- Talk to us: reach the team for bugs, feature requests, and enterprise questions.
- Discord: early access to releases, office hours with the team, and India’s AI builder community.