Documentation
Everything you need to integrate Bhala's APIs into your application.
Quick Start
1. Get your API key
Sign up for a free account and generate your API key from the dashboard.
Get API Key2. Install the SDK (optional)
Terminal
pip install bhala
# or
npm install @bhala/sdk3. Make your first API call
embed.py
from bhala import Bhala
client = Bhala(api_key="bh_sk_...")
# Generate embeddings for Bantu text
response = client.embed(
input="Sawubona, ngingakusiza kanjani?",
model="bantu-embed-v1",
dimensions=256
)
print(response.data[0].embedding[:5])
# [0.0234, -0.0891, 0.1456, 0.0312, -0.0678]API Reference
POST /v1/embedEmbeddings
Generate vector embeddings for Bantu text.
POST /v1/translateTranslation
Translate between Bantu languages.
POST /v1/identifyLanguage ID
Identify which Bantu language a text is written in.
POST /v1/analyzeNER
Named entity recognition for Bantu text.
POST /v1/analyzeSentiment
Sentiment analysis for Bantu text.
POST /v1/classifyClassification
Text classification and content moderation.
Full documentation coming soon
We're building comprehensive docs with guides, tutorials, and full API reference. Get notified when they launch.