0/2000 characters
Waiting for translation...
Elarus API Endpoints
POST /api/translate
- Standard translation with intelligent caching
POST /api/retranslate
- Force fresh translation (bypass cache)
GET /api/health
- System status and health check
Base URL: https://elarus.vercel.app
Use Elarus in Your Applications
Elarus is a production-ready API that you can integrate into your applications, websites, and services.
# Python Example
import requests
def translate_text(text, target_lang, force_refresh=False):
endpoint = "/api/retranslate" if force_refresh else "/api/translate"
response = requests.post(
f"https://elarus.vercel.app{endpoint}",
json={"text": text, "target_lang": target_lang}
)
return response.json()
result = translate_text("Good morning", "Japanese")
print(f"Translation: {result['translated_text']}")
import requests
def translate_text(text, target_lang, force_refresh=False):
endpoint = "/api/retranslate" if force_refresh else "/api/translate"
response = requests.post(
f"https://elarus.vercel.app{endpoint}",
json={"text": text, "target_lang": target_lang}
)
return response.json()
result = translate_text("Good morning", "Japanese")
print(f"Translation: {result['translated_text']}")
- Web Applications: Add real-time translation to your web apps
- Mobile Apps: Integrate translation features in iOS/Android apps
- Chatbots: Enable multilingual conversations
- Content Management: Automate translation of user-generated content
- Developer Tools: Build translation plugins and extensions
Check out the GitHub repository for full documentation, examples, and source code.