Skip to main content

Get Supported Translation Languages

GET 

/v1/models/translate/supported-languages

Retrieve a list of supported languages for translation.

What does this endpoint do?

  • Returns all languages supported by the Djelia translation API.
  • Each language is represented by:
    • code: The language code (e.g., "bam_Latn" for Bambara).
    • name: The human-readable name of the language (e.g., "Bambara").

How to use this endpoint?

  • Call this endpoint to get the language codes needed for configuring source and target parameters in translation requests.

Example Response:

[
{"code": "bam_Latn", "name": "Bambara"},
{"code": "fra_Latn", "name": "French"},
{"code": "eng_Latn", "name": "English"}
]

Returns: List[SupportedLanguageSchema]: A list of supported languages.

Responses

Successful Response