Get Page Balance
get_page_balanceReturns the translation and OCR pages this API key's account can spend now.
Free. Never charged, so you can poll it to drive alerting or a pre-flight check without the check itself costing you anything. Like the credit balance, it is designed to still answer when the answer is "nothing": at a zero balance a metered call 402s and tells you nothing, which is the moment the number matters most.
Authentication: a vq_key_ key holding translate:read.
Pages, not characters
This product bills physical pages. A page of text is 2,000 characters; a page of a document is a page of that document. Nothing here is counted in tokens.
Two pools, and which one this API spends
translation and ocr are separate balances, not two views of one number.
Translating a document, scanned or not, spends translation pages only.
Reading a scan is included in that price: this API does not charge you OCR
pages for it. Budget from the translation pool.
The ocr pool exists for standalone text extraction, which is a separate
operation this API surface does not currently expose. It is reported here so
the figure is visible to an account that holds OCR pages, not because a
translation call will draw on it.
Your free allowance applies here too
Pages are pooled per ACCOUNT, not per credential, so the monthly free allowance
your account holds is spendable through the API as well. A charge draws on
free before paid, which means the first pages of a month can cost nothing
and leave paid untouched.
Budget from pagesRemaining, which is free plus paid. Budgeting from paid
alone understates what you can spend.
Separate from API credits
Translation pages and API credits are different currencies on different
ledgers. GET /credits/balance reports credits for the primary-law endpoints
and says nothing about pages; this endpoint reports pages and says nothing
about credits. Neither pays for the other.
Pages are pooled per organization
If your key belongs to an organization, these figures are the ORGANIZATION's pooled balance, not your personal one. Every member spends from the same pool, so a colleague's large job changes what you see here.
Example
curl https://api.vaquill.ai/api/v1/in/translation/balance \
-H "Authorization: Bearer $VAQUILL_API_KEY"{
"translation": {
"pagesRemaining": 1480,
"free": 0,
"paid": 1480,
"totalPurchased": 2000,
"totalConsumed": 520
},
"ocr": {
"pagesRemaining": 310,
"free": 0,
"paid": 310,
"totalPurchased": 500,
"totalConsumed": 190
},
"pagesArePhysical": true,
"asOf": "2026-11-01T12:34:56Z"
}Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_page_balance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||