Complete guide to using Sanvika AI Service APIs
All API requests require the app's registered client secret in this header:
x-client-secret: your-client-secret-herePOST/api/ttsConvert text to speech in multiple Indian languages.
{
"text": "नमस्ते",
"languageCode": "hi-IN"
}{
"audio": "base64-encoded-audio",
"cost": 0.15,
"units": 10
}POST/api/sttTranscribe audio to text.
{
"audio": "base64-encoded-audio",
"languageCode": "hi-IN"
}{
"text": "नमस्ते",
"confidence": 0.95,
"cost": 0.25
}POST/api/stt/streamReal-time speech-to-text streaming for live transcription.
GET/api/analyticsGet usage statistics and billing information for your app.
{
"clientId": "your-client-id",
"displayName": "Your App",
"monthlyLimit": 1000,
"totalSpent": 245.50,
"remaining": 754.50,
"status": "active"
}x-client-secret (client secret)