Translations

Translate

Translate the given text into the specified language.

post/v1/translations

Request

  • Base URL: https://api.fanar.qa (the document declares no server; this is the origin it was published from)
  • URL: https://api.fanar.qa/v1/translations
  • Auth: HTTP bearer

Request body

model'Fanar-Shaheen-MT-1' | 'Fanar-Shaheen-MT-2' required
textstring required

The text to translate. It must not exceed 4,000 words.

langpair'en-ar' | 'ar-en' required
preprocessing'default' | 'preserve_html' | 'preserve_whitespace' | 'preserve_whitespace_and_html'

Example request

{
  "model": "Fanar-Shaheen-MT-2",
  "text": "Hello, how are you?",
  "langpair": "en-ar"
}

Response

Successful Response

idstring required

A unique identifier for the translation.

textstring required

The translated text

Changes

No recorded changes to this operation across all 1 revision of this API.