document-translation

Installation
SKILL.md

Document Translation — Sarvam AI

Live in-chat document translation → sarvam-mcp. This skill = SDK code.

Translating short text (a sentence or paragraph)? → text-translation — client.text.translate(), not this API.

[!IMPORTANT] Auth: api-subscription-key header — NOT Authorization: Bearer. Base URL: https://api.sarvam.ai (NOT /v1 — that prefix is only for the OpenAI-compatible chat endpoint)

What this API does

Translates a whole document (PDF, Word, Excel, PowerPoint, HTML) into up to 12 Indian languages per job, preserving layout and formatting. The output is a translated file in the original format — not plain text.

This is an asynchronous API. There is no single-call "translate this file" method. Every integration follows five steps: create → upload → start → poll → export.

Supported file formats

Installs
4
Repository
sarvamai/skills
GitHub Stars
75
First Seen
Oct 24, 2026