Fast, accurate, and easy to integrate
Powered by Groq's high-performance AI infrastructure
Automatically detects source language when not specified
Simple REST API with comprehensive documentation
Test our translation service with your own text
Translating...
Translate text using Groq's AI models
{
"text": "Text to translate",
"targetLang": "Target language name",
"sourceLang": "Source language name (optional)"
}
Parameter | Type | Required | Description |
---|---|---|---|
text | string | ✅ Yes | The text you want to translate |
targetLang | string | ✅ Yes | Target language (e.g., "English", "Spanish") |
sourceLang | string | ❌ No | Source language. Auto-detected if omitted |
{
"translatedText": "The translated text result"
}
{
"error": "Error message description"
}
Invoke-RestMethod -Uri "https://snappytranslate.onrender.com/translate" `
-Method POST `
-ContentType "application/json" `
-Body '{"text":"Bonjour", "targetLang":"English"}'
const response = await fetch('https://snappytranslate.onrender.com/translate', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
text: "Hola mundo",
targetLang: "English"
})
});
const data = await response.json();
import requests
response = requests.post('https://snappytranslate.onrender.com/translate',
json={
"text": "Guten Tag",
"targetLang": "English"
}
)
result = response.json()
curl -X POST https://snappytranslate.onrender.com/translate \
-H "Content-Type: application/json" \
-d '{
"text": "Ciao mondo",
"targetLang": "English"
}'