Audio

Translate

Cultural translation into 36 languages.

1 credit per 10 characters of input text (Math.ceil — e.g. 250 chars = 25 cr). Cultural-adapted translation. Credits refunded if every chunk fails.

POST/api/v1/translate

FieldTypeRequiredDescription
textstringyesUp to 100,000 chars.
target_languagestringyesOne of the 36 supported languages, by English name (English, Turkish, Spanish, ...). An unsupported name returns 400 { "error": "Unsupported language", "supported_languages": [...] }.
source_languagestringnoEnglish name of the input language. Default English. There is no auto-detect — name the source language when it is not English.
cURL
curl -X POST "https://www.dubvoice.ai/api/v1/translate" \
  -H "Authorization: Bearer sk_..." \
  -H "Content-Type: application/json" \
  -d '{ "text": "Merhaba, bugün nasılsın?", "target_language": "English", "source_language": "Turkish" }'

source_language and target_language are echoed exactly as you sent them:

JSON
{
  "success": true,
  "original_length": 24,
  "translated_length": 25,
  "target_language": "English",
  "source_language": "Turkish",
  "chunks_processed": 1,
  "credits_used": 3,
  "remaining_credits": 249997,
  "translated_text": "Hello, how are you today?"
}

Rate limit: 10 requests / minute per API key.

GET/api/v1/translate

Returns the supported languages (36 English names), the text limit and the pricing:

JSON
{
  "languages": ["English", "Turkish", "Spanish", ...],
  "max_text_length": 100000,
  "chunk_size": 6000,
  "pricing": "1 credit per 10 characters of input text (rounded up)."
}

Search docs

Find a page or an endpoint