---
title: "Traduction"
method: POST
path: "/v1/translations"
tags: ["Traduction"]
---

# Traduction

`POST /v1/translations`

## Request

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

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).

## Request body

- TranslationRequest
  - `text` string, required: Texte à traduire.
  - `target` string: Langue cible (code langue, ex. bam_Latn, fra_Latn, eng_Latn).
  - `source` string, nullable: Langue source (code langue). Absent/'auto' = détection.
  - `model` string, 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).

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/kooma/apis/kooma-api.md) · [All operations](https://skmtc.dev/kooma/apis/kooma-api/llms.txt) · [OpenAPI document](https://skmtc.dev/kooma/apis/kooma-api/revisions/e6053ed7ee70?raw)
