https://github.com/codewithsushil/sarvam.ai
Sarvam.AI for India AI ecosystem.
https://github.com/codewithsushil/sarvam.ai
ai api curl javascript python sarvam sarvamai typescript
Last synced: 6 months ago
JSON representation
Sarvam.AI for India AI ecosystem.
- Host: GitHub
- URL: https://github.com/codewithsushil/sarvam.ai
- Owner: CodeWithSushil
- License: mit
- Created: 2025-05-25T07:55:25.000Z (8 months ago)
- Default Branch: master
- Last Pushed: 2025-05-25T08:11:13.000Z (8 months ago)
- Last Synced: 2025-05-25T08:34:35.201Z (8 months ago)
- Topics: ai, api, curl, javascript, python, sarvam, sarvamai, typescript
- Language: TypeScript
- Homepage:
- Size: 0 Bytes
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ๐ฎ๐ณ Sarvam AI: Indiaโs Indigenous LLM Platform for Multilingual Intelligence
India has taken a significant leap in the AI domain with the launch of **Sarvam AI**, a homegrown platform offering cutting-edge large language model (LLM) capabilities tailored for Indian languages and use cases. Sarvam AI stands out not only for its LLM capabilities but also for its comprehensive suite of multilingual and multimodal tools, designed to bridge the language divide across digital India.
---
## โจ Key Features of Sarvam AI
Sarvam AI offers a wide range of AI-powered capabilities, making it a versatile platform for developers, enterprises, and public services:
- **๐ง Large Language Model (LLM)**
A robust model optimized for Indian linguistic contexts, capable of understanding, generating, and reasoning in multiple Indic languages.
- **๐ฃ๏ธ Text-to-Speech (TTS)**
Converts text into natural-sounding speech in various Indian languages for voice interfaces and accessibility.
- **๐๏ธ Speech-to-Text (STT)**
Accurately transcribes audio into text, handling diverse accents and dialects.
- **๐ Speech Translation (ST)**
Real-time translation of spoken languageโideal for conversations, learning, and customer support.
- **๐ Text Translation**
Seamlessly translate between English and Indian languages to support content localization.
- **โ๏ธ Transliteration**
Convert text between scripts (e.g., Roman โ๏ธ Devanagari) for regional communication.
- **๐๏ธ Indic Language Support**
Deep support for major Indian languages like Hindi, Tamil, Telugu, Bengali, Kannada, Malayalam, Marathi, Gujarati, and more.
---
## โ๏ธ Developer-Friendly API Access
Sarvam AI provides flexible and easy-to-use APIs with support for multiple programming environments:
- **๐ Python** โ Perfect for backend, data science, and ML applications.
- **๐จ JavaScript/TypeScript** โ Great for web, frontend, and Node.js projects.
- **๐ cURL** โ Simple command-line integration for quick tests and automation.
---
## โ
Conclusion
Sarvam AI is a transformative step forward in Indiaโs AI journey. By focusing on multilingual intelligence and developer-friendly APIs, it enables the creation of inclusive, accessible, and intelligent applications for a diverse user base.
> **Built in India, for India โ powering the next billion users.**
> ๐ฎ๐ณ **Sarvam AI** is shaping the future of AI with Indic excellence.
---
### cURL
```bash
curl -X POST https://api.sarvam.ai/v1/chat/completions \
-H "Authorization: Authorization" \
-H "Content-Type: application/json" \
-d '{
"messages": [
{
"role": "system",
"content": "content"
}
],
"model": "sarvam-m"
}'
```
### JavaScript/TypeScript
```ts
// Chat Completions (POST /v1/chat/completions)
const response = await fetch("https://api.sarvam.ai/v1/chat/completions", {
method: "POST",
headers: {
"Authorization": "Authorization",
"Content-Type": "application/json"
},
body: JSON.stringify({
"messages": [
{
"role": "assistant"
}
],
"model": "sarvam-m"
}),
});
const body = await response.json();
console.log(body);
```
### Python
```py
import requests
# Chat Completions (POST /v1/chat/completions)
response = requests.post(
"https://api.sarvam.ai/v1/chat/completions",
headers={
"Authorization": "Authorization"
},
json={
"messages": [
{
"role": "system",
"content": "content"
}
],
"model": "sarvam-m"
},
)
print(response.json())
```