AI Glot websiteOpen AI Glot
TraduçõesCriar uma tradução
batches

Criar uma tradução

Send the file one of three ways: JSON with content (the file itself as UTF-8 text — text formats only, the simplest path for agents), JSON with file_url (HTTPS, fetched server-side, no redirects), or multipart/form-data with a file field (required for XLSX and ZIP). filename is optional: if omitted, a clean default name is generated and the format is inferred automatically from the content. Include instruction to get the full trust-gated plan back in the same response (takes some seconds); omit it to receive four grounded suggested_instructions and continue with the plan endpoint. Quality is chosen at approval, not here — the plan quotes both tiers. Per-format size limits are on /v1/account as entitlements.max_upload_bytes_by_format. The upload also appears in the web app.

POST/v1/batches

Requer batches:create. Criar uma tradução não custa nada: os créditos são reservados apenas quando você aprova um plano.

Como escolher a forma de envio do arquivo

Há três métodos de envio, e a escolha ideal depende do formato do arquivo, e não de preferência pessoal.

MétodoRecomendado paraObservações
JSON com contentQualquer formato de textoO próprio arquivo como texto em UTF-8. É o caminho mais simples para um agente que já tem o conteúdo em memória.
JSON com file_urlArquivos já hospedadosApenas HTTPS, obtido no lado do servidor. Redirecionamentos não são seguidos, portanto forneça a URL final.
multipart/form-dataXLSX e ZIPObrigatório para formatos binários: eles não podem ser enviados como texto JSON.

O parâmetro filename é opcional, mas recomendável. O formato é identificado por meio da extensão; portanto, nomes como strings.xml e export.csv acionam parsers diferentes para bytes idênticos.

Próximos passos

A resposta retorna um batch_id. A partir daí, a sequência é sempre a mesma:

  1. POST /v1/batches/{batch_id}/plan: descreva o que deve ser traduzido, com suas próprias palavras.
  2. POST /v1/batches/{batch_id}/approve: use créditos e inicie o processo.
  3. GET /v1/batches/{batch_id}: consulte o status até a conclusão.
  4. GET /v1/batches/{batch_id}/result: obtenha o resultado. Retorna um link assinado, e não o arquivo diretamente.

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.