# Sarvam AI

> Indian-language speech, translation and chat AI (bring your own Sarvam key)

- Vendor: `sarvamai` · version 1.0 · category Natural Language Processing · tags india, indic languages, speech to text, text to speech, translation, llm, byok
- Datasource: OpenAPI/Swagger upstream
- Marketplace page: https://apiclay.com/api/sarvamai
- This document: https://apiclay.com/docs/sarvamai.md
- OpenAPI 3.1: https://apiclay.com/api/sarvamai/openapi.json
- MCP: connect https://api.apiclay.com/v1/mcp (see https://apiclay.com/llms.txt), then `apiclay_describe_api` with vendor `sarvamai`
- Updated: 2026-11-17

## About

## Sarvam AI (bring your own key)

Sarvam AI's APIs for Indian languages, served through ApiClay: speech to text, text to speech, translation, transliteration, language detection, chat models, document AI and dubbing. Every endpoint in Sarvam's API reference is available at the same path.

### Your Sarvam key

- Get a key at https://indus.sarvam.ai/key-management
- Send it on every call in the `api-subscription-key` header.
- Sarvam bills your own Sarvam account for usage. ApiClay charges 0.0001 credits per request (1 credit per 10,000 requests).

### Example: translate English to Hindi

```bash
curl -X POST "https://api.apiclay.com/v1/api/sarvamai/translate" \
  -H "Authorization: Bearer YOUR_APICLAY_TOKEN" \
  -H "api-subscription-key: YOUR_SARVAM_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input": "How are you?", "source_language_code": "en-IN", "target_language_code": "hi-IN"}'
```

### Limits

- Uploads (audio clips, voice samples, images, documents) up to 10 MB per request.
- For bigger files use Sarvam's job endpoints: they return upload links you send the files to directly.
- Streaming endpoints (`/text-to-speech/stream`, chat with `stream: true`) return the whole answer in one piece when it is finished.

## Pricing

- Pay as you go: 0.0001 credits/request
- Trial: 10 free requests per buyer
- Billing order: trial requests -> subscribed plan requests -> pay as you go. 1 credit's USD value is shown on the marketplace page.

## Routes

Paths follow the vendor's OpenAPI document; the interactive list is on https://apiclay.com/api/sarvamai. Call them as `https://api.apiclay.com/v1/api/sarvamai/<path>`.

## Call example

```bash
curl "https://api.apiclay.com/v1/api/sarvamai/<path>" \
  -H "token: <YOUR_APICLAY_TOKEN>"
```

Index of every published API: https://apiclay.com/llms.txt
