Menu

Translation API

Translate between English and Ghanaian languages

💰 Cost: 1 credit per request

Endpoint

POST https://api.bisakofi.com/api/translate

Request

  • text (required): Text to translate

    languagePair (required): Format: "source-target" (e.g., "en-tw"). Supported: en-tw, tw-en, en-ee, ee-en, en-gaa, gaa-en, en-dag, dag-en

Response

{
  "success": true,
  "translatedText": "Wo ho te sen?",
  "languagePair": "en-tw",
  "creditsRemaining": 99
}

Example

const response = await fetch('https://api.bisakofi.com/api/translate', {
  method: 'POST',
  headers: {
    'X-API-Key': 'bsk_your_api_key_here',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    text: 'How are you?',
    languagePair: 'en-tw'
  })
});

const data = await response.json();

What did you think of this content?

like-icon

It was helpful

dislike-icon

It was not helpful

feedback-icon

I have a feedback