Text Analytics
This endpoint performs comprehensive text analysis on provided content and answers specific questions about the text. Each response is supported by reasoning and the exact phrase extracted from the content.
Headers
Your unique subscription key for authenticating requests to the Sarvam AI Speech-to-Text API. Here are the steps to get your api key
Body
List of questions to be answered based on the call content. Each question should be a valid JSON object with the following structure: {id: string, text: string, description: string (optional), type: string, properties: object}.
The type
field must be one of: boolean
, enum
, short answer
, long answer
, or number
. For enum
type questions, include an 'options' list in the properties.
The text content to be analyzed. This should be a non-empty string containing the full text for analysis.