Skip to main content
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.
Rate limits depend on your Sarvam AI subscription tier. Monitor your current usage in the Sarvam AI Dashboard.

Supported models

Garth supports the following Sarvam AI models for code review and scan requests.
ModelBest forContext window
sarvam-105bComplex reasoning, large diffs, security analysisLong context
sarvam-30bGeneral-purpose multilingual reviewsLong context
sarvam-mFast turnaround, lower cost, smaller PRsStandard context
Use sarvam-105b for large or security-sensitive pull requests. Use sarvam-m for high-volume, routine reviews where speed and cost matter more.

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 for your current tier details and to request limit increases.
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.
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
  • Switch to a faster model such as sarvam-m to reduce per-request token usage
  • Contact support if you need help choosing the right plan

Getting a Sarvam AI API key

1

Create a Sarvam AI account

Go to dashboard.sarvam.ai and sign up or log in.
2

Navigate to API Keys

In the dashboard, open the API Keys section and click Create New Key.
3

Name and copy the key

Give the key a descriptive name such as garth-byok. Copy the key — it is shown only once.
4

Add the key to Garth

Paste it into Garth’s Settings → Integrations → LLM under the Sarvam AI provider.
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.

Provider references

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

Sarvam AI docs

Official Sarvam AI developer documentation including API reference and quickstarts.

Models

Full list of available Sarvam AI models and their capabilities.

Rate limits

Official rate limit reference for all subscription tiers.

Pricing

Per-token pricing and subscription tier details.

Sarvam AI Dashboard — API keys

Create and manage your Sarvam AI API keys.

Next steps

BYOK overview

Add your Sarvam AI key to Garth’s secure vault and set it as your active provider.
https://assets.sarvam.ai/assets/brand/logos/sarvam-logo-white.svg

Sarvam AI Dashboard

View your current subscription tier, API key usage, and rate limit details.