Traduction

Traduction

Traduit text vers target (codes langue). Renvoie {"translations": [{text, source, target}], "text": ...}. model optionnel : 'bambara-1.75' (défaut), 'bambara-1.7' ou 'bambara-1.6'. Débité au caractère du texte source (produit mt, même tarif quel que soit le modèle).

post/v1/translations

Request

  • Base URL: https://api.kooma.ai
  • URL: https://api.kooma.ai/v1/translations
  • Auth: none declared

Request body

textstring required

Texte à traduire.

targetstring

Langue cible (code langue, ex. bam_Latn, fra_Latn, eng_Latn).

sourcestring nullable

Langue source (code langue). Absent/'auto' = détection.

modelstring nullable

Modèle de traduction bambara. Valeurs : 'bambara-1.75' (défaut), 'bambara-1.7', 'bambara-1.6'. Absent = 'bambara-1.75'. S'applique aux segments impliquant le bambara ; toute autre valeur est refusée (422).

Example request

{
  "text": "Bonjour, comment allez-vous ?",
  "target": "bam_Latn",
  "source": "fra_Latn",
  "model": "bambara-1.75"
}

Response

Successful Response

unknown required

Changes

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