Sarvam AI icon

Sarvam AI

Indian language AI APIs — transcribe, speak, and chat across 22+ Indian languages

Actions3

Chat → Complete

AI-generated

Summary

Generate a chat completion using the selected Sarvam model.

Inputs

  • chatModel (required) — Select the model version (Sarvam 105B or Sarvam 30B).
  • userMessage (required) — The message to send to the model.
  • systemMessage — Optional system prompt to guide the model behavior.
  • chatOptions — Additional model configuration options.

Output shape

a single record containing the chat completion JSON response

The response includes fields from the Sarvam API; may contain error details; not paginated.

Examples

Example 1: Generate a response to a user query.

Select Sarvam 105B, set User Message to 'Explain the theory of relativity', leave System Message empty, add Max Tokens=512.

Links

Discussion