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.

Free tier available
JSON responses
Real-time data

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.

Start free — see pricing plans

500 requests/month free · No credit card required


Endpoints

Core Translation

EndpointDescription
/translateTranslate plain text between any supported language pair.
/translate/detectDetect the language of a text string.
/translate/batchTranslate multiple text strings in a single request.

Document & Structured Formats

EndpointDescription
/translate/htmlTranslate HTML content while preserving all tags and attributes.
/translate/jsonTranslate JSON values while keeping keys and structure intact.
/translate/yamlTranslate YAML values while preserving keys and formatting.
/translate/csvTranslate CSV file content with column selection.
/translate/xmlTranslate XML text nodes while preserving structure and attributes.

Subtitle Formats

EndpointDescription
/translate/srtTranslate SRT subtitle files, preserving timing codes.
/translate/vttTranslate WebVTT subtitle files, preserving cues and timing.
/translate/assTranslate ASS/SSA subtitle files, preserving styles and timing.

Localization Formats

EndpointDescription
/translate/poTranslate PO/POT gettext localization files.
/translate/xliffTranslate XLIFF localization exchange files.
/translate/iniTranslate INI configuration file values.
/translate/tomlTranslate TOML file string values.
/translate/propertiesTranslate Java .properties file values.

Code Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import requests

url = "https://multi-format-ai-translator-the-most-complete.p.rapidapi.com/translate"

payload = {
    "text": "Hello, how are you today? I hope you are having a great day.",
    "source": "en",
    "target": "es"
}

headers = {
    "Content-Type": "application/json",
    "X-RapidAPI-Key": "YOUR_API_KEY",
    "X-RapidAPI-Host": "multi-format-ai-translator-the-most-complete.p.rapidapi.com"
}

response = requests.post(url, json=payload, headers=headers)
data = response.json()

print(f"Original:    {payload['text']}")
print(f"Translated:  {data['translated_text']}")
print(f"Source lang: {data.get('source_language', 'en')}")
print(f"Target lang: {data.get('target_language', 'es')}")
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
const url = "https://multi-format-ai-translator-the-most-complete.p.rapidapi.com/translate";

const options = {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    "X-RapidAPI-Key": "YOUR_API_KEY",
    "X-RapidAPI-Host": "multi-format-ai-translator-the-most-complete.p.rapidapi.com",
  },
  body: JSON.stringify({
    text: "Hello, how are you today? I hope you are having a great day.",
    source: "en",
    target: "es",
  }),
};

const response = await fetch(url, options);
const data = await response.json();

console.log(`Original:    ${data.original_text ?? "N/A"}`);
console.log(`Translated:  ${data.translated_text}`);
console.log(`Target lang: ${data.target_language}`);
1
2
3
4
5
6
7
8
9
curl -X POST "https://multi-format-ai-translator-the-most-complete.p.rapidapi.com/translate" \
  -H "Content-Type: application/json" \
  -H "X-RapidAPI-Key: YOUR_API_KEY" \
  -H "X-RapidAPI-Host: multi-format-ai-translator-the-most-complete.p.rapidapi.com" \
  -d '{
    "text": "Hello, how are you today? I hope you are having a great day.",
    "source": "en",
    "target": "es"
  }'

Example JSON Response (/translate — plain text)

1
2
3
4
5
6
7
8
{
  "status": true,
  "data": {
    "translated_text": "Hola, ¿cómo estás hoy? Espero que estés teniendo un gran día.",
    "source_language": "en",
    "source_language_name": "English"
  }
}

Example JSON Response (/translate/json — structure preserved)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
{
  "status": true,
  "data": {
    "translated_json": {
      "welcome": "Bienvenido",
      "button": {
        "submit": "Enviar",
        "cancel": "Cancelar"
      },
      "errors": {
        "required": "Este campo es obligatorio",
        "invalid_email": "Por favor, introduce un correo electrónico válido"
      }
    },
    "source_language": "en",
    "source_language_name": "English"
  }
}

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.

Start building — view pricing

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.


See pricing plans

Free tier available — no credit card required


vs. Competitors

FeatureFlyby Translator APIGoogle Translate APIDeepL APIBuild It Yourself
Starting priceFree500K chars free500K chars freeAPI cost + dev time
Paid entry plan$4.99/mo (5K req)$20/1M chars$25/1M charsVaries
Languages 250+✓ 130+33 languagesDepends on provider
HTML translation Dedicated endpointBasic HTML supportBasic 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-characterVaries

Get Started in Minutes

  1. Sign up on RapidAPI — it’s free.
  2. Subscribe to the Basic plan (500 free queries/month).
  3. Copy your API key from the RapidAPI dashboard.
  4. 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.

Simple Pricing

Start Free, Scale as You Grow

All plans include full API access to every endpoint. No feature gating.

Basic

Free
  • 500 requests/month
  • Shared rate limit
Start Free

Pro

$4.99 /mo
  • 10,000 requests/month
  • Standard rate limit
Choose Plan

Mega

$29.99 /mo
  • 100,000 requests/month
  • Priority rate limit
Choose Plan
FAQ

Frequently Asked Questions

Q How do I translate a JSON file via API without breaking the structure?

FlyByAPIs Translator API has a dedicated /translate/json endpoint that translates only the values in your JSON while keeping all keys, nesting, arrays, and formatting intact. Send your JSON object with source and target language, and get back a fully translated copy — ready to drop into your project. No custom parsing needed.

Q What is the best translation API for developers?

FlyByAPIs Multi-Format AI Translator API supports 250+ languages and 13+ file formats — including JSON, YAML, HTML, CSV, XML, SRT subtitles, and localization files (PO, XLIFF, .properties). Unlike Google Translate or DeepL, it has dedicated endpoints for each format that preserve structure automatically. Starts free with 500 requests/month on RapidAPI.

Q How do I translate SRT subtitles via API?

FlyByAPIs Translator API includes a dedicated /translate/srt endpoint that translates subtitle text while preserving all timing codes, sequence numbers, and formatting. Send the full SRT content with target language, and get back translated subtitles ready for use. Also supports VTT and ASS/SSA subtitle formats.

Q Is there a translation API that preserves HTML tags?

Yes. FlyByAPIs Translator API has a /translate/html endpoint that translates text content while keeping all HTML tags, attributes, and structure intact. Ideal for CMS systems, blog translation, and marketing page localization — no post-processing or tag repair needed.

Q What is the cheapest translation API with a free tier?

FlyByAPIs Translator API starts free with 500 requests/month — no credit card required. Paid plans begin at $4.99/month for 10,000 requests. Unlike Google Translate ($20/million characters) and DeepL ($25/million characters), FlyByAPIs uses per-request pricing, making costs predictable regardless of text length.

Q How do I translate YAML localization files via API?

FlyByAPIs Translator API has a dedicated /translate/yaml endpoint that translates string values while preserving keys, indentation, comments, and YAML structure. This is ideal for i18n workflows in frameworks like Rails, Django, or Hugo that use YAML for localization.

Q Can I batch translate multiple strings in one API call?

Yes. FlyByAPIs Translator API includes a /translate/batch endpoint that accepts an array of text strings and returns all translations in a single response. This reduces HTTP overhead and latency compared to making individual requests for each string.

Q How many languages does the FlyByAPIs Translator API support?

FlyByAPIs Multi-Format AI Translator API supports translation between 250+ languages — including all major world languages (English, Spanish, Chinese, Arabic, Hindi, French, German, Japanese, etc.) plus many regional and minority languages. Language detection is automatic via the /translate/detect endpoint.

Ready to Get Started?

Sign up for free and make your first API call in under 5 minutes.