How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Sarvam text API

The text API from Sarvam — 3 operation(s) for text.

Sarvam text API is one of 8 APIs that Sarvam publishes on the APIs.io network, described by a machine-readable OpenAPI specification and an AsyncAPI event-driven specification.

Tagged areas include Text. The published artifact set on APIs.io includes an OpenAPI specification and an AsyncAPI specification.

This API exposes 3 operations across 3 paths, and defines 19 schemas. It is described by OpenAPI 3.1.0, at version 1.0.0.

Requests are made against a single base URL, https://api.sarvam.ai.

3 operations 3 paths 19 schemas 3 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.1.0
API Version
1.0.0
Base URL
https://api.sarvam.ai
Authentication
API Key, HTTP Bearer
Resource Areas
1

Authentication & Security 2

Sarvam text API declares 2 security schemes for authenticating requests. An API key is passed in the header as api-subscription-key (ApiKeyAuth). It accepts HTTP bearer tokens (HTTPBearer).

Paths & Operations 3

Across 3 paths, the API surfaces 3 operations — 3 POST. Each is listed below with its method, path, parameters, and response codes.

text 3
POST
/translate
Translate Text
translate 1 param body → 200400403422429500
POST
/transliterate
Transliterate Text
transliterate 1 param body → 200400403422429500
POST
/text-lid
Language Identification
identify-language 1 param body → 200400403422429500

Schemas 19

The contract defines 19 schemas that model the data the API accepts and returns. The most detailed are Sarvam_Model_API_TranslationRequest (8 properties), Sarvam_Model_API_TransliterationRequest (6 properties), Sarvam_Model_API_ErrorDetails (3 properties), Sarvam_Model_API_TransliterationResponse (3 properties). Each schema is shown below with its type and property counts.

Sarvam_Model_API_NumeralsFormat
string
Sarvam_Model_API_ErrorMessage
object
1 property 1 required
Sarvam_Model_API_ErrorCode
string
Sarvam_Model_API_LanguageIdentificationResponse
object
3 properties 1 required
Sarvam_Model_API_TransliterationResponse
object
3 properties 3 required
Sarvam_Model_API_SpokenFormNumeralsFormat
string
Sarvam_Model_API_TranslateTargetLanguage
string
Sarvam_Model_API_TransliterationRequest
object
6 properties 3 required
Sarvam_Model_API_TranslatiterateTargetLanguage
string
Sarvam_Model_API_ErrorDetails
object
3 properties 3 required
Sarvam_Model_API_TranslateMode
string
Sarvam_Model_API_TranslateModel
string
Sarvam_Model_API_TranslationRequest
object
8 properties 3 required
Sarvam_Model_API_TranslateSpeakerGender
string
Sarvam_Model_API_TransliterateMode
string
Sarvam_Model_API_LanguageIdentificationRequest
object
1 property 1 required
Sarvam_Model_API_TranslateSourceLanguage
string
Sarvam_Model_API_TransliterateSourceLanguage
string
Sarvam_Model_API_TranslationResponse
object
3 properties 3 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

sarvam-text-api-openapi.yml Raw ↑

Other APIs Sarvam publishes across the network.

Sarvam chat API
Sarvam documentIntelligence API
Sarvam pronunciationDictionary API
Sarvam speechToText API
Sarvam speechToTextJob API
Sarvam speechToTextTranslateJob API
Sarvam textToSpeech API
Where this information came from

This is an independent, third-party profile of Sarvam text API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.