Translate your first text in 3 steps.
1. Get your API key
- Sign in at app.flixu.ai
- Go to Settings API Keys
- Click Create API Key and copy the
flx_...token
:::caution Store your API key securely. It’s shown only once and cannot be retrieved after creation. :::
2. Make your first request
curl -X POST https://api.flixu.ai/v1/translate \
-H "Authorization: Bearer flx_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"text": "Hello, world!",
"source_lang": "en",
"target_lang": "de"
}' const response = await fetch('https://api.flixu.ai/v1/translate', {
method: 'POST',
headers: {
'Authorization': 'Bearer flx_your_api_key',
'Content-Type': 'application/json',
},
body: JSON.stringify({
text: 'Hello, world!',
source_lang: 'en',
target_lang: 'de',
}),
});
const { data, meta } = await response.json();
console.log(data.translation); // "Hallo, Welt!"
console.log(`Credits used: ${meta.credits_used}`); import requests
response = requests.post(
'https://api.flixu.ai/v1/translate',
headers={'Authorization': 'Bearer flx_your_api_key'},
json={
'text': 'Hello, world!',
'source_lang': 'en',
'target_lang': 'de',
},
)
result = response.json()
print(result['data']['translation']) # "Hallo, Welt!"
print(f"Credits used: {result['meta']['credits_used']}") 3. Check the response
All responses are wrapped in a { data, meta } envelope:
{
"data": {
"translation": "Hallo, Welt!",
"source_lang": "en",
"target_lang": "de",
"quality_score": 97,
"credits_used": 13,
"character_count": 13
},
"meta": {
"request_id": "550e8400-e29b-41d4-a716-446655440000",
"credits_used": 13,
"processing_time_ms": 820
}
}
The meta.request_id is useful for debugging — include it in any support requests.
What’s next?
Authentication
API keys, JWT tokens, and scopes.
Batch Translation
Translate 500 strings × 20 languages in one call.
Document Upload
Translate DOCX, XLIFF, PO, JSON — 16 formats supported.
Analyze Text
Detect language, domain, and complexity before translating.
Check Quota
Monitor credits, rate limits, and plan limits.
Rate Limits
Understand plan-based limits and retry strategies.