> 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.

# Libraries & SDKs

## Official Libraries

Our SDKs provide a simple interface to access all Sarvam AI APIs including Speech-to-Text, Text-to-Speech, Translation, and Chat Completion.

| Language   | Package Manager                               |
| ---------- | --------------------------------------------- |
| Python     | [PyPI](https://pypi.org/project/sarvamai/)    |
| JavaScript | [npm](https://www.npmjs.com/package/sarvamai) |

## Installation

```bash
pip install sarvamai
```

```bash
npm install sarvamai
```

Upgrade to the latest version:

```bash
pip install --upgrade sarvamai
```

```bash
npm install sarvamai@latest
```

## Resources

| Resource          | Link                                                     |
| ----------------- | -------------------------------------------------------- |
| Example Notebooks | [GitHub](https://github.com/sarvamai/sarvam-ai-cookbook) |
| Community Support | [Discord](https://discord.com/invite/5rAsykttcs)         |