AI Glot websiteOpen AI Glot
TraduzioniApprova il piano e traduci
batches

Approva il piano e traduci

Consuma crediti: il conteggio delle parole del piano alla qualità scelta (standard: 1 parola = 1 credito; lite: un terzo, arrotondato per eccesso) viene riservato e addebitato al completamento. Restituisce il progresso iniziale con estimated_seconds_remaining: da questo punto, effettua il polling della traduzione tramite GET.

POST/v1/batches/{batch_id}/approve

Richiede il permesso batches:create. Questa è la chiamata che consuma i crediti. Tutte le operazioni precedenti (creazione, pianificazione, perfezionamento) sono gratuite.

Quanto costa

Il conteggio effettivo delle parole calcolato nel piano viene riservato al livello di qualità selezionato, per poi essere saldato in base al consumo reale al termine della traduzione.

QualitàCostoDisponibilità
standard1 credito per parolaTutti i piani
liteUn terzo delle parole, arrotondato per eccessoPiani a pagamento

Poiché il conteggio viene calcolato a partire dal file e non per stima, l’importo riservato corrisponde esattamente al valore mostrato nella risposta del piano. Se il saldo non è sufficiente a coprirlo, la chiamata fallisce con l’errore insufficient_credits e non viene riservato alcun credito.

Monitoraggio dell’avanzamento

La risposta restituisce lo stato di avanzamento iniziale, incluso estimated_seconds_remaining. Da questo momento in poi, effettua il polling tramite GET /v1/batches/{batch_id} anziché chiamare nuovamente l’endpoint di approvazione. Una seconda approvazione su una traduzione già in corso restituirà l’errore batch_not_awaiting_approval.

Il parametro custom_instructions applica istruzioni specifiche solo a questo batch, in aggiunta a qualsiasi glossario del workspace. Non modifica il piano, pertanto non influisce su ciò che viene tradotto, ma solo su come viene tradotto.

Risposta

application/json

Approva il piano e avvia la traduzione

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.