AI Glot websiteOpen AI Glot
TraduccionesCrear una traducción
batches

Crear una traducción

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

Requiere batches:create. Crear una traducción no cuesta nada: los créditos solo se reservan al aprobar un plan.

Elegir cómo enviar el archivo

Hay tres métodos de transferencia y la elección correcta depende del formato, no de las preferencias.

Método de transferenciaCuándo usarloNotas
JSON con contentCualquier formato de textoEl propio archivo como texto UTF-8. Es la vía más sencilla si tu agente ya tiene el contenido en memoria.
JSON con file_urlUn archivo ya alojadoSolo HTTPS, obtenido en el servidor. No se siguen redirecciones, por lo que debes proporcionar la URL final.
multipart/form-dataXLSX y ZIPObligatorio para formatos binarios: no se pueden enviar como texto JSON.

filename es opcional, pero se recomienda enviarlo. La extensión determina el formato, por lo que nombres como strings.xml o export.csv aplicarán analizadores distintos aunque los bytes sean idénticos.

Qué ocurre a continuación

La respuesta devuelve un batch_id. A partir de ahí, la secuencia es siempre la misma:

  1. POST /v1/batches/{batch_id}/plan: describe qué traducir con tus propias palabras.
  2. POST /v1/batches/{batch_id}/approve: consume créditos e inicia el proceso.
  3. GET /v1/batches/{batch_id}: sondea el estado hasta que termine.
  4. GET /v1/batches/{batch_id}/result: obtén el resultado. Devuelve un enlace firmado, no el archivo en sí.

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.