Translation API — drop-in Google Translate v2 replacement, context-aware, 81-90% cheaper
Website · Documentation · Pricing · Compare · Get Free API Key
Langbly is a translation API that's a drop-in replacement for Google Translate v2. Same request format, same response shape. Switch in one PR. Higher quality translations at a fraction of the cost.
| Google Translate | DeepL | Langbly | |
|---|---|---|---|
| Price per 1M chars | $20 | $25 | $1.99–$4 |
| API compatibility | — | Own format | Google Translate v2 |
| Translation quality | Statistical | Neural | Context-aware |
| Free tier | None | 500K/mo | 500K trial |
| Locale formatting | ❌ | ❌ | ✅ Automatic |
pip install langbly # Python
npm install langbly # JavaScript / TypeScriptfrom langbly import Langbly
client = Langbly(api_key="your-api-key")
result = client.translate("Hello world", target="nl")
print(result.text) # "Hallo wereld"import { Langbly } from "langbly";
const client = new Langbly({ apiKey: "your-api-key" });
const result = await client.translate("Hello world", { target: "nl" });
console.log(result.text); // "Hallo wereld"Already using Google Translate v2? Just change the base URL:
# Before: https://translation.googleapis.com/language/translate/v2
# After: https://api.langbly.com/language/translate/v2
curl -X POST https://api.langbly.com/language/translate/v2 \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"q": "Hello world", "target": "nl"}'→ Full migration guide: langbly.com/docs/migrate-google
| Repository | Description | Install |
|---|---|---|
| langbly-python | Python SDK with async support, auto-retry, typed errors | pip install langbly |
| langbly-js | JS/TS SDK with native fetch, zero dependencies, TypeScript | npm install langbly |
| examples | curl examples, migration guides, code samples | — |
- Google Translate v2 compatible - same
/language/translate/v2endpoint - Context-aware - understands tone, idioms, and locale conventions
- Auto-retry - exponential backoff with Retry-After support in both SDKs
- Locale formatting - automatic decimal, date, and currency formatting per target language
- Batch translation - translate multiple texts in a single request
- Language detection - identify source language automatically
- HTML support - translate HTML while preserving tags and attributes
| Plan | Price | Characters | Per 1M chars |
|---|---|---|---|
| Free | $0 | 500K trial | — |
| Starter | $19/mo | 5M | $3.80 |
| Growth | $69/mo | 25M | $2.76 |
| Scale | $199/mo | 100M | $1.99 |
Annual plans: 20% off. Overage: $4/1M characters.
→ Start free - no credit card required
Built by Jasper de Winter · langbly.com