Translator API — Multi-Format AI Translation
Translation API for text, HTML, JSON, subtitles, and 13+ file formats in 250+ languages. Affordable translation API pricing. Start free with 500 requests/month.
What Is the FlyByAPIs Translator API?
FlyByAPIs Multi-Format AI Translator API translates text across 250+ languages while preserving the structure of complex file formats — JSON, YAML, HTML, XML, CSV, SRT subtitles, VTT, ASS, and more. With 16 dedicated endpoints and format-aware processing, tags, keys, and timing codes survive translation intact. Unlike Google Translate and DeepL, no custom parsing is needed for structured files. Available on RapidAPI starting at $0/month with 500 free requests.
Multi-Format Translation — Text, HTML, JSON, Subtitles & More
The Translator API goes far beyond simple text translation. Translate HTML pages while preserving tags, localize JSON and YAML config files, convert subtitles across languages, and process batch translations — all through a single API supporting 250+ languages.
250+
Languages
16
Endpoints
13+
File formats
Free
500 req/month
With 16 dedicated endpoints and format-aware processing, your structure, timing codes, and markup stay intact. Google Translate and DeepL don’t handle file formats natively — you’d need to strip structure, translate, then reassemble. This API does it in one request, no post-processing required.
500 requests/month free · No credit card required
Endpoints
Core Translation
| Endpoint | Description |
|---|---|
/translate | Translate plain text between any supported language pair. |
/translate/detect | Detect the language of a text string. |
/translate/batch | Translate multiple text strings in a single request. |
Document & Structured Formats
| Endpoint | Description |
|---|---|
/translate/html | Translate HTML content while preserving all tags and attributes. |
/translate/json | Translate JSON values while keeping keys and structure intact. |
/translate/yaml | Translate YAML values while preserving keys and formatting. |
/translate/csv | Translate CSV file content with column selection. |
/translate/xml | Translate XML text nodes while preserving structure and attributes. |
Subtitle Formats
| Endpoint | Description |
|---|---|
/translate/srt | Translate SRT subtitle files, preserving timing codes. |
/translate/vtt | Translate WebVTT subtitle files, preserving cues and timing. |
/translate/ass | Translate ASS/SSA subtitle files, preserving styles and timing. |
Localization Formats
| Endpoint | Description |
|---|---|
/translate/po | Translate PO/POT gettext localization files. |
/translate/xliff | Translate XLIFF localization exchange files. |
/translate/ini | Translate INI configuration file values. |
/translate/toml | Translate TOML file string values. |
/translate/properties | Translate Java .properties file values. |
Code Examples
| |
| |
| |
Example JSON Response (/translate — plain text)
| |
Example JSON Response (/translate/json — structure preserved)
| |
Features & Supported Formats
- 250+ Languages — From English, Spanish, and Chinese to Yoruba, Khmer, and Tagalog. Covers virtually every language pair.
- 13+ File Formats — Dedicated endpoints for HTML, JSON, YAML, CSV, XML, SRT, VTT, ASS, PO, XLIFF, INI, TOML, and .properties files.
- Structure Preservation — Tags, keys, timing codes, and formatting survive translation. No manual cleanup needed.
- Language Detection — Automatically identify the source language when you do not know it ahead of time.
- Batch Translation — Send multiple strings in one request to minimize latency and API calls.
- AI-Powered Quality — Modern translation models deliver fluent, context-aware results.
- Simple Integration — RESTful JSON API. Works with any language or framework.
Use Cases
App Localization & Software Translation API
Translate your app's JSON or YAML string files directly. Keys stay untouched, only values get translated — ready to drop back into your project. Use PO, XLIFF, or .properties endpoints for established localization workflows.
Website & HTML Translation API
Translate HTML pages, blog posts, and marketing content while keeping your markup intact. Ideal for CMS systems that need to serve content in multiple languages without breaking layout or design.
Subtitle Translation API — SRT, VTT, ASS
Convert subtitles for video content across languages. SRT, VTT, and ASS formats are all supported with full timing preservation — critical for media localization, course content, and streaming platforms.
CMS & Batch Multilingual Content
Power multilingual content management by translating articles, product descriptions, and metadata on the fly. The batch endpoint handles bulk content efficiently — translate hundreds of strings in a single API call.
Free tier · No credit card · Cancel anytime
Why Developers Switch
Most translation APIs handle plain text — and that’s it. The moment you need to translate an HTML page, a JSON config file, or a set of SRT subtitles, you’re on your own. You end up writing custom parsers to strip structure, translate the text, then reassemble the file — and every format needs its own pipeline.
That’s the gap this API was built to fill. 16 format-specific endpoints that understand the structure of each file type — tags, keys, timing codes, nesting — and translate only the translatable content while preserving everything else. One API call, no post-processing.
Why other approaches fall short
Google Translate API — text only, per-character billing
Handles plain text well, but has zero support for structured formats. Want to translate a JSON file? You strip the keys yourself, translate the values, then reassemble. Per-character pricing also makes costs unpredictable on large content volumes.
DeepL API — better quality, same format limitations
DeepL produces excellent translations for European languages, but it doesn't handle JSON, YAML, subtitles, or localization files natively. At $25/million characters, costs scale fast — and you still need custom parsing logic for every format.
Build it yourself — format parsing + translation + reassembly
You can call any translation API and wrap it in custom parsers for each file type. But maintaining parsers for HTML, JSON, YAML, SRT, VTT, ASS, PO, XLIFF, and more is an entire localization engineering project — not a quick integration.
Free tier available — no credit card required
vs. Competitors
| Feature | Flyby Translator API | Google Translate API | DeepL API | Build It Yourself |
|---|---|---|---|---|
| Starting price | Free | 500K chars free | 500K chars free | API cost + dev time |
| Paid entry plan | $4.99/mo (5K req) | $20/1M chars | $25/1M chars | Varies |
| Languages | ✓ 250+ | ✓ 130+ | 33 languages | Depends on provider |
| HTML translation | ✓ Dedicated endpoint | Basic HTML support | Basic XML/HTML | ✗ Custom parser |
| JSON/YAML translation | ✓ Keys preserved | ✗ Not supported | ✗ Not supported | ✗ Custom parser |
| Subtitle formats (SRT/VTT/ASS) | ✓ 3 formats | ✗ Not supported | ✗ Not supported | ✗ Custom parser |
| Localization files (PO/XLIFF/.properties) | ✓ 5 formats | ✗ Not supported | ✗ Not supported | ✗ Custom parser |
| Batch translation | ✓ | ✓ | ✓ | ✓ |
| Predictable monthly cost | ✓ Per-request | ✗ Per-character | ✗ Per-character | Varies |
Get Started in Minutes
- Sign up on RapidAPI — it’s free.
- Subscribe to the Basic plan (500 free queries/month).
- Copy your API key from the RapidAPI dashboard.
- Make your first request using the code examples above.
The 500 free requests cover all 16 endpoints — enough to translate text, test HTML and JSON structure preservation, and run subtitle translations. Pro at $4.99 gives you 10,000 requests. Google Translate and DeepL charge per character with no format support — here you get 13+ file formats, 250+ languages, and predictable per-request pricing from day one.
Start Free, Scale as You Grow
All plans include full API access to every endpoint. No feature gating.
Frequently Asked Questions
Q How do I translate a JSON file via API without breaking the structure?
Q What is the best translation API for developers?
Q How do I translate SRT subtitles via API?
Q Is there a translation API that preserves HTML tags?
Q What is the cheapest translation API with a free tier?
Q How do I translate YAML localization files via API?
Q Can I batch translate multiple strings in one API call?
Q How many languages does the FlyByAPIs Translator API support?
Ready to Get Started?
Sign up for free and make your first API call in under 5 minutes.