Stay organized with collections
Save and categorize content based on your preferences.
Vertex AI Translation is one of the three Vertex AI
pre-trained APIs on Google Distributed Cloud (GDC) air-gapped. With the
Vertex AI Translation service, you can translate text written in more than
twenty languages into English.
Vertex AI Translation offers the following methods available in
Distributed Cloud:
Before making translation requests, set up a translation project.
You can test the Vertex AI Translation API on Distributed Cloud by
translating text
from one language to another.
Considerations
When using the Vertex AI Translation API, particularly the translateText
method, consider the following aspects:
The maximum input length of contents for translation is 1024 characters.
The translateText method doesn't support batching.
Types of characters and large portions of text affect translation quality.
Therefore, if you experience translation issues, follow these steps:
Remove all special and escape characters that might affect the processing
of the request.
Reduce the input size by splitting the contents into smaller sentences.
Translate each of the smaller sentences again by sending them in separate
requests to the endpoint.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-25 UTC."],[[["\u003cp\u003eVertex AI Translation, available on Google Distributed Cloud (GDC) air-gapped, allows you to translate text from over twenty languages into English.\u003c/p\u003e\n"],["\u003cp\u003eThe service offers various methods, including \u003ccode\u003ebatchTranslateDocument\u003c/code\u003e for large volumes, \u003ccode\u003edetectLanguage\u003c/code\u003e to identify the source language, and \u003ccode\u003etranslateText\u003c/code\u003e for direct text translation.\u003c/p\u003e\n"],["\u003cp\u003eVertex AI Translation supports obtaining operational statuses through the \u003ccode\u003egetOperation\u003c/code\u003e and \u003ccode\u003elistOperations\u003c/code\u003e methods, alongside getting all the languages supported by the service with \u003ccode\u003egetSupportedLanguages\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003etranslateText\u003c/code\u003e method has a maximum input limit of 1024 characters and does not support batching, requiring special characters to be removed and large text to be broken into sentences to improve quality.\u003c/p\u003e\n"],["\u003cp\u003eA glossary can optionally be created for defining terms to translate and a project setup is required before making translation requests, while failure to follow these limiting considerations might result in an \u003ccode\u003eAITR2130\u003c/code\u003e error.\u003c/p\u003e\n"]]],[],null,["# Learn about translation features\n\nVertex AI Translation is one of the three Vertex AI\npre-trained APIs on Google Distributed Cloud (GDC) air-gapped. With the\nVertex AI Translation service, you can translate text written in more than\ntwenty languages into English.\n\nVertex AI Translation offers the following methods available in\nDistributed Cloud:\n\nTo optionally define terms to translate, see\n[Create and use a glossary](/distributed-cloud/hosted/docs/latest/gdch/application/ao-user/vertex-ai-glossary).\n\nBefore making translation requests, [set up a translation project](/distributed-cloud/hosted/docs/latest/gdch/application/ao-user/vai-set-up-translation).\nYou can test the Vertex AI Translation API on Distributed Cloud by\n[translating text](/distributed-cloud/hosted/docs/latest/gdch/application/ao-user/quickstart-translation)\nfrom one language to another.\n\nConsiderations\n--------------\n\nWhen using the Vertex AI Translation API, particularly the `translateText`\nmethod, consider the following aspects:\n\n- The maximum input length of contents for translation is 1024 characters.\n- The `translateText` method doesn't support batching.\n- Types of characters and large portions of text affect translation quality.\n Therefore, if you experience translation issues, follow these steps:\n\n 1. Remove all special and escape characters that might affect the processing of the request.\n 2. Reduce the input size by splitting the contents into smaller sentences.\n 3. Translate each of the smaller sentences again by sending them in separate requests to the endpoint.\n\nFor more information, see [`translateText`](/distributed-cloud/hosted/docs/latest/gdch/apis/vertex-ai/translation/rest/v3/projects/translateText).\n| **Important:** Failure to follow these limiting considerations might result in error [`AITR2130 - TranslationServiceInternal`](/distributed-cloud/hosted/docs/latest/gdch/platform-application/pa-ao-troubleshooting/vertex-ai-translation#TranslationServiceInternal)."]]