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.
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.
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: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.translationpays for translating text and documents, and is the only pool these endpoints spend.ocrpays for standalone text extraction, which this API surface does not currently expose.
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 a422 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.
auto, English and the 22 scheduled languages.
autois a source only. Sending it as the target language is a422.directionisrtlfor 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
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.
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,webpandbmp. Any other type is a400. - Size: at most 150 MB, and not empty. A file over the limit or an empty file is a
400. - Lifetime: a
fileIdis valid for 24 hours. You can translate one file into several languages by starting more than one document job with the samefileId. pageCount: the physical page count forpdfanddocx, which is what you will be charged. It isnullfor images and plain text, whose page count is only known when the job runs.
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.
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
PollGET /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.
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.
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 returns402.
Nothing is translated and nothing is charged.
pagesNeededis what the request costs.pagesAvailableis what the pool holds.shortfallis how many pages you are short.

