Skip to navigation

Welcome to Model APIs Documentation

View as Markdown

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.

Token Factory (Open-Weight)Sarvam Models
What it isOpen-weight LLMs served on Sarvam infrastructureSarvam’s own models for Indian-language speech, translation, and documents
ModelsSarvam 105B, GLM-5.3, Gemma 4, DeepSeek, KimiSaaras, Bulbul, Mayura, Sarvam-Translate, Sarvam Vision
APIsChat Completions and Responses on /v2, compatible with the OpenAI SDKSpeech to Text, Text to Speech, Text Processing, Document Intelligence, Document Translation, Dubbing, Voice Cloning
Use it toReason, write code, call tools, and run agentsHear, speak, translate, and read Hindi, Tamil, Telugu, and every major Indian language, including code-mixed input
Start hereToken Factory overviewSpeech to Text or Text to Speech

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.

ModelModel IDBest for
Sarvam 105Bsarvam-105bIndian-language reasoning, coding, and agents
Sarvam 105B Conversationssarvam-105b-conversationsReal-time dialogue and voice agents
GLM-5.3glm5.3Coding and long-horizon agents
GLM-5.3 Flashglm5.3-flashFast reasoning with image input
Gemma 4 31Bgemma4Images and low-latency answers
DeepSeek V4.1 Flash 1017deepseekv4.1-flash-1017Long documents and cost-sensitive reasoning

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.