AI Glot websiteOpen AI Glot
TraductionsCréer une traduction
batches

Créer une traduction

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

Nécessite batches:create. Créer une traduction ne coûte rien : les crédits ne sont réservés que lorsque vous approuvez un plan.

Choisir le mode d’envoi du fichier

Trois modes de transfert sont disponibles, et le choix dépend du format plutôt que de vos préférences.

Mode de transfertCas d’usageRemarques
JSON avec contentTout format texteLe fichier lui-même sous forme de texte UTF-8. La méthode la plus simple pour un agent qui a déjà le contenu en mémoire.
JSON avec file_urlUn fichier déjà hébergéHTTPS uniquement, récupéré côté serveur. Les redirections ne sont pas suivies, vous devez donc fournir l’URL finale.
multipart/form-dataXLSX et ZIPObligatoire pour les formats binaires : ils ne peuvent pas être transmis sous forme de texte JSON.

filename est facultatif mais utile. L’extension permet d’identifier le format : ainsi, un nom comme strings.xml et un nom comme export.csv mèneront à des parseurs différents sur des octets identiques.

Ce qui se passe ensuite

La réponse renvoie un batch_id. À partir de là, la séquence est toujours la même :

  1. POST /v1/batches/{batch_id}/plan : décrivez ce qu’il faut traduire, avec vos propres mots.
  2. POST /v1/batches/{batch_id}/approve : débitez les crédits et lancez le traitement.
  3. GET /v1/batches/{batch_id} : interrogez l’endpoint jusqu’à la fin du traitement.
  4. GET /v1/batches/{batch_id}/result : récupérez le résultat. Un lien signé est renvoyé, et non le fichier directement.

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.