Skip to main content
POST
sarvam_chat

Authorizations

X-API-Key
string
header
required

Your fetchbean API key (fb_…). Keys are not accepted through Authorization.

Headers

Idempotency-Key
string

A caller-generated key for safely retrying this execution after a network failure. Reusing the same key with the same operation and input returns the original result; reusing it for a different call is rejected.

Body

application/json
messages
object[]
required
Minimum array length: 1
model
string
temperature
number
max_tokens
integer

Response

Success

The response is of type object.