> For clean Markdown of any page, append `.md` to the page URL.
> For a complete documentation index, see https://docs.sarvam.ai/llms.txt.
> For full documentation content in one file, see https://docs.sarvam.ai/llms-full.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.sarvam.ai/_mcp/server.

# Welcome to Sarvam AI API Reference Documentation

> Explore Sarvam AI's comprehensive API documentation for chat completion, speech-to-text, text-to-speech, translation, and more across 22+ Indian languages.

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](/api-reference-docs/chat/chat-completions), [Text Translation](/api-reference-docs/text/translate-text), [Speech to Text](/api-reference-docs/speech-to-text/transcribe), [Speech to Text Translate](/api-reference-docs/speech-to-text-translate/translate), [Text to Speech](/api-reference-docs/text-to-speech/convert), [Transliteration](/api-reference-docs/text/transliterate-text), and [Language Identification](/api-reference-docs/text/identify-language).

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.

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.

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

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.

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

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

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](/api-reference-docs/authentication).
2. **Meta Prompt**: You can now use our [Meta Prompt](/api-reference-docs/metaprompt) 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](https://aistudio.google.com/app/prompts/14NyNJ8V4icyNPoRBm2UiFbhXxS9ooy0m)
3. **Try Examples**: Use the [Usage Guides](/api-reference-docs/combined_usage_guide) to see examples and best practices.

## Need Help?

If you have any questions or need assistance, visit our [Help](/api-reference-docs/help) section or reach out to us on our [Discord](https://discord.com/invite/5rAsykttcs).