From zero to translating in under 5 minutes
Sign up for a free account to get started. No credit card required.
Visit toanother.one/register
You'll get 10,000 free tokens per month (~5,000 words) with access to all 100+ languages.
Navigate to your dashboard and generate an API key.
Dashboard → API Keys → Generate New Key
Keep your API key secure. You can generate multiple keys for different environments.
Use your API key to translate your first text.
curl -X POST https://api.toanother.one/api/v1/translate \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"text": "Hello world",
"source_language": "en",
"target_language": "es"
}'
Response:
{
"translated_text": "Hola mundo",
"request_id": "uuid-here",
"quality_tier": "standard"
}
import requests
API_KEY = "your_api_key_here"
API_URL = "https://api.toanother.one/api/v1/translate"
def translate(text, source_lang, target_lang):
headers = {
"Authorization": f"Bearer {API_KEY}",
"Content-Type": "application/json"
}
data = {
"text": text,
"source_language": source_lang,
"target_language": target_lang
}
response = requests.post(API_URL, json=data, headers=headers)
return response.json()
# Example usage
result = translate("Hello world", "en", "es")
print(result["translated_text"]) # "Hola mundo"
Protect your brand names and technical terms from being translated.
# Create a glossary set
POST /api/v1/glcv/sets
{
"name": "Brand Terms",
"priority": 1000
}
# Add terms to protect
POST /api/v1/glcv/sets/{set_id}/concepts
{
"name": "Azure DevOps",
"source_language": "en",
"aliases": ["AzureDevOps", "Azure-DevOps"],
"targets": {
"es": "Azure DevOps", // Keep unchanged
"fr": "Azure DevOps",
"de": "Azure DevOps"
}
}
Translate multiple segments efficiently while maintaining context.
POST /api/v1/translate/batch
{
"segments": [
{"text": "Welcome to our platform."},
{"text": "Start your free trial today."},
{"text": "No credit card required."}
],
"source_language": "en",
"target_language": "es",
"maintain_context": true
}
Let TAO automatically detect the source language.
POST /api/v1/translate
{
"text": "Bonjour le monde",
"source_language": "auto", // Auto-detect
"target_language": "en"
}
// Response includes detected language
{
"translated_text": "Hello world",
"detected_language": "fr",
"confidence": 0.99
}
Define your key terms once and maintain consistency across all translations. This is especially important for brand names, product features, and technical terminology.
When translating related segments (like paragraphs from the same document), use batch translation to maintain context and consistency.
Keep track of your character usage through the dashboard. Set up alerts before hitting limits to ensure uninterrupted service.
Never expose API keys in client-side code. Use environment variables and rotate keys regularly for security.