For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
CommunityAPI StatusAPI PricingSign Up
DocumentationAPI ReferencesCookbookIntegrationDeveloper Tools
DocumentationAPI ReferencesCookbookIntegrationDeveloper Tools
  • API Reference
    • Introduction
    • Authentication
    • Access to Beta APIs
    • Meta Prompt Guide
  • Endpoints
LogoLogo
CommunityAPI StatusAPI PricingSign Up
On this page
  • Key Features
  • Getting Started
  • Need Help?
API Reference

Welcome to Sarvam AI API Reference Documentation

||View as Markdown|
Was this page helpful?

Authentication

Next
Built with

Sarvam provides Models & APIs across the stack to help developers build powerful applications. Whether you’re looking for chat completion, text translation, speech-to-text conversion, or a combination of speech recognition and translation, Sarvam has you covered.

Key Features

Available APIs: Chat Completion, Text Translation, Speech to Text, Speech to Text Translate, Text to Speech, Transliteration, and Language Identification.

Chat Completion

Use the /chat/completions endpoint or the SDK to generate conversational responses. Supports 10 Indic languages along with English, delivering best-in-class multilingual performance.

Translate Text

Use the /translate endpoint or the SDK to translate text from one language to another. Supports 22 Indic languages along with English, achieving best-in-class performance.

Speech to Text

Use the /speech-to-text endpoint or the SDK to convert spoken language into written text. Output is returned in the same input language.

Speech to Text Translate

Use the /speech-to-text-translate endpoint or the SDK to combine speech recognition and translation, allowing you to convert spoken language directly into translated text.

Text to Speech

Use the /text-to-speech endpoint or the SDK to convert written text into spoken words. Supports natural-sounding voices across 10 languages.

Transliterate

Use the /transliterate endpoint or the SDK to convert text between different scripts while maintaining the same language. Perfect for handling multiple writing systems.

Language Identification

Use the /detect-language endpoint or the SDK to automatically identify the language of input text. Supports all major Indian languages with high accuracy.

Getting Started

To get started with Sarvam APIs, follow these steps:

  1. Authenticate: Learn how to authenticate your API requests in the Authentication Guide.
  2. Meta Prompt: You can now use our Meta Prompt directly to guide any AI chat model with the context needed to use Sarvam’s APIs effectively. An example on AI Studio with Gemini’s latest model: Explore here
  3. Try Examples: Use the Usage Guides to see examples and best practices.

Need Help?

If you have any questions or need assistance, visit our Help section or reach out to us on our Discord.