When you wire a large language model into your localization pipeline, the translation API you pair it with determines whether the output is production-grade or a liability. LLMs excel at contextual reasoning, disambiguation, and stylistic nuance, but they remain expensive per token, unpredictable at scale, and difficult to constrain with terminology rules. A purpose-built machine translation (MT) API handles the heavy lifting, bulk throughput, glossary enforcement, markup preservation, while the LLM handles what MT cannot: quality assurance, cultural adaptation, and edge-case resolution. The challenge is choosing an API whose feature surface aligns with your LLM orchestration pattern. This guide compares leading translation APIs across the dimensions that matter most for hybrid LLM+MT architectures, then walks through the orchestration patterns, fallback strategies, and cost modeling that turn a proof-of-concept into a reliable production system.
Already evaluating how to connect translation APIs and LLMs into an enterprise-grade pipeline? See how Ollang’s integration layer centralizes glossary sync, routing, and QA: Get a guided walkthrough.
Why LLM-Powered Localization Needs a Dedicated Translation API
The Limits of Using LLMs Alone for Translation
LLMs like GPT-4 or Claude can produce fluent translations, but relying on them as your sole translation engine introduces concrete problems. First, cost: translating a million characters through an LLM API typically costs a multiple of a dedicated MT API, because you pay per token for both the source prompt and the generated output. Second, consistency: LLMs are non-deterministic by design. The same source sentence translated twice may yield different terminology choices, which breaks product UI strings, legal documents, and any content requiring term-level consistency. Third, throughput: LLM APIs impose rate limits and have higher per-request latency, making them impractical for batch jobs involving hundreds of thousands of segments. Fourth, compliance: many enterprise buyers need data residency guarantees and BAA-level agreements that general-purpose LLM providers may not offer for translation workloads.
How MT APIs Complement LLM Strengths
A dedicated MT API addresses exactly the gaps LLMs leave open. MT APIs offer glossary enforcement at the engine level, deterministic output for identical inputs (when using the same model version), sub-second latency for single-segment requests, and pricing models built for high-volume text. The hybrid approach, MT for throughput and consistency, LLM for contextual quality, lets you allocate expensive LLM tokens only where they add measurable value: ambiguous segments, culturally sensitive content, or post-editing passes where a human-like understanding of context improves fluency.
Provider-by-Provider Comparison
Google Cloud Translation (v3 Advanced)
Google’s v3 Advanced API supports glossary resources, custom models via AutoML Translation, and adaptive translation. Glossary enforcement is configured per request by attaching a glossaryConfig object:
{
"sourceLanguageCode": "en",
"targetLanguageCode": "de",
"contents": ["Click the Submit button to proceed."],
"glossaryConfig": {
"glossary": "projects/my-project/locations/us-central1/glossaries/my-glossary"
},
"mimeType": "text/html"
}
HTML handling is supported via the mimeType field set to text/html; Google preserves tag structure without requiring pre-processing. For batch workloads, the batchTranslateText method processes files stored in Cloud Storage asynchronously and returns results to a specified output bucket. Adaptive translation, available for select language pairs, lets you provide reference translations at request time to steer output style without model training.
Google enforces per-project quotas and rate limits that can be increased via support. Latency for synchronous calls is generally sub-second depending on language pair and segment length. Data processing can be restricted to specific regions via location-scoped endpoints.
DeepL API
DeepL’s API differentiates itself through output fluency and granular formatting controls. The tag_handling parameter accepts xml or html, and ignore_tags lets you protect elements whose content should not be translated, useful for code blocks or placeholder tokens in CMS content.
{
"text": ["<p>Welcome to our <b>platform</b>.</p>"],
"source_lang": "EN",
"target_lang": "DE",
"tag_handling": "html"
}
DeepL supports glossaries through a dedicated API: you create a glossary resource with term pairs, then reference its ID in translation requests. Glossary entries are enforced deterministically, making DeepL strong for terminology-sensitive workflows. The API supports formality control (where available), reducing the need for LLM-based post-editing on tone.
DeepL’s Pro plans are designed for high-volume usage, with pricing based on characters translated. Rate limits depend on plan tier. One limitation: DeepL does not currently offer full custom model training or domain adaptation beyond glossaries, so teams needing engine-level specialization for narrow domains may find the customization ceiling lower than alternatives.
Microsoft Translator (Azure Cognitive Services)
Microsoft Translator offers deep integration with the Azure ecosystem, including Virtual Network support, managed identities, and Azure Private Link for data-in-transit isolation. Custom Translator allows you to train domain-specific models using parallel corpora; you reference these via a category (category ID) on the endpoint query string.
{
"Text": "The patient presented with acute symptoms."
}
When calling the /translate endpoint, set textType=html to preserve markup for HTML content. The endpoint accepts arrays of texts, enabling efficient batching without moving to a fully asynchronous model. Additional endpoints like /transliterate and /dictionary/lookup can feed LLM-based disambiguation steps with candidate translations before committing to a final output.
Throughput and request size limits vary by pricing tier and can be increased on request. Microsoft’s compliance portfolio is among the broadest, with options for HIPAA-eligible workloads, SOC 2, ISO 27001, and FedRAMP configurations, often making it a default choice for regulated industries.
Amazon Translate
Amazon Translate integrates tightly with the AWS service mesh, S3 for batch input/output, CloudWatch for monitoring, and IAM for access control. Custom terminology is uploaded as a CSV or TMX file and referenced by name in translation requests. The TerminologyNames parameter accepts a list, allowing layered terminology sets:
import boto3
client = boto3.client('translate', region_name='us-east-1')
response = client.translate_text(
Text="Restart the instance after patching.",
SourceLanguageCode="en",
TargetLanguageCode="ja",
TerminologyNames=["aws-terminology", "client-glossary"]
)
For batch jobs, the StartTextTranslationJob API processes documents stored in S3 asynchronously, with job status available via polling or EventBridge notifications. Amazon Translate also supports parallel data for domain adaptation, you upload bilingual examples, and the service adjusts output accordingly without training a new model.
Per-request character limits and throughput caps apply and vary by region and account tier. Pricing is a simple per-character rate with an AWS free-tier option for new accounts. Regional hosting is available across major AWS regions and inherits AWS compliance certifications.
ModernMT
ModernMT adapts in real time using translation memory (TM) and context supplied at request time. Instead of training separate custom models, you upload translation memories and, optionally, glossaries; the engine dynamically adjusts its output to match the style and terminology of your existing translations. This is attractive for teams with large TMs who want MT output that aligns with historical corpora without the overhead of model training.
ModernMT provides EU and US hosting, and a self-hosted option for strict data sovereignty requirements. The API surface is intentionally simple, fewer knobs than hyperscalers, but quick wins when you already maintain TMs and glossaries.
Head-to-Head Feature Matrix
| Feature | Google v3 | DeepL | Microsoft | Amazon | ModernMT |
|---|---|---|---|---|---|
| Glossary API | Yes (glossary resource) | Yes (Glossary ID) | Yes (terminology + Custom Translator) | Yes (TerminologyNames) | Yes (glossary + TM influence) |
| Custom Model Training | AutoML Translation | No | Custom Translator | Parallel data adaptation | Real-time TM adaptation |
| HTML/XML Handling | mimeType: text/html | tag_handling: html/xml | textType: html | ContentType param | Basic tag preservation |
| Placeholder/ICU Handling | Requires pre/post-processing | ignore_tags helps | Requires pre/post-processing | Requires pre/post-processing | Influenced by TM; often needs preprocessing |
| Batch/Async API | batchTranslateText | Document translation | Array batching (sync); batch APIs in Azure | StartTextTranslationJob | Batch endpoint |
| Formality Control | Limited | Yes (where supported) | Limited | Yes (where supported) | Not explicit |
| Streaming Output | Not token-streaming | Not token-streaming | Not token-streaming | Not token-streaming | Not token-streaming |
| Regional Hosting | Region-scoped endpoints (GCP) | EU-based processing | Region-scoped endpoints (Azure) | Multi-region (AWS) | EU / US / Self-hosted |
| Enterprise Compliance | Broad options | SOC 2/ISO 27001 | Broad options (incl. HIPAA-eligible, FedRAMP configs) | Broad options | Varies; self-hosted available |
Translation API Providers vs. Ollang Orchestration Layer
The providers above compete at the raw MT-engine level. Ollang does not: it complements and orchestrates them, adding the workflow capabilities that otherwise have to be built in-house.
| Capability | Standalone Translation APIs | Ollang Orchestration Layer |
|---|---|---|
| Multi-provider routing | Each API translates with its own engine only | Routes each request to the best-fit provider per language pair and content type |
| LLM + MT orchestration | MT output only; LLM steps are separate integrations | Coordinates MT engines and LLM quality review in one managed workflow |
| Glossary synchronization across providers | Per-provider glossary formats and endpoints | Maintains one glossary and syncs it to each provider’s native format |
| Fallback chains | Single point of failure per provider | Automatic failover to alternate engines on errors or rate limits |
| Centralized QA | Per-provider, if any | Unified quality checks applied consistently across all engines |
| Human-in-the-loop review | Not part of the raw APIs | Built-in review workflows on top of machine output |
| Caching and workflow controls | Left to the integrator | Managed caching, routing rules, and cost optimization |
| Centralized monitoring and governance | Per-provider dashboards | Single view of throughput, quality, and spend across providers |
Notes:
- None of these providers currently offer true token-by-token streaming translation. For real-time subtitle or chat features, implement chunked translation with buffering.
- ICU MessageFormat preservation, handling placeholders like {count, plural, one {# item} other {# items}}, usually requires pre-processing to extract and reinsert placeholders with validation.
