Addis AI

Translation

Translate text between Amharic, Afaan Oromo, Tigrinya, and English.

The Translation API supports bidirectional translation between Amharic (am), Afaan Oromo (om), Tigrinya (ti), and English (en). All twelve source-to-target language combinations are available through the REST API and official SDKs.

Use Cases

Public Service

Automatically translate government forms, announcements, and news between Amharic and Afaan Oromo to reach wider audiences.

Marketplace

Enable real-time chat translation between buyers and sellers who speak different local languages or English.

Education

Translate educational materials and technical documentation from English into local languages to improve accessibility.


Usage Guide

Basic Translation

Translate text between any of the supported languages (am, om, ti, en).

import AddisAI from "addisai";

const addis = new AddisAI();
const result = await addis.translate.create({
  text: "ገበሬው ማሳውን ዘወትር ይጎበኛል",
  from: "am",
  to: "om",
});

console.log(result.text);
from addisai import AddisAI

addis = AddisAI()
result = addis.translate.create(
    text="ገበሬው ማሳውን ዘወትር ይጎበኛል",
    source="am",
    target="om",
)

print(result["text"])
curl --location 'https://api.addisassistant.com/api/v1/translate' \
  --header 'Content-Type: application/json' \
  --header "x-api-key: $ADDIS_API_KEY" \
  --data '{
    "text": "ገበሬው ማሳውን ዘወትር ይጎበኛል",
    "source_language": "am",
    "target_language": "om"
  }'

Available Parameters

ValueNode.jsPythonRESTRequired
Text to translatetexttexttextYes
Source languagefromsourcesource_languageYes: am, om, ti, or en
Target languagetotargettarget_languageYes: am, om, ti, or en

Source and target must be different. Translation is supported in both directions between Amharic, Afaan Oromo, Tigrinya, and English.


API Reference

Request Parameters

Prop

Type

Response Schema

{
    "status": "success",
    "data": {
        "translation": "Qotee bulaan yeroo mara maasaa isaa ni daawwata.",
        "source_language": "am",
        "target_language": "om",
        "quality": "high",
        "usage_metadata": {
            "prompt_token_count": 113,
            "candidates_token_count": 57,
            "total_token_count": 170
        }
    }
}

Prop

Type

Errors

StatusCodeMeaning
400invalid_inputtext is missing or a language code is unsupported.
400invalid_jsonThe request body is not valid JSON.
401api_key_in_authorization_headerSend your API key in the x-api-key header, not as Authorization: Bearer.
413text_too_longtext is over 5,000 characters. Split it into several requests.
502translation_incompleteThe translation came back far shorter than the input. Retry, or send shorter text.

Best Practices

Ensure the highest quality translations with these guidelines.

Input Fidelity

Spelling Matters: Ensure the source text has correct spelling. For Amharic, consistency in Fidel usage (e.g., using ሠ vs ሰ correctly) improves output quality.

Punctuation: Include proper punctuation (።, ?) to help the model understand sentence boundaries.

Supported Languages

Supported language pairs
Amharic ↔ Afaan OromoAmharic ↔ EnglishAfaan Oromo ↔ EnglishTigrinya ↔ AmharicTigrinya ↔ Afaan OromoTigrinya ↔ English

Context

Full Sentences: Avoid translating single words in isolation if possible. Context helps resolve ambiguities (e.g., "eye" vs "spring" in Amharic).

Edit on GitHub

Last updated on

On this page