Sarvam Translate
Sarvam Translate is a multilingual translation model specializing in Indian languages, enabling seamless translation across multiple language pairs.
POST
/project/p-{Project_Id}/genai/sarvam_translate/v1/chat/completionsQuery parameters
project_idQueryintegerrequiredProject ID
Request body
application/json
example
0.5example
300example
1example
0example
1example
falseexample
sarvam_translateResponses
No StreamSuccessful response (Non-streaming)
example
chatcmpl-5bf016be-7107-4157-98d7-badbf5293e95example
chat.completionexample
1770614476example
sarvam_translateStreamSuccessful response (Streaming mode)
example
data: {"id":"chatcmpl-def456","object":"chat.completion.chunk","created":1770614476,"model":"sarvam_translate","choices":[{"index":0,"delta":{"role":"assistant","content":""},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-def456","object":"chat.completion.chunk","created":1770614476,"model":"sarvam_translate","choices":[{"index":0,"delta":{"content":"क्या"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-def456","object":"chat.completion.chunk","created":1770614476,"model":"sarvam_translate","choices":[{"index":0,"delta":{"content":" आप"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-def456","object":"chat.completion.chunk","created":1770614476,"model":"sarvam_translate","choices":[{"index":0,"delta":{"content":" ओपन"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-def456","object":"chat.completion.chunk","created":1770614476,"model":"sarvam_translate","choices":[{"index":0,"delta":{"content":" सोर्स"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-def456","object":"chat.completion.chunk","created":1770614476,"model":"sarvam_translate","choices":[{"index":0,"delta":{"content":" मशीन"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-def456","object":"chat.completion.chunk","created":1770614476,"model":"sarvam_translate","choices":[{"index":0,"delta":{"content":" लर्निंग"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-def456","object":"chat.completion.chunk","created":1770614476,"model":"sarvam_translate","choices":[{"index":0,"delta":{"content":" के"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-def456","object":"chat.completion.chunk","created":1770614476,"model":"sarvam_translate","choices":[{"index":0,"delta":{"content":" बारे"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-def456","object":"chat.completion.chunk","created":1770614476,"model":"sarvam_translate","choices":[{"index":0,"delta":{"content":" में"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-def456","object":"chat.completion.chunk","created":1770614476,"model":"sarvam_translate","choices":[{"index":0,"delta":{"content":" कविता"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-def456","object":"chat.completion.chunk","created":1770614476,"model":"sarvam_translate","choices":[{"index":0,"delta":{"content":" लिख"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-def456","object":"chat.completion.chunk","created":1770614476,"model":"sarvam_translate","choices":[{"index":0,"delta":{"content":" सकते"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-def456","object":"chat.completion.chunk","created":1770614476,"model":"sarvam_translate","choices":[{"index":0,"delta":{"content":" हैं?"},"logprobs":null,"finish_reason":"stop"}]}
data: [DONE]