Skip to main content
The translation API translates legal text and documents between English and the 22 languages of the Eighth Schedule to the Constitution of India. These are the languages Indian courts and governments work in. It is built for legal material, so statutory phrasing, citations and numbering survive the translation. Translation is a separate product from the primary-law endpoints. It has its own scopes, its own balance and its own billing unit. Read the sections below in order before you send your first charged request.

What is live today

Every route lives under /api/v1/in/, the India API. The full request and response schemas are in the India API reference tab.

Authentication

Send your API key as a bearer token, the same as every other Vaquill endpoint.
Translation uses two scopes:
A wildcard * key holds both translation scopes, and so does a legacy research:read key. A key that can read primary law can therefore spend translation pages. Pages are paid for separately from credits, so an account with no pages receives a 402 rather than a surprise bill. To limit a key, grant it only the scopes it needs by name.
A key without the scope receives a 403 that names the scope it is missing.

Pages, not characters or tokens

Translation is billed in pages. Nothing is counted in tokens.
  • Text: one page is 2,000 characters. A request is charged ceil(characters / 2000) pages.
  • Documents: one page of the document is one page.
There is no free floor on size. Any non-empty text costs at least 1 page, even ten characters. This differs from the dashboard, which does not charge for very short text. Empty or whitespace-only text is refused with a 422 and costs nothing.
Your account’s monthly free page allowance does apply to API calls. Pages are pooled per account, not per credential, and a charge spends free pages before paid ones. So the free figure on your balance is usually not 0, and the first few pages of a month may cost you nothing. Budget from pagesRemaining, which is free plus paid.

What a page costs

Pages are bought in packs, priced in Indian rupees with GST, and the pack list is live:
The list is abbreviated here. The live response holds every pack on sale, for both pools. priceInr, baseInr and gstInr are in paise (1/100 of a rupee), the unit the payment is charged in. priceInr is GST-inclusive and is what you pay. pricePerPageInr is in rupees and is a display figure. This route is free and needs translate:read. Larger packs are cheaper per page, and both pools have their own packs. Read the list rather than hardcoding a price.
Translation pages are sold in INR only. They are not bought with API credits and there is no USD price for a page. The pricing matrix at GET /api/v1/in/api-credits/pricing lists the translation routes with unit: "page" and a usdCost of 0. That 0 means “not priced in dollars”, not “free”: the credits figure on those rows counts pages, and one page is what the call spends.

Two pools, and which one this API spends

Your balance holds two separate pools of pages.
  • translation pays for translating text and documents, and is the only pool these endpoints spend.
  • ocr pays for standalone text extraction, which this API surface does not currently expose.
Translating a document spends translation pages only, whether or not it is a scan. Reading a scanned page is included in the document price: you are not charged OCR pages for it. Budget from the translation pool. The ocr figure is reported so it is visible to an account that holds OCR pages, not because a translation call will draw on it. Pages are also separate from API credits. GET /api/v1/in/credits/balance reports credits and says nothing about pages. GET /api/v1/in/translation/balance reports pages and says nothing about credits. Neither pays for the other.

Pages are pooled at the organization

If your key belongs to an organization, the balance is the organization’s pooled balance, not a personal one. Every member spends from the same pool, so a colleague’s large job changes the number you see.

List the languages

Read the list instead of hard-coding it. A language code you invent is refused with a 422 before any page is charged, and the error names what is supported. Regional tags are narrowed to the language, so hi-IN is read as hi.
The list is abbreviated here. The live response holds all 24 entries: auto, English and the 22 scheduled languages.
  • auto is a source only. Sending it as the target language is a 422.
  • direction is rtl for Urdu, Sindhi and Kashmiri. Honour it when you display translated output.
  • This route is free and rate limited like every key-authenticated route.

Check your balance

This route is free, so you can poll it to drive alerting or a pre-flight check. It still answers when the balance is zero. Budget from pagesRemaining, which is free plus paid. A charge spends free first, so a job can run while paid stays untouched.

Translate text

