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 chat API

The chat API from Sarvam — 1 operation(s) for chat.

Sarvam chat 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 Chat. The published artifact set on APIs.io includes an OpenAPI specification and an AsyncAPI specification.

This API exposes 1 operation across 1 path, and defines 25 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.

1 operations 1 paths 25 schemas 1 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 chat 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 1

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

chat 1
POST
/v1/chat/completions
Chat Completions
completions 2 params body → 200400403422429500

Schemas 25

The contract defines 25 schemas that model the data the API accepts and returns. The most detailed are CreateChatCompletionRequest (16 properties), CreateChatCompletionResponse (8 properties), ChatCompletionResponseMessage (5 properties), CompletionUsage (5 properties). Each schema is shown below with its type and property counts.

FunctionDefinition
object
3 properties 1 required
ErrorDetails
object
3 properties 2 required
ChatCompletionNamedToolChoiceFunction
object
1 property 1 required
ErrorMessage
object
1 property 1 required
CreateChatCompletionRequest
object
16 properties 2 required
Choice
object
4 properties 3 required
ReasoningEffort
string
ToolChoiceOption0
string
JsonSchemaDefinition
object
4 properties 1 required
ToolChoiceOption
CreateChatCompletionResponse
object
8 properties 5 required
ChatCompletionResponseMessage
object
5 properties 2 required
CompletionUsage
object
5 properties 3 required
ChatCompletionTool
object
2 properties 2 required
ChatCompletionNamedToolChoice
object
2 properties 2 required
ResponseFormat
ChatCompletionMessageToolCall
object
3 properties 3 required
StopConfiguration
Up to 4 sequences where the API will stop generating further tokens. The returned text will not contain the stop sequence.
ChatCompletionRequestMessage
FunctionCall
object
2 properties 2 required
Role
string
SarvamModelIds
string
Supported chat completion model IDs: sarvam-30b, sarvam-105b.
FinishReason
string
JsonSchemaDefinitionSchema
object
The schema for the response format, described as a JSON Schema object.
ErrorCode
string

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

sarvam-chat-api-openapi.yml Raw ↑

Other APIs Sarvam publishes across the network.

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

This is an independent, third-party profile of Sarvam chat 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.