Sarvam One Documentation
Sarvam One is an OutSystems Forge component that provides integration with Sarvam AI services, including:
The component abstracts the Sarvam REST APIs and exposes simple OutSystems actions and structures for rapid development.
Before using this component:
Obtain your API key from Sarvam AI.
Example:
sk_xxxxxxxxxxxxxxxxxxxxx
Store the key securely using:
Avoid hardcoding API keys in application logic.
Convert text into speech.
TextToSpeech
Model = bulbul:v3 Text = नमस्ते, आज मैं आपकी क्या मदद कर सकता हूँ? TargetLanguageCode = hi-IN Speaker = shubh
The Audio field contains Base64 encoded audio.
BinaryDataFromBase64(Audio)
Convert audio into text.
SpeechToText
Model = saaras:v3 Mode = transcribe
Generate AI responses.
ChatCompletion
Role = user Content = What is the capital of India?
Digitize and process documents using Sarvam Vision.
Supported formats:
Maximum 10 pages per document.
Creates a new document processing job.
Language = hi-IN OutputFormat = md
Retrieves the current status of a document job.
JobId
Possible states:
Accepted Pending Running Completed PartiallyCompleted Failed
Waits until the processing job completes.
DocumentJobStatus
Downloads the generated output file.
Binary Data
For Sarvam AI service issues, refer to the official Sarvam AI documentation.
For Forge component issues, use the Forge support channel or project repository.