POST /api/v1/in/translation/translations translates a block of text and returns the result in the same response. It needs translate:write. The text is 1 to 50,000 characters. Longer text is a 422, never a silent truncation, so send longer work through the document routes.
Everything that can be checked up front is checked before the charge, and a refusal costs nothing. That covers an unsupported language, text over 50,000 characters and empty text.

Upload a file

POST /api/v1/in/translation/files stores a source file for your account and returns a fileId. It needs translate:write, is free, and takes a multipart form with one file field.
  • Types: pdf, docx, txt, jpg, jpeg, png, tif, tiff, webp and bmp. Any other type is a 400.
  • Size: at most 150 MB, and not empty. A file over the limit or an empty file is a 400.
  • Lifetime: a fileId is valid for 24 hours. You can translate one file into several languages by starting more than one document job with the same fileId.
  • pageCount: the physical page count for pdf and docx, which is what you will be charged. It is null for images and plain text, whose page count is only known when the job runs.
The API never fetches a URL you name. A document job accepts only a fileId, and a fileId from another account is a 404.

Translate a document

POST /api/v1/in/translation/documents starts translating an uploaded file. It needs translate:write and answers 202 Accepted with a documentId and a Location header. courtStyle is one of supreme, delhi, bombay, calcutta_original, calcutta_appellate, madras, karnataka, allahabad, kerala and punjab_haryana. It renders the output to that court’s paper, font, margins and line spacing. The font mandate applies when targetLanguage is English. An Indic target is always set in Noto Sans, while paper size, margins and spacing still apply. Tables, figures and document structure are preserved on every job, so there is no flag for it.
Submitting costs nothing. The job spends one translation page per physical page of the document, once, when it completes. A job that fails spends nothing. An unsupported language, an unknown outputFormat, courtStyle or engine, and a sourceFileUrl field are each a 422. An unknown, expired or foreign fileId is a 404. The balance check uses the page count recorded at upload. For pdf and docx that is exact, and an insufficient balance is a 402. For images and plain text it only confirms you hold at least one page. If the real count is higher than your balance, the job ends failed with INSUFFICIENT_TRANSLATION_PAGES and you are not charged. Submitting the same fileId with the same languages and output format while the first job is still running returns that job, still with 202, instead of starting a second one. Once it has finished, the same request starts a new job.

Check the status

Poll GET /api/v1/in/translation/documents/{id} every 2 to 5 seconds until status is completed or failed. It needs translate:read and is free. pagesCharged is null until the job completes. error.code is INSUFFICIENT_TRANSLATION_PAGES or TRANSLATION_FAILED, and neither charges you. A document id that is not yours, or does not exist, is a 404.

Download the result

GET /api/v1/in/translation/documents/{id}/content streams the translated file. It needs translate:read, is free, and downloading again never charges again.
The response body is the file. There is no URL to follow and nothing that expires. Send the same Authorization header you use for every other call. By default you get the format you asked for in outputFormat. A job submitted with outputFormat set to pdf also produces a Word copy when one could be generated. Add ?format=docx to download it, or ?format=pdf to ask for the PDF explicitly. Any other format value is a 422, and a format that does not exist for the job is a 404. While the job is not completed this route is a 404, so poll the status route first. ETag is supported, and If-None-Match answers 304. Range is supported for plain, unencrypted files and answers 206, so an interrupted download can resume.

Retries and Idempotency-Key

POST /api/v1/in/translation/translations accepts an Idempotency-Key header. Send a fresh unique value for each logical request and reuse it on a retry. The key is 16 to 255 visible ASCII characters, and a UUIDv4 works. A retry with the same key returns the original response for 24 hours and does not charge again.
The document routes do not take the header. Starting a document job does not charge, and a duplicate that is still running is collapsed into the first job.

Rate limits

Every translation route is rate limited per key, per minute and per hour. A request over the limit receives a 429.

When you run out of pages

A request your balance cannot cover returns 402. Nothing is translated and nothing is charged.
  • pagesNeeded is what the request costs.
  • pagesAvailable is what the pool holds.
  • shortfall is how many pages you are short.
If a charged text translation fails or comes back empty, the pages are refunded. You are not billed for a translation you did not receive.
Last modified on November 7, 2026