> ## Documentation Index
> Fetch the complete documentation index at: https://docs.heygarth.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Sarvam AI Models and Rate Limits

> Understand Sarvam AI's models and subscription tiers so you can choose the right plan for your team's review and scan volume.

Sarvam AI provides large language models optimized for Indian languages and multilingual reasoning. All models are accessible via a REST API at `https://api.sarvam.ai` and are compatible with the OpenAI chat completions format.

<Info>
  Rate limits depend on your Sarvam AI subscription tier. Monitor your current usage in the [Sarvam AI Dashboard](https://dashboard.sarvam.ai/).
</Info>

***

## Supported models

Garth supports the following Sarvam AI models for code review and scan requests.

| Model             | Best for                                          | Context window   |
| ----------------- | ------------------------------------------------- | ---------------- |
| **`sarvam-105b`** | Complex reasoning, large diffs, security analysis | Long context     |
| **`sarvam-30b`**  | General-purpose multilingual reviews              | Long context     |
| **`sarvam-m`**    | Fast turnaround, lower cost, smaller PRs          | Standard context |

<Tip>
  Use `sarvam-105b` for large or security-sensitive pull requests. Use `sarvam-m` for high-volume, routine reviews where speed and cost matter more.
</Tip>

***

## Rate limits

Rate limits are set per subscription tier and measured in requests per minute (RPM) and tokens per minute (TPM). Contact [Sarvam AI support](https://dashboard.sarvam.ai/) for your current tier details and to request limit increases.

<Note>
  Rate limit details are managed through the Sarvam AI Dashboard. If Garth hits a rate limit, it retries automatically with exponential backoff. Sustained limits may delay when review comments are posted.
</Note>

**What you will see if rate limits are hit:**

* A delayed review comment once the retry succeeds
* A dashboard notification if retries are exhausted and the review is dropped

**How to resolve:**

* Upgrade your Sarvam AI subscription tier in the [Sarvam AI Dashboard](https://dashboard.sarvam.ai/)
* Switch to a faster model such as `sarvam-m` to reduce per-request token usage
* Contact [support](mailto:supports@darner.ai) if you need help choosing the right plan

***

## Getting a Sarvam AI API key

<Steps>
  <Step title="Create a Sarvam AI account">
    Go to [dashboard.sarvam.ai](https://dashboard.sarvam.ai/) and sign up or log in.
  </Step>

  <Step title="Navigate to API Keys">
    In the dashboard, open the **API Keys** section and click **Create New Key**.
  </Step>

  <Step title="Name and copy the key">
    Give the key a descriptive name such as `garth-byok`. Copy the key — it is shown only once.
  </Step>

  <Step title="Add the key to Garth">
    Paste it into Garth's [Settings → Integrations → LLM](https://app.heygarth.ai/settings/integrations) under the **Sarvam AI** provider.
  </Step>
</Steps>

<Warning>
  Never commit your Sarvam AI API key to a repository. Garth's secure vault is the correct place to store it. Garth's own code scan will flag any key found in source code.
</Warning>

***

## Provider references

Official Sarvam AI documentation for models, pricing, and API access.

<CardGroup cols={2}>
  <Card title="Sarvam AI docs" icon="book" href="https://docs.sarvam.ai/">
    Official Sarvam AI developer documentation including API reference and quickstarts.
  </Card>

  <Card title="Models" icon="microchip" href="https://docs.sarvam.ai/api-reference-docs/models">
    Full list of available Sarvam AI models and their capabilities.
  </Card>

  <Card title="Rate limits" icon="gauge-high" href="https://docs.sarvam.ai/api-reference-docs/ratelimits">
    Official rate limit reference for all subscription tiers.
  </Card>

  <Card title="Pricing" icon="receipt" href="https://docs.sarvam.ai/api-reference-docs/pricing">
    Per-token pricing and subscription tier details.
  </Card>

  <Card title="Sarvam AI Dashboard — API keys" icon="key" href="https://dashboard.sarvam.ai/">
    Create and manage your Sarvam AI API keys.
  </Card>
</CardGroup>

***

## Next steps

<Columns cols={2}>
  <Card title="BYOK overview" icon="key" href="/byok/overview">
    Add your Sarvam AI key to Garth's secure vault and set it as your active provider.
  </Card>

  <Card title="Sarvam AI Dashboard" icon="https://assets.sarvam.ai/assets/brand/logos/sarvam-logo-white.svg" href="https://dashboard.sarvam.ai/">
    View your current subscription tier, API key usage, and rate limit details.
  </Card>
</Columns>
