Developers
Install
One package, typed end to end. The TypeScript client ships its own language and voice unions, so an unsupported pair is a build error rather than a 400 at runtime.
npm install @pison/sdkNode 20+, Python 3.10+. The REST API is stable and versioned at /v1.
The reference
API
/v1/translateper 1M charactersTranslate between English and any supported African language, with tone and diacritics preserved rather than normalised away.
import { Pison } from "@pison/sdk"; const pison = new Pison({ apiKey: process.env.PISON_API_KEY }); const response = await pison.translate({ text: "Welcome home", source: "en", target: "yo",}); console.log(response.output); // "Kú àbọ̀ sílé"console.log(response.confidence); // 0.94Set PISON_API_KEY in your environment. Keys are scoped per project and per endpoint.
Response
{
"output": "Kú àbọ̀ sílé",
"source": "en",
"target": "yo",
"confidence": 0.94,
"diacritics_complete": true
}50,000 characters of speech synthesis and five hours of transcription a month — enough to build and ship something real before you decide anything.