AI Glot websiteOpen AI Glot
VertalingenPlan goedkeuren en vertalen
batches

Plan goedkeuren en vertalen

Spends credits: the plan's measured word count at the chosen quality (standard: 1 word = 1 credit; lite: a third, rounded up) is reserved now and is the exact final cost, returned as credit_cost, unless a cancellation charges less. Pass expected_plan_revision (the batch's plan_revision) to approve exactly the plan that was reviewed: the call is refused with plan_changed if the plan was rebuilt since. It is optional here for existing scripts and required inside MCP and Code Mode, where a model decides. Returns the initial progress with estimated_seconds_remaining; poll the translation with GET from here.

POST/v1/batches/{batch_id}/approve

Vereist batches:create. Met deze aanroep worden credits besteed. Alles daarvoor (aanmaken, plannen, verfijnen) is gratis.

Wat het kost

Het gemeten aantal woorden in het plan wordt gereserveerd tegen de gekozen kwaliteit. De respons vermeldt het bedrag als credit_cost. Dat blijft de uiteindelijke kostprijs, tenzij annuleren minder kost.

KwaliteitKostenBeschikbaarheid
standard1 credit per woordElk plan
liteEen derde van het aantal woorden, naar boven afgerondBetaalde abonnementen

Omdat het aantal woorden op basis van het bestand wordt gemeten en niet wordt geschat, komt de reservering overeen met het aantal dat je in de planrespons zag. Als je saldo niet toereikend is, mislukt de aanroep met insufficient_credits en wordt er niets gereserveerd.

Daarna de voortgang controleren

De respons bevat de initiële voortgang, inclusief estimated_seconds_remaining. Controleer vanaf dat moment de voortgang met GET /v1/batches/{batch_id} in plaats van opnieuw approve aan te roepen. Een tweede goedkeuring voor een vertaling die al loopt, kost niets en retourneert de actuele voortgang. Je kunt dus veilig opnieuw proberen als een respons verloren is gegaan. Bij elke andere status mislukt de aanroep met batch_not_awaiting_approval.

custom_instructions past alleen richtlijnen toe op deze batch, naast een eventuele woordenlijst voor de werkruimte. Het verandert het plan niet en heeft dus alleen invloed op hoe er wordt vertaald, niet op wat er wordt vertaald.

Autorisaties

Authorizationbearerin headerrequired

Padparameters

batch_idstringrequired

Body

application/jsonrequired
qualityenum<string>one of: standard, lite
custom_instructionsstringlength: ≤ 2000 chars
expected_plan_revisionstringpattern: ^[a-f0-9]{64}$

The plan_revision returned with the reviewed plan. Rejects approval with plan_changed if that plan has changed since. Optional on REST; required in MCP and Code Mode, where a model decides to spend.

Antwoord

application/json

Approve the plan and start translating

dataobjectrequired
request_idstringrequired

Use these docs with your AI tools

An AI agent can read this documentation directly. You do not need an account or an API key. Everything here is public and read-only.

Query these docs via MCP

Recommended

Add this server to Claude, Claude Code, Cursor, Mistral, or any tool that supports MCP. Your agent can then search AI Glot Docs documentation and read it in full, instead of answering from memory.

https://ai-glot.com/docs/mcp
  • searchFind the passages that answer a question.
  • fetchRead one page in full, as Markdown.
  • list_pagesSee every page in this documentation.

Query these docs over HTTP

The same tools also work as plain web requests. Use this for scripts, or for any tool that does not support MCP. There is one endpoint per tool. Arguments go in the query string, and the answer comes back as JSON.

https://ai-glot.com/docs/api/docs/search?query=custom+domain

Read the OpenAPI description. It is built from the same definitions as the tools, so it always matches what the endpoints do.

Read these docs as Markdown

Add .md to any page URL to get its Markdown source. You can also send the headerAccept: text/markdown to the page URL itself.

To read the whole documentation in one file, open llms-full.txt. For a short index of every page, open llms.txt.