Sarvam AI's compact 2B-parameter language model built from the ground up for Indian languages. Provides best-in-class performance across 10 Indic languages (bn, gu, hi, kn, ml, mr, or, pa, ta, te) alongside English, outperforming larger general-purpose models like Gemma-2-2B and Llama-3.2-3B thanks to careful data curation and an efficient Indic tokenizer. Edge-deployable.
8K tokens
1
可用
价格最低
Sarvam AI
$0.30/1M tokens
Sarvam AI
按每百万输入与输出 token 的总成本排序。选择一行可查看提供商详情。
| 提供商 | 价格(每百万) | 速率限制 | 区域 | 状态 | 延迟 |
|---|---|---|---|---|---|
输入: $0.10输出: $0.20 | 200 RPM / 300K TPM | ap-south-1 | 正常 | 0ms |
通过 Sarvam AI 使用此模型,兼容 OpenAI SDK。
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api.sarvam.com/v1",
apiKey: process.env.SARVAM_API_KEY,
});
const response = await client.chat.completions.create({
model: "sarvam-1",
messages: [
{ role: "user", content: "Hello!" }
],
});
console.log(response.choices[0].message.content);使用 Sarvam AI API · 兼容 OpenAI SDK