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.| 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 |
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.
- A delayed review comment once the retry succeeds
- A dashboard notification if retries are exhausted and the review is dropped
- Upgrade your Sarvam AI subscription tier in the Sarvam AI Dashboard
- Switch to a faster model such as
sarvam-mto reduce per-request token usage - Contact support if you need help choosing the right plan
Getting a Sarvam AI API key
Create a Sarvam AI account
Go to dashboard.sarvam.ai and sign up or log in.
Name and copy the key
Give the key a descriptive name such as
garth-byok. Copy the key — it is shown only once.Add the key to Garth
Paste it into Garth’s Settings → Integrations → LLM under the Sarvam AI provider.
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.
Sarvam AI Dashboard
View your current subscription tier, API key usage, and rate limit details.